Class SerializedPaletteItem
java.lang.Object
com.inductiveautomation.vision.api.designer.palette.AbstractPaletteItem
com.inductiveautomation.factorypmi.designer.palette.model.SerializedPaletteItem
- All Implemented Interfaces:
ComponentInstantiator
,PaletteItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComponent
(VisionDesignerInterface context, JComponent dropContainer) Create a new instance of the component that this item representsgetData()
getIcon()
byte[]
boolean
Can this palette item ever become selected? Palette items are selected so that the user may specify their components' exact bounds on the window.void
Called by the AbstractCustomGroupView when a copy is detected after selecting the capture button.void
setImageData
(byte[] imageData) void
void
setShortDescription
(String shortDescription) void
setVersion
(int version) Deprecated.void
setWindow
(boolean window) Deprecated.Methods inherited from class com.inductiveautomation.vision.api.designer.palette.AbstractPaletteItem
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getDisplayName, getName, getShortDescription, isEnabled, isSelected, removePropertyChangeListener, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setSelected, setSmallIcon, toString
-
Constructor Details
-
SerializedPaletteItem
public SerializedPaletteItem()
-
-
Method Details
-
createComponent
public JComponent createComponent(VisionDesignerInterface context, JComponent dropContainer) throws Exception Description copied from interface:ComponentInstantiator
Create a new instance of the component that this item represents- Throws:
Exception
-
isSelectable
public boolean isSelectable()Description copied from interface:PaletteItem
Can this palette item ever become selected? Palette items are selected so that the user may specify their components' exact bounds on the window. -
getIcon
- Specified by:
getIcon
in interfacePaletteItem
- Overrides:
getIcon
in classAbstractPaletteItem
-
getSmallIcon
- Specified by:
getSmallIcon
in interfacePaletteItem
- Overrides:
getSmallIcon
in classAbstractPaletteItem
-
setName
- Overrides:
setName
in classAbstractPaletteItem
-
setShortDescription
- Overrides:
setShortDescription
in classAbstractPaletteItem
-
getData
-
setData
Called by the AbstractCustomGroupView when a copy is detected after selecting the capture button.- Parameters:
data
- Gzipped UTF-8 encoded XML
-
getImageData
public byte[] getImageData() -
setImageData
public void setImageData(byte[] imageData) -
setWindow
Deprecated. -
setVersion
Deprecated.
-