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
,java.awt.event.ActionListener
,java.beans.PropertyEditor
,java.util.EventListener
public class SwingFontEditor extends ConfiguratorEditorSupport implements java.awt.event.ActionListener
A Font property editor. Mostly designed by Chris Ryan.
-
-
Field Summary
-
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 Constructor Description SwingFontEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent evt)
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.java.lang.String
getJavaInitializationString()
protected void
initComponents()
This is where you can add your own components to the "panel" field.boolean
isPaintable()
void
paintValue(java.awt.Graphics g, java.awt.Rectangle rect)
void
setValue(java.lang.Object value)
-
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
-
-
-
-
Method Detail
-
initComponents
protected void initComponents()
Description copied from class:ConfiguratorEditorSupport
This 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:
initComponents
in classConfiguratorEditorSupport
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
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:
actionPerformed
in interfacejava.awt.event.ActionListener
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejava.beans.PropertyEditor
- Overrides:
setValue
in classjava.beans.PropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintable
in interfacejava.beans.PropertyEditor
- Overrides:
isPaintable
in classjava.beans.PropertyEditorSupport
-
paintValue
public void paintValue(java.awt.Graphics g, java.awt.Rectangle rect)
- Specified by:
paintValue
in interfacejava.beans.PropertyEditor
- Overrides:
paintValue
in classjava.beans.PropertyEditorSupport
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacejava.beans.PropertyEditor
- Overrides:
getJavaInitializationString
in classjava.beans.PropertyEditorSupport
-
-