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 |
addGluebean, 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, setBindableEnabledgetBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorprotected 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.PropertyEditorsetValue in class java.beans.PropertyEditorSupportprotected void initComponents()
ConfiguratorEditorSupportinitComponents in class ConfiguratorEditorSupportpublic java.lang.Object getValue()
getValue in interface java.beans.PropertyEditorgetValue in class java.beans.PropertyEditorSupport