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[]booleanCan this palette item ever become selected? Palette items are selected so that the user may specify their components' exact bounds on the window.voidCalled by the AbstractCustomGroupView when a copy is detected after selecting the capture button.voidsetImageData(byte[] imageData) voidvoidsetShortDescription(String shortDescription) voidsetVersion(int version) Deprecated.voidsetWindow(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:ComponentInstantiatorCreate a new instance of the component that this item represents- Throws:
Exception
-
isSelectable
public boolean isSelectable()Description copied from interface:PaletteItemCan 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:
getIconin interfacePaletteItem- Overrides:
getIconin classAbstractPaletteItem
-
getSmallIcon
- Specified by:
getSmallIconin interfacePaletteItem- Overrides:
getSmallIconin classAbstractPaletteItem
-
setName
- Overrides:
setNamein classAbstractPaletteItem
-
setShortDescription
- Overrides:
setShortDescriptionin 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.
-