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 class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Component
abstract String
getText()
static TextlikeComponent
of
(com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp) static TextlikeComponent
of
(com.jidesoft.editor.CodeEditor comp) static TextlikeComponent
static TextlikeComponent
Uses the currently selected row of the table.static TextlikeComponent
Uses the currently selected row of the table.static TextlikeComponent
of
(JTextComponent comp) abstract void
abstract void
Inserts 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)
).
-