public class SerializedPaletteItem extends AbstractPaletteItem
Constructor and Description |
---|
SerializedPaletteItem() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createComponent(VisionDesignerInterface context,
javax.swing.JComponent dropContainer)
Create a new instance of the component that this item represents
|
java.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.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getDisplayName, getName, getShortDescription, isEnabled, isSelected, removePropertyChangeListener, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setSelected, setSmallIcon, toString
public javax.swing.JComponent createComponent(VisionDesignerInterface context, javax.swing.JComponent dropContainer) throws java.lang.Exception
ComponentInstantiator
java.lang.Exception
public boolean isSelectable()
PaletteItem
public javax.swing.Icon getIcon()
getIcon
in interface PaletteItem
getIcon
in class AbstractPaletteItem
public javax.swing.Icon getSmallIcon()
getSmallIcon
in interface PaletteItem
getSmallIcon
in class AbstractPaletteItem
public void setName(java.lang.String name)
setName
in class AbstractPaletteItem
public void setShortDescription(java.lang.String shortDescription)
setShortDescription
in class AbstractPaletteItem
public java.lang.String getData()
public void setData(java.lang.String data)
data
- Gzipped UTF-8 encoded XMLpublic byte[] getImageData()
public void setImageData(byte[] imageData)
@Deprecated public void setWindow(boolean window)
@Deprecated public void setVersion(int version)