Class SerializedPaletteItem
- java.lang.Object
 - 
- com.inductiveautomation.vision.api.designer.palette.AbstractPaletteItem
 - 
- com.inductiveautomation.factorypmi.designer.palette.model.SerializedPaletteItem
 
 
 
- 
- All Implemented Interfaces:
 ComponentInstantiator,PaletteItem
public class SerializedPaletteItem extends AbstractPaletteItem
 
- 
- 
Constructor Summary
Constructors Constructor Description SerializedPaletteItem() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.swing.JComponentcreateComponent(VisionDesignerInterface context, javax.swing.JComponent dropContainer)Create a new instance of the component that this item representsjava.lang.StringgetData()javax.swing.IcongetIcon()byte[]getImageData()javax.swing.IcongetSmallIcon()booleanisSelectable()Can this palette item ever become selected? Palette items are selected so that the user may specify their components' exact bounds on the window.voidsetData(java.lang.String data)Called by the AbstractCustomGroupView when a copy is detected after selecting the capture button.voidsetImageData(byte[] imageData)voidsetName(java.lang.String name)voidsetShortDescription(java.lang.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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
createComponent
public javax.swing.JComponent createComponent(VisionDesignerInterface context, javax.swing.JComponent dropContainer) throws java.lang.Exception
Description copied from interface:ComponentInstantiatorCreate a new instance of the component that this item represents- Throws:
 java.lang.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
public javax.swing.Icon getIcon()
- Specified by:
 getIconin interfacePaletteItem- Overrides:
 getIconin classAbstractPaletteItem
 
- 
getSmallIcon
public javax.swing.Icon getSmallIcon()
- Specified by:
 getSmallIconin interfacePaletteItem- Overrides:
 getSmallIconin classAbstractPaletteItem
 
- 
setName
public void setName(java.lang.String name)
- Overrides:
 setNamein classAbstractPaletteItem
 
- 
setShortDescription
public void setShortDescription(java.lang.String shortDescription)
- Overrides:
 setShortDescriptionin classAbstractPaletteItem
 
- 
getData
public java.lang.String getData()
 
- 
setData
public void setData(java.lang.String data)
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 public void setWindow(boolean window)
Deprecated. 
- 
setVersion
@Deprecated public void setVersion(int version)
Deprecated. 
 - 
 
 -