public interface TextComponentAccessor<T extends java.awt.Component>
| Modifier and Type | Field and Description |
|---|---|
static TextComponentAccessor<javax.swing.JComboBox> |
STRING_COMBOBOX_WHOLE_TEXT
The accessor that gets and changes whole text
|
static TextComponentAccessor<javax.swing.JTextField> |
TEXT_FIELD_SELECTED_TEXT
The accessor that replaces selection or whole text if there is no selection
|
static TextComponentAccessor<javax.swing.JTextField> |
TEXT_FIELD_WHOLE_TEXT
The accessor that gets and changes whole text
|
static TextComponentAccessor<TextFieldWithHistory> |
TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT
The accessor that gets and changes whole text
|
static TextComponentAccessor<TextFieldWithStoredHistory> |
TEXT_FIELD_WITH_STORED_HISTORY_WHOLE_TEXT
The accessor that gets and changes whole text
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText(T component)
Get text from component
|
void |
setText(T component,
java.lang.String text)
Set text to the component
|
static final TextComponentAccessor<javax.swing.JTextField> TEXT_FIELD_WHOLE_TEXT
static final TextComponentAccessor<javax.swing.JTextField> TEXT_FIELD_SELECTED_TEXT
static final TextComponentAccessor<javax.swing.JComboBox> STRING_COMBOBOX_WHOLE_TEXT
static final TextComponentAccessor<TextFieldWithHistory> TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT
static final TextComponentAccessor<TextFieldWithStoredHistory> TEXT_FIELD_WITH_STORED_HISTORY_WHOLE_TEXT
java.lang.String getText(T component)
component - a component to examinevoid setText(T component, java.lang.String text)
component - the componenttext - the text to set