Class ImagePathEditor
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.ImagePathEditor
- All Implemented Interfaces:
BindablePropertyEditor, PropertyEditor
-
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 TypeMethodDescriptionvoidapplyAutomationName(String prop) protected voidThis function shows an interactive image choose, and if an image is chosen, calls setValue() with the path of the imagegetValue()protected voidThis is where you can add your own components to the "panel" field.static voidresizePMIImage(Object component, ImageObserver imageObserver, String path) 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, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
-
Constructor Details
-
ImagePathEditor
public ImagePathEditor()
-
-
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
-
setValue
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classPropertyEditorSupport
-
getValue
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
choosePath
protected void choosePath()This function shows an interactive image choose, and if an image is chosen, calls setValue() with the path of the image -
resizePMIImage
-
applyAutomationName
- Overrides:
applyAutomationNamein classConfiguratorEditorSupport
-