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.JComponent
createComponent(VisionDesignerInterface context, javax.swing.JComponent dropContainer)
Create a new instance of the component that this item representsjava.lang.String
getData()
javax.swing.Icon
getIcon()
byte[]
getImageData()
javax.swing.Icon
getSmallIcon()
boolean
isSelectable()
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
setData(java.lang.String data)
Called by the AbstractCustomGroupView when a copy is detected after selecting the capture button.void
setImageData(byte[] imageData)
void
setName(java.lang.String name)
void
setShortDescription(java.lang.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
-
-
-
-
Method Detail
-
createComponent
public javax.swing.JComponent createComponent(VisionDesignerInterface context, javax.swing.JComponent dropContainer) throws java.lang.Exception
Description copied from interface:ComponentInstantiator
Create a new instance of the component that this item represents- Throws:
java.lang.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
public javax.swing.Icon getIcon()
- Specified by:
getIcon
in interfacePaletteItem
- Overrides:
getIcon
in classAbstractPaletteItem
-
getSmallIcon
public javax.swing.Icon getSmallIcon()
- Specified by:
getSmallIcon
in interfacePaletteItem
- Overrides:
getSmallIcon
in classAbstractPaletteItem
-
setName
public void setName(java.lang.String name)
- Overrides:
setName
in classAbstractPaletteItem
-
setShortDescription
public void setShortDescription(java.lang.String shortDescription)
- Overrides:
setShortDescription
in 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.
-
-