public class VariationPaletteItem extends java.lang.Object implements PaletteItem
PaletteItem
which delegates to another PaletteItem
but which possibly overrides the title, icon and or creation properties.Modifier | Constructor and Description |
---|---|
protected |
VariationPaletteItem(PaletteItem defaultItem,
MetaModel model,
Element element) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreation() |
java.lang.String |
getDeprecatedHint()
Returns a hint regarding the deprecation.
|
java.lang.String |
getDeprecatedIn()
Returns null or empty if this item is not deprecated, and otherwise returns the version
the item was deprecated in.
|
javax.swing.Icon |
getIcon() |
MetaModel |
getMetaModel()
Returns the associated
MetaModel , if known |
java.lang.String |
getTitle() |
java.lang.String |
getTooltip() |
java.lang.String |
getVersion() |
boolean |
isEnabled() |
void |
setMetaModel(MetaModel metaModel)
Sets the associated
MetaModel , if known |
protected VariationPaletteItem(PaletteItem defaultItem, MetaModel model, Element element)
public java.lang.String getTitle()
getTitle
in interface PaletteItem
public javax.swing.Icon getIcon()
getIcon
in interface PaletteItem
public java.lang.String getTooltip()
getTooltip
in interface PaletteItem
public java.lang.String getVersion()
getVersion
in interface PaletteItem
public boolean isEnabled()
isEnabled
in interface PaletteItem
public java.lang.String getCreation()
getCreation
in interface PaletteItem
MetaModel.getCreation()
public MetaModel getMetaModel()
PaletteItem
MetaModel
, if knowngetMetaModel
in interface PaletteItem
public void setMetaModel(MetaModel metaModel)
PaletteItem
MetaModel
, if knownsetMetaModel
in interface PaletteItem
public java.lang.String getDeprecatedIn()
PaletteItem
getDeprecatedIn
in interface PaletteItem
public java.lang.String getDeprecatedHint()
PaletteItem
getDeprecatedHint
in interface PaletteItem