Class IntegerEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
-
- com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
-
- com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
-
- com.inductiveautomation.factorypmi.designer.property.editors.IntegerEditor
-
- All Implemented Interfaces:
BindablePropertyEditor
,java.beans.PropertyEditor
public class IntegerEditor extends AbstractNumberEditor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
AbstractNumberEditor.NullAcceptableNumberFormatter
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
formattedTextField
-
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
addGlue
-
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
bean, BUTTON_MARGIN, canceled, fpmi, LARGE_DIMENSION, MEDIUM_DIMENSION, modelColumn, modelRow, panel, propertyName, SMALL_DIMENSION, tableModel, TINY_DIMENSION
-
-
Constructor Summary
Constructors Constructor Description IntegerEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 typevoid
removePropertyChangeListener(java.beans.PropertyChangeListener l)
void
setBindableEnabled(boolean b)
void
setValue(java.lang.Object value)
-
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
initComponents
-
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
createDynamicOptsButton, isBindableEnabled
-
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
getBean, getContext, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
-
-
-
-
Method Detail
-
init
protected void init(java.beans.FeatureDescriptor descriptor)
Initializes this property editor with the enumerated items.- Overrides:
init
in classConfiguratorEditorSupport
-
setBindableEnabled
public void setBindableEnabled(boolean b)
- Specified by:
setBindableEnabled
in interfaceBindablePropertyEditor
- Overrides:
setBindableEnabled
in classConfiguratorEditorSupport
-
getCustomEditor
public java.awt.Component getCustomEditor()
Return the custom editor for the enumeration or the integer.- Specified by:
getCustomEditor
in interfacejava.beans.PropertyEditor
- Overrides:
getCustomEditor
in classSwingEditorSupport
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Must overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.- Specified by:
addPropertyChangeListener
in interfacejava.beans.PropertyEditor
- Overrides:
addPropertyChangeListener
in classjava.beans.PropertyEditorSupport
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
removePropertyChangeListener
in interfacejava.beans.PropertyEditor
- Overrides:
removePropertyChangeListener
in classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejava.beans.PropertyEditor
- Overrides:
setValue
in classAbstractNumberEditor
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfacejava.beans.PropertyEditor
- Overrides:
getValue
in classAbstractNumberEditor
-
newNumberFormat
protected java.text.NumberFormat newNumberFormat()
Description copied from class:AbstractNumberEditor
Override to provide the correct number format for your type- Specified by:
newNumberFormat
in classAbstractNumberEditor
-
extractSubtype
protected java.lang.Object extractSubtype(java.lang.Number number)
Description copied from class:AbstractNumberEditor
Return the right kind of number here.- Specified by:
extractSubtype
in classAbstractNumberEditor
- Parameters:
number
- Will never be null.- Returns:
- The correct kind of number, for example, a Double
-
-