Class TextlikeComponent
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.util.TextlikeComponent
 
- 
- Direct Known Subclasses:
- TextlikeComponent.TableTextComponent,- TextlikeComponent.TextLikeCodeEditor,- TextlikeComponent.TextLikeComboBox,- TextlikeComponent.TextLikeScriptEditor,- 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 SummaryNested Classes Modifier and Type Class Description static classTextlikeComponent.TableTextComponentstatic classTextlikeComponent.TextLikeCodeEditorstatic classTextlikeComponent.TextLikeComboBoxstatic classTextlikeComponent.TextLikeScriptEditorstatic classTextlikeComponent.TextLikeTextComponent
 - 
Constructor SummaryConstructors Constructor Description TextlikeComponent()
 - 
Method SummaryAll 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.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp)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 table.static TextlikeComponentof(javax.swing.JTable comp, int column, boolean keepExistingText)Uses the currently selected row of the table.static TextlikeComponentof(javax.swing.text.JTextComponent comp)abstract voidrequestFocus()abstract voidsetText(java.lang.String text)Inserts text into the component.
 
- 
- 
- 
Method Detail- 
setTextpublic 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.
 - 
requestFocuspublic abstract void requestFocus() 
 - 
getTextpublic abstract java.lang.String getText() 
 - 
getInternalComponentpublic abstract java.awt.Component getInternalComponent() 
 - 
ofpublic static TextlikeComponent of(com.jidesoft.editor.CodeEditor comp) 
 - 
ofpublic static TextlikeComponent of(com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea comp) 
 - 
ofpublic static TextlikeComponent of(javax.swing.text.JTextComponent comp) 
 - 
ofpublic static TextlikeComponent of(javax.swing.JComboBox<?> comp) 
 - 
ofpublic static TextlikeComponent of(javax.swing.JTable comp, int column) 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).
 - 
ofpublic static TextlikeComponent of(javax.swing.JTable comp, int column, boolean keepExistingText) 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 in- setText(String)).
 
 
- 
 
-