Class SwingEditorSupport
java.lang.Object
java.beans.PropertyEditorSupport
com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupport
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
ColorArrayEditor
,ConfiguratorEditorSupport
,CursorEditor
,SwingDimensionEditor
,SwingEnumEditor
,SwingIconEditor
,SwingInsetsEditor
,SwingObjectEditor
,SwingPointEditor
,SwingRectangleEditor
Base class of all Swing based property editors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
protected static final Insets
protected boolean
protected VisionDesignerInterface
protected static final Dimension
protected static final Dimension
protected int
protected int
protected JPanel
Component which holds the editor.protected String
protected static final Dimension
protected TableModel
protected static final Dimension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Returns the panel responsible for rendering the PropertyEditor.void
init
(VisionDesignerInterface fpmi, FeatureDescriptor descriptor, Object bean, TableModel model, int row, int col) For property editors that must be initialized with values from the property descriptor.protected void
init
(FeatureDescriptor descriptor) boolean
protected final void
boolean
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue
-
Field Details
-
panel
Component which holds the editor. Subclasses are responsible for instantiating this panel. -
fpmi
-
bean
-
propertyName
-
canceled
protected boolean canceled -
tableModel
-
modelRow
protected int modelRow -
modelColumn
protected int modelColumn -
LARGE_DIMENSION
-
MEDIUM_DIMENSION
-
SMALL_DIMENSION
-
TINY_DIMENSION
-
BUTTON_MARGIN
-
-
Constructor Details
-
SwingEditorSupport
public SwingEditorSupport()
-
-
Method Details
-
getCustomEditor
Returns the panel responsible for rendering the PropertyEditor.- Specified by:
getCustomEditor
in interfacePropertyEditor
- Overrides:
getCustomEditor
in classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditor
in interfacePropertyEditor
- Overrides:
supportsCustomEditor
in classPropertyEditorSupport
-
getContext
-
getFPMIContext
-
setAlignment
-
init
public void init(VisionDesignerInterface fpmi, FeatureDescriptor descriptor, Object bean, TableModel model, int row, int col) For property editors that must be initialized with values from the property descriptor. -
init
-
getBean
-
getPropertyName
-
isCanceled
public boolean isCanceled()
-