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 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.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:
initin classConfiguratorEditorSupport
-
setBindableEnabled
public void setBindableEnabled(boolean b)
- Specified by:
setBindableEnabledin interfaceBindablePropertyEditor- Overrides:
setBindableEnabledin classConfiguratorEditorSupport
-
getCustomEditor
public java.awt.Component getCustomEditor()
Return the custom editor for the enumeration or the integer.- Specified by:
getCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
getCustomEditorin 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:
addPropertyChangeListenerin interfacejava.beans.PropertyEditor- Overrides:
addPropertyChangeListenerin classjava.beans.PropertyEditorSupport
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
removePropertyChangeListenerin interfacejava.beans.PropertyEditor- Overrides:
removePropertyChangeListenerin classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfacejava.beans.PropertyEditor- Overrides:
setValuein classAbstractNumberEditor
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfacejava.beans.PropertyEditor- Overrides:
getValuein classAbstractNumberEditor
-
newNumberFormat
protected java.text.NumberFormat newNumberFormat()
Description copied from class:AbstractNumberEditorOverride to provide the correct number format for your type- Specified by:
newNumberFormatin classAbstractNumberEditor
-
extractSubtype
protected java.lang.Object extractSubtype(java.lang.Number number)
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
-
-