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.AbstractNumberEditorAbstractNumberEditor.NullAcceptableNumberFormatter
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditorformattedTextField
 - 
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportaddGlue
 - 
Fields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportbean, BUTTON_MARGIN, canceled, fpmi, LARGE_DIMENSION, MEDIUM_DIMENSION, modelColumn, modelRow, panel, propertyName, SMALL_DIMENSION, tableModel, TINY_DIMENSION
 
- 
 - 
Constructor SummaryConstructors Constructor Description IntegerEditor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Must overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.protected java.lang.ObjectextractSubtype(java.lang.Number number)Return the right kind of number here.java.awt.ComponentgetCustomEditor()Return the custom editor for the enumeration or the integer.java.lang.ObjectgetValue()protected voidinit(java.beans.FeatureDescriptor descriptor)Initializes this property editor with the enumerated items.protected java.text.NumberFormatnewNumberFormat()Override to provide the correct number format for your typevoidremovePropertyChangeListener(java.beans.PropertyChangeListener l)voidsetBindableEnabled(boolean b)voidsetValue(java.lang.Object value)- 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditorinitComponents
 - 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportcreateDynamicOptsButton, isBindableEnabled
 - 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportgetBean, getContext, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
 
- 
 
- 
- 
- 
Method Detail- 
initprotected void init(java.beans.FeatureDescriptor descriptor) Initializes this property editor with the enumerated items.- Overrides:
- initin class- ConfiguratorEditorSupport
 
 - 
setBindableEnabledpublic void setBindableEnabled(boolean b) - Specified by:
- setBindableEnabledin interface- BindablePropertyEditor
- Overrides:
- setBindableEnabledin class- ConfiguratorEditorSupport
 
 - 
getCustomEditorpublic java.awt.Component getCustomEditor() Return the custom editor for the enumeration or the integer.- Specified by:
- getCustomEditorin interface- java.beans.PropertyEditor
- Overrides:
- getCustomEditorin class- SwingEditorSupport
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l) Must overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.- Specified by:
- addPropertyChangeListenerin interface- java.beans.PropertyEditor
- Overrides:
- addPropertyChangeListenerin class- java.beans.PropertyEditorSupport
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l) - Specified by:
- removePropertyChangeListenerin interface- java.beans.PropertyEditor
- Overrides:
- removePropertyChangeListenerin class- java.beans.PropertyEditorSupport
 
 - 
setValuepublic void setValue(java.lang.Object value) - Specified by:
- setValuein interface- java.beans.PropertyEditor
- Overrides:
- setValuein class- AbstractNumberEditor
 
 - 
getValuepublic java.lang.Object getValue() - Specified by:
- getValuein interface- java.beans.PropertyEditor
- Overrides:
- getValuein class- AbstractNumberEditor
 
 - 
newNumberFormatprotected java.text.NumberFormat newNumberFormat() Description copied from class:AbstractNumberEditorOverride to provide the correct number format for your type- Specified by:
- newNumberFormatin class- AbstractNumberEditor
 
 - 
extractSubtypeprotected java.lang.Object extractSubtype(java.lang.Number number) Description copied from class:AbstractNumberEditorReturn the right kind of number here.- Specified by:
- extractSubtypein class- AbstractNumberEditor
- Parameters:
- number- Will never be null.
- Returns:
- The correct kind of number, for example, a Double
 
 
- 
 
-