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
,PropertyEditor
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.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
extractSubtype
(Number number) Return the right kind of number here.protected NumberFormat
Override to provide the correct number format for your typeMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.AbstractNumberEditor
getValue, initComponents, setValue
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupport
createDynamicOptsButton, init, isBindableEnabled, setBindableEnabled
Methods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
getBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditor
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
-
Constructor Details
-
DoubleEditor
public DoubleEditor()
-
-
Method Details
-
newNumberFormat
Description copied from class:AbstractNumberEditor
Override to provide the correct number format for your type- Specified by:
newNumberFormat
in classAbstractNumberEditor
-
extractSubtype
Description copied from class:AbstractNumberEditor
Return the right kind of number here.- Specified by:
extractSubtype
in classAbstractNumberEditor
- Parameters:
number
- Will never be null.- Returns:
- The correct kind of number, for example, a Double
-