public abstract class AbstractNumberEditor extends ConfiguratorEditorSupport
Modifier and Type | Class and Description |
---|---|
static class |
AbstractNumberEditor.NullAcceptableNumberFormatter |
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JFormattedTextField |
formattedTextField |
addGlue
bean, BUTTON_MARGIN, canceled, fpmi, LARGE_DIMENSION, MEDIUM_DIMENSION, modelColumn, modelRow, panel, propertyName, SMALL_DIMENSION, tableModel, TINY_DIMENSION
Constructor and Description |
---|
AbstractNumberEditor() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
extractSubtype(java.lang.Number number)
Return the right kind of number here.
|
java.lang.Object |
getValue() |
protected void |
initComponents()
This is where you can add your own components to the "panel" field.
|
protected abstract java.text.NumberFormat |
newNumberFormat()
Override to provide the correct number format for your type
|
void |
setValue(java.lang.Object value) |
createDynamicOptsButton, init, isBindableEnabled, setBindableEnabled
getBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
protected abstract java.text.NumberFormat newNumberFormat()
protected abstract java.lang.Object extractSubtype(java.lang.Number number)
number
- Will never be null.public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
protected void initComponents()
ConfiguratorEditorSupport
initComponents
in class ConfiguratorEditorSupport
public java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
getValue
in class java.beans.PropertyEditorSupport