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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
TextlikeComponentpublic TextlikeComponent()
 
- 
- 
Method Details- 
setTextInserts text into the component. Note: usually expected to NOT replace everything, but instead insert at the current cursor position.
- 
requestFocuspublic abstract void requestFocus()
- 
getText
- 
getInternalComponent
- 
of
- 
ofpublic static TextlikeComponent of(com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp) 
- 
of
- 
of
- 
ofUses 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).
- 
ofUses 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 in- setText(String)).
 
 
-