public class SwingTextProperty extends AbstractBasicSimpleEditableChangeableItem implements Property<java.lang.String>
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoSave
Save values automatically?
|
protected java.lang.String |
value
The string value.
|
Constructor and Description |
---|
SwingTextProperty(java.lang.String basicName,
java.lang.String baseTag,
boolean autoSave,
java.lang.String value,
int rows,
int columns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumns()
Get the colunns which the editor should provide.
|
EditorProvider |
getEditorProvider(java.util.Locale l)
Get the editor components for editing this preference property.
|
int |
getRows()
Get the rows which the editor should provide.
|
java.lang.String |
getValue()
Get the string value.
|
void |
setValue(java.lang.String value)
Set the value.
|
getBaseTag, getLabelString, getMenuString, getName, getString
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
getName
protected final boolean autoSave
protected java.lang.String value
public SwingTextProperty(@NotNull java.lang.String basicName, @NotNull java.lang.String baseTag, boolean autoSave, java.lang.String value, int rows, int columns)
basicName
- basic namebaseTag
- base tagautoSave
- automatically save changes?value
- text valuerows
- rows of editorcolumns
- columns of editor@NotNull public EditorProvider getEditorProvider(@Nullable java.util.Locale l)
getEditorProvider
in interface EditableProperty
l
- locale used for i18npublic java.lang.String getValue()
public void setValue(java.lang.String value)
public int getRows()
public int getColumns()