Class AbstractNumberEditor
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
- All Implemented Interfaces:
- BindablePropertyEditor,- PropertyEditor
- Direct Known Subclasses:
- DoubleEditor,- FloatEditor,- IntegerEditor,- LongEditor,- ShortEditor
This abstract editor is the basis for the numeric editors. It handles nulls, which it represents as empty string.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportaddGlueFields 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
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract ObjectextractSubtype(Number number) Return the right kind of number here.getValue()protected voidThis is where you can add your own components to the "panel" field.protected abstract NumberFormatOverride to provide the correct number format for your typevoidMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportcreateDynamicOptsButton, init, isBindableEnabled, setBindableEnabledMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportgetBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
- 
Field Details- 
formattedTextField
 
- 
- 
Constructor Details- 
AbstractNumberEditorpublic AbstractNumberEditor()
 
- 
- 
Method Details- 
newNumberFormatOverride to provide the correct number format for your type
- 
extractSubtypeReturn the right kind of number here.- Parameters:
- number- Will never be null.
- Returns:
- The correct kind of number, for example, a Double
 
- 
setValue- Specified by:
- setValuein interface- PropertyEditor
- Overrides:
- setValuein class- PropertyEditorSupport
 
- 
initComponentsprotected void initComponents()Description copied from class:ConfiguratorEditorSupportThis is where you can add your own components to the "panel" field. It has a box layout and the binding button will be added after this method is called.- Specified by:
- initComponentsin class- ConfiguratorEditorSupport
 
- 
getValue- Specified by:
- getValuein interface- PropertyEditor
- Overrides:
- getValuein class- PropertyEditorSupport
 
 
-