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 SummaryConstructors Constructor Description SerializedPaletteItem()
 - 
Method SummaryAll 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.AbstractPaletteItemaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getDisplayName, getName, getShortDescription, isEnabled, isSelected, removePropertyChangeListener, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setSelected, setSmallIcon, toString
 
- 
 
- 
- 
- 
Method Detail- 
createComponentpublic 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
 
 - 
isSelectablepublic 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.
 - 
getIconpublic javax.swing.Icon getIcon() - Specified by:
- getIconin interface- PaletteItem
- Overrides:
- getIconin class- AbstractPaletteItem
 
 - 
getSmallIconpublic javax.swing.Icon getSmallIcon() - Specified by:
- getSmallIconin interface- PaletteItem
- Overrides:
- getSmallIconin class- AbstractPaletteItem
 
 - 
setNamepublic void setName(java.lang.String name) - Overrides:
- setNamein class- AbstractPaletteItem
 
 - 
setShortDescriptionpublic void setShortDescription(java.lang.String shortDescription) - Overrides:
- setShortDescriptionin class- AbstractPaletteItem
 
 - 
getDatapublic java.lang.String getData() 
 - 
setDatapublic 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
 
 - 
getImageDatapublic byte[] getImageData() 
 - 
setImageDatapublic void setImageData(byte[] imageData) 
 - 
setWindow@Deprecated public void setWindow(boolean window) Deprecated.
 - 
setVersion@Deprecated public void setVersion(int version) Deprecated.
 
- 
 
-