public abstract class PalettePage
extends java.lang.Object
PalettePage is the major application category grouping within the Palette. Users know PalettePage as a selection within the dropdown list at the top of the Component Palette UI. A PalettePage may have zero or more PaletteGroups.
PalettePages
, PaletteGroup
Constructor and Description |
---|
PalettePage() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
equals(java.lang.Object object) |
abstract java.lang.Object |
getData(java.lang.Object key)
Get data
|
abstract java.lang.String |
getDescription()
Get description.
|
abstract java.util.Collection<PaletteGroup> |
getGroups()
Get all Palette Groups
|
abstract javax.swing.Icon |
getIcon()
Get Icon.
|
abstract java.lang.String |
getName()
Get display name.
|
int |
hashCode() |
boolean |
isEmpty() |
public abstract java.util.Collection<PaletteGroup> getGroups()
public abstract java.lang.String getName()
public abstract java.lang.String getDescription()
public abstract javax.swing.Icon getIcon()
public abstract java.lang.Object getData(java.lang.Object key)
Use to surface arbitrary additional data. This is used to identify the item to their clients without requiring clients to cast to a PaletteItem subclass.
For example, in XMLEF, use getData to get from a PaletteItem back to the identification of what type of element to create (XmlKey). XMLEF's PaletteItem instances will have this data.
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isEmpty()
public void dispose()