Class TextlikeComponent
java.lang.Object
com.inductiveautomation.ignition.designer.util.TextlikeComponent
- Direct Known Subclasses:
TextlikeComponent.TableTextComponent,TextlikeComponent.TextLikeCodeEditor,TextlikeComponent.TextLikeComboBox,TextlikeComponent.TextLikeScriptEditor,TextlikeComponent.TextLikeTextComponent
Wrapper around various components that can be modeled like a JTextComponent. Can be instantiated
using the static of(component) functions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Componentabstract StringgetText()static TextlikeComponentof(com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp) static TextlikeComponentof(com.jidesoft.editor.CodeEditor comp) static TextlikeComponentstatic TextlikeComponentUses the currently selected row of the table.static TextlikeComponentUses the currently selected row of the table.static TextlikeComponentof(JTextComponent comp) abstract voidabstract voidInserts text into the component.
-
Constructor Details
-
TextlikeComponent
public TextlikeComponent()
-
-
Method Details
-
setText
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
-
getInternalComponent
-
of
-
of
public static TextlikeComponent of(com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp) -
of
-
of
-
of
Uses the currently selected row of the table. Will overwrite the existing text duringsetText(String), contrary to the description of the method. For alternate behavior, seeTextLikeComponent.of(table, column, keepExistingText). -
of
Uses the currently selected row of the table.- Parameters:
keepExistingText- If true, any text in the cell will be preserved during a setText operation. If false, the cell will be overwritten completely (contrary to the behavior described insetText(String)).
-