Class DoubleEditor
- 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.DoubleEditor
 
 
 
 
 
- 
- All Implemented Interfaces:
- BindablePropertyEditor,- java.beans.PropertyEditor
 
 public class DoubleEditor extends AbstractNumberEditor This is the component used in the property editor table to edit Double and double properties. It handles null values gracefully as empty string.
- 
- 
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 DoubleEditor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectextractSubtype(java.lang.Number number)Return the right kind of number here.protected java.text.NumberFormatnewNumberFormat()Override to provide the correct number format for your type- 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditorgetValue, initComponents, setValue
 - 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportcreateDynamicOptsButton, init, isBindableEnabled, setBindableEnabled
 - 
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportgetBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
 
- 
 
- 
- 
- 
Method Detail- 
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
 
 
- 
 
-