public abstract class PaletteGroup
extends java.lang.Object
Palette
,
PalettePage
,
PaletteSection
,
PaletteItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LAYOUT |
static java.lang.String |
ICON_LAYOUT |
static java.lang.String |
ICON_LAYOUT_WITH_BOTTOM_LABELS |
static java.lang.String |
LIST_LAYOUT |
Constructor and Description |
---|
PaletteGroup() |
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
|
java.lang.String |
getDefaultLayout()
Get the string representing the default layout ID to be used for this
group.
|
abstract java.lang.String |
getDescription()
Get description.
|
abstract javax.swing.Icon |
getIcon()
Get Icon.
|
java.lang.String |
getLayout()
Get the string representing the layout ID to be used for this group.
|
abstract java.lang.String |
getName()
Get display name.
|
abstract java.util.Collection<PaletteSection> |
getSections()
Get Palette Sections
|
int |
hashCode() |
boolean |
isEmpty() |
abstract boolean |
isVisible(Context context)
Indicates whether or not a palette group should be visible based
on the supplied context.
|
java.lang.String |
toString() |
public static final java.lang.String LIST_LAYOUT
public static final java.lang.String ICON_LAYOUT
public static final java.lang.String ICON_LAYOUT_WITH_BOTTOM_LABELS
public static final java.lang.String DEFAULT_LAYOUT
public abstract java.util.Collection<PaletteSection> getSections()
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 abstract boolean isVisible(Context context)
context
- The active contextpublic java.lang.String getLayout()
PaletteLayoutDescriptor.Manager
to get
the descriptor for the value.public java.lang.String getDefaultLayout()
PaletteLayoutDescriptor.Manager
to get
the descriptor for the value.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()
public java.lang.String toString()
toString
in class java.lang.Object