Class TextlikeComponent
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.util.TextlikeComponent
-
- Direct Known Subclasses:
TextlikeComponent.TableTextComponent,TextlikeComponent.TextLikeCodeEditor,TextlikeComponent.TextLikeComboBox,TextlikeComponent.TextLikeTextComponent
public abstract class TextlikeComponent extends java.lang.ObjectWrapper around various components that can be modeled like a JTextComponent. Can be instantiated using the static of(component) functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextlikeComponent.TableTextComponentstatic classTextlikeComponent.TextLikeCodeEditorstatic classTextlikeComponent.TextLikeComboBoxstatic classTextlikeComponent.TextLikeTextComponent
-
Constructor Summary
Constructors Constructor Description TextlikeComponent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.awt.ComponentgetInternalComponent()abstract java.lang.StringgetText()static TextlikeComponentof(com.jidesoft.editor.CodeEditor comp)static TextlikeComponentof(javax.swing.JComboBox comp)static TextlikeComponentof(javax.swing.JTable comp, int column)Uses the currently selected row of the tablestatic TextlikeComponentof(javax.swing.text.JTextComponent comp)abstract voidrequestFocus()abstract voidsetText(java.lang.String text)Inserts text into the component.
-
-
-
Method Detail
-
setText
public abstract void setText(java.lang.String text)
Inserts text into the component. Note: usually expected to NOT replace everything, but instead insert at the current cursor position.
-
requestFocus
public abstract void requestFocus()
-
getText
public abstract java.lang.String getText()
-
getInternalComponent
public abstract java.awt.Component getInternalComponent()
-
of
public static TextlikeComponent of(com.jidesoft.editor.CodeEditor comp)
-
of
public static TextlikeComponent of(javax.swing.text.JTextComponent comp)
-
of
public static TextlikeComponent of(javax.swing.JComboBox comp)
-
of
public static TextlikeComponent of(javax.swing.JTable comp, int column)
Uses the currently selected row of the table
-
-