public class IntegerEditor extends AbstractNumberEditor
AbstractNumberEditor.NullAcceptableNumberFormatter
formattedTextField
addGlue
bean, BUTTON_MARGIN, canceled, fpmi, LARGE_DIMENSION, MEDIUM_DIMENSION, modelColumn, modelRow, panel, propertyName, SMALL_DIMENSION, tableModel, TINY_DIMENSION
Constructor and Description |
---|
IntegerEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Must overload the PropertyChangeListener registration because this class is the only interface to the
SwingEnumEditor.
|
protected java.lang.Object |
extractSubtype(java.lang.Number number)
Return the right kind of number here.
|
java.awt.Component |
getCustomEditor()
Return the custom editor for the enumeration or the integer.
|
java.lang.Object |
getValue() |
protected void |
init(java.beans.FeatureDescriptor descriptor)
Initializes this property editor with the enumerated items.
|
protected java.text.NumberFormat |
newNumberFormat()
Override to provide the correct number format for your type
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
void |
setBindableEnabled(boolean b) |
void |
setValue(java.lang.Object value) |
initComponents
createDynamicOptsButton, isBindableEnabled
getBean, getContext, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
protected void init(java.beans.FeatureDescriptor descriptor)
init
in class ConfiguratorEditorSupport
public void setBindableEnabled(boolean b)
setBindableEnabled
in interface BindablePropertyEditor
setBindableEnabled
in class ConfiguratorEditorSupport
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class SwingEditorSupport
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface java.beans.PropertyEditor
addPropertyChangeListener
in class java.beans.PropertyEditorSupport
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface java.beans.PropertyEditor
removePropertyChangeListener
in class java.beans.PropertyEditorSupport
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class AbstractNumberEditor
public java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
getValue
in class AbstractNumberEditor
protected java.text.NumberFormat newNumberFormat()
AbstractNumberEditor
newNumberFormat
in class AbstractNumberEditor
protected java.lang.Object extractSubtype(java.lang.Number number)
AbstractNumberEditor
extractSubtype
in class AbstractNumberEditor
number
- Will never be null.