public abstract class NumberSpinnerEditor extends PropertyEditorSupport
Modifier and Type | Field and Description |
---|---|
protected SpinnerNumberModel |
model |
Constructor and Description |
---|
NumberSpinnerEditor() |
NumberSpinnerEditor(boolean withNullOption) |
Modifier and Type | Method and Description |
---|---|
protected void |
customize() |
String |
getAsText() |
Component |
getCustomEditor() |
static String |
getNameOfCreation() |
static String |
getNameOfNull() |
static boolean |
isAllowNullByDefault() |
protected abstract void |
makeModel() |
static void |
setAllowNullByDefault(boolean allowNullByDefault) |
void |
setAsText(String text) |
static void |
setNameOfCreation(String nameOfCreation) |
static void |
setNameOfNull(String nameOfNull) |
void |
setValue(Object value) |
boolean |
supportsCustomEditor() |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource
protected SpinnerNumberModel model
public NumberSpinnerEditor()
public NumberSpinnerEditor(boolean withNullOption)
protected void customize()
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public static String getNameOfCreation()
public static String getNameOfNull()
public static boolean isAllowNullByDefault()
protected abstract void makeModel()
public static void setAllowNullByDefault(boolean allowNullByDefault)
public void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public static void setNameOfCreation(String nameOfCreation)
public static void setNameOfNull(String nameOfNull)
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport