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 SummaryFields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportaddGlueFields inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportbean, BUTTON_MARGIN, canceled, fpmi, LARGE_DIMENSION, MEDIUM_DIMENSION, modelColumn, modelRow, panel, propertyName, SMALL_DIMENSION, tableModel, TINY_DIMENSION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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 com.inductiveautomation.factorypmi.designer.property.editors.ConfiguratorEditorSupportcreateDynamicOptsButton, init, isBindableEnabled, setBindableEnabledMethods inherited from class com.inductiveautomation.factorypmi.designer.property.editors.bb.SwingEditorSupportgetBean, getContext, getCustomEditor, getFPMIContext, getPropertyName, init, isCanceled, setAlignment, supportsCustomEditorMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
- 
Constructor Details- 
ImagePathEditorpublic ImagePathEditor()
 
- 
- 
Method Details- 
initComponentsprotected 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 class- ConfiguratorEditorSupport
 
- 
setValue- Specified by:
- setValuein interface- PropertyEditor
- Overrides:
- setValuein class- PropertyEditorSupport
 
- 
getValue- Specified by:
- getValuein interface- PropertyEditor
- Overrides:
- getValuein class- PropertyEditorSupport
 
- 
choosePathprotected void choosePath()This function shows an interactive image choose, and if an image is chosen, calls setValue() with the path of the image
- 
resizePMIImage
 
-