public class SwingFormattedStringProperty<T> extends AbstractBasicSimpleEditableChangeableItem implements Property<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ROWS
Default number of rows displayed in editor.
|
protected T |
value
The value.
|
| Constructor and Description |
|---|
SwingFormattedStringProperty(java.lang.String basicName,
java.lang.String baseTag,
javax.swing.JFormattedTextField.AbstractFormatter formatter)
Constructor.
|
SwingFormattedStringProperty(java.lang.String basicName,
java.lang.String baseTag,
javax.swing.JFormattedTextField.AbstractFormatter formatter,
boolean autoSave,
T value,
int columns)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumns()
Get the number of columns to be displayed.
|
EditorProvider |
getEditorProvider(java.util.Locale l)
Get the editor components for editing this preference property.
|
javax.swing.JFormattedTextField.AbstractFormatter |
getFormatter()
Get the formatter to use.
|
T |
getValue()
Get the value.
|
void |
setValue(T value)
Set the value.
|
getBaseTag, getLabelString, getMenuString, getName, getStringaddValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeaklyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeaklygetNamepublic static final int DEFAULT_ROWS
protected T value
public SwingFormattedStringProperty(@NotNull java.lang.String basicName, @NotNull java.lang.String baseTag, @NotNull javax.swing.JFormattedTextField.AbstractFormatter formatter)
basicName - basic namebaseTag - base tagformatter - formatter defining the expected format of the stringpublic SwingFormattedStringProperty(@NotNull java.lang.String basicName, @NotNull java.lang.String baseTag, @NotNull javax.swing.JFormattedTextField.AbstractFormatter formatter, boolean autoSave, T value, int columns)
basicName - basic namebaseTag - base tagformatter - formatter defining the expected format of the stringautoSave - do auto save?value - initial valuecolumns - columns to display@NotNull public EditorProvider getEditorProvider(@Nullable java.util.Locale l)
getEditorProvider in interface EditablePropertyl - locale used for i18npublic int getColumns()
public T getValue()
@NotNull public javax.swing.JFormattedTextField.AbstractFormatter getFormatter()