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,PropertyEditor
-
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
formattedTextFieldFields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
addGlueFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidMust overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.protected ObjectextractSubtype(Number number) Return the right kind of number here.Return the custom editor for the enumeration or the integer.getValue()protected voidinit(FeatureDescriptor descriptor) Initializes this property editor with the enumerated items.protected NumberFormatOverride to provide the correct number format for your typevoidvoidsetBindableEnabled(boolean b) voidMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
initComponentsMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
createDynamicOptsButton, isBindableEnabledMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
getBean, getContext, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorMethods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, setAsText, setSource
-
Constructor Details
-
IntegerEditor
public IntegerEditor()
-
-
Method Details
-
init
Initializes this property editor with the enumerated items.- Overrides:
initin classConfiguratorEditorSupport
-
setBindableEnabled
public void setBindableEnabled(boolean b) - Specified by:
setBindableEnabledin interfaceBindablePropertyEditor- Overrides:
setBindableEnabledin classConfiguratorEditorSupport
-
getCustomEditor
Return the custom editor for the enumeration or the integer.- Specified by:
getCustomEditorin interfacePropertyEditor- Overrides:
getCustomEditorin classSwingEditorSupport
-
addPropertyChangeListener
Must overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.- Specified by:
addPropertyChangeListenerin interfacePropertyEditor- Overrides:
addPropertyChangeListenerin classPropertyEditorSupport
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePropertyEditor- Overrides:
removePropertyChangeListenerin classPropertyEditorSupport
-
setValue
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classAbstractNumberEditor
-
getValue
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classAbstractNumberEditor
-
newNumberFormat
Description copied from class:AbstractNumberEditorOverride to provide the correct number format for your type- Specified by:
newNumberFormatin classAbstractNumberEditor
-
extractSubtype
Description copied from class:AbstractNumberEditorReturn the right kind of number here.- Specified by:
extractSubtypein classAbstractNumberEditor- Parameters:
number- Will never be null.- Returns:
- The correct kind of number, for example, a Double
-