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.Object
Wrapper 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 class
TextlikeComponent.TableTextComponent
static class
TextlikeComponent.TextLikeCodeEditor
static class
TextlikeComponent.TextLikeComboBox
static class
TextlikeComponent.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.Component
getInternalComponent()
abstract java.lang.String
getText()
static TextlikeComponent
of(com.jidesoft.editor.CodeEditor comp)
static TextlikeComponent
of(javax.swing.JComboBox comp)
static TextlikeComponent
of(javax.swing.JTable comp, int column)
Uses the currently selected row of the tablestatic TextlikeComponent
of(javax.swing.text.JTextComponent comp)
abstract void
requestFocus()
abstract void
setText(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
-
-