Class ShortEditor
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.ShortEditor
- All Implemented Interfaces:
BindablePropertyEditor, PropertyEditor
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractNumberEditor
AbstractNumberEditor.NullAcceptableNumberFormatter -
Field Summary
Fields inherited from class AbstractNumberEditor
formattedTextFieldFields inherited from class ConfiguratorEditorSupport
addGlueFields inherited from class 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 ObjectextractSubtype(Number number) Return the right kind of number here.protected NumberFormatOverride to provide the correct number format for your typeMethods inherited from class AbstractNumberEditor
getValue, initComponents, setValueMethods inherited from class ConfiguratorEditorSupport
applyAutomationName, createDynamicOptsButton, init, isBindableEnabled, setBindableEnabledMethods inherited from class SwingEditorSupport
getBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorMethods inherited from class PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
-
Constructor Details
-
ShortEditor
public ShortEditor()
-
-
Method Details
-
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
-