Class SwingFontEditor
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.bb.SwingFontEditor
- All Implemented Interfaces:
BindablePropertyEditor, ActionListener, PropertyEditor, EventListener
A Font property editor. Mostly designed by Chris Ryan.
-
Field Summary
Fields 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 TypeMethodDescriptionvoidActionListener handler for all component events to set the value of the PropertyEditor as a result of a change in the value by the user.voidapplyAutomationName(String prop) protected voidThis is where you can add your own components to the "panel" field.booleanvoidpaintValue(Graphics g, Rectangle rect) voidMethods inherited from class ConfiguratorEditorSupport
createDynamicOptsButton, init, isBindableEnabled, setBindableEnabledMethods inherited from class SwingEditorSupport
getBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorMethods inherited from class PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource
-
Constructor Details
-
SwingFontEditor
public SwingFontEditor()
-
-
Method Details
-
initComponents
protected 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 classConfiguratorEditorSupport
-
actionPerformed
ActionListener handler for all component events to set the value of the PropertyEditor as a result of a change in the value by the user.- Specified by:
actionPerformedin interfaceActionListener
-
setValue
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintablein interfacePropertyEditor- Overrides:
isPaintablein classPropertyEditorSupport
-
paintValue
- Specified by:
paintValuein interfacePropertyEditor- Overrides:
paintValuein classPropertyEditorSupport
-
getJavaInitializationString
- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Overrides:
getJavaInitializationStringin classPropertyEditorSupport
-
applyAutomationName
- Overrides:
applyAutomationNamein classConfiguratorEditorSupport
-