public class DefaultPaletteGroup extends PaletteGroup
Palette,
DefaultPalettePage,
DefaultPaletteSection| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPaletteGroup.Builder |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GROUP_GROUPEDITOR |
static java.lang.String |
GROUP_GROUPID
HashMap pageData keys
|
static java.lang.String |
GROUP_LAYOUT |
static java.lang.String |
GROUP_PROJECTCONFIGURATION |
static java.lang.String |
GROUP_SHOWFORTYPES |
static java.lang.String |
GROUP_TECHNOLOGYSCOPES |
static java.lang.String |
GROUP_TYPE |
DEFAULT_LAYOUT, ICON_LAYOUT, ICON_LAYOUT_WITH_BOTTOM_LABELS, LIST_LAYOUT| Constructor and Description |
|---|
DefaultPaletteGroup()
Default Constructor.
|
DefaultPaletteGroup(java.lang.String name,
java.lang.String description,
java.lang.String groupId,
java.lang.String type)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
DefaultPaletteGroup(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String groupId,
java.lang.String groupEditor,
java.lang.String projectConfiguration,
java.util.List<java.lang.String> showForTypes,
java.util.List<java.lang.String> technologyScopes,
java.lang.String type)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSection(PaletteSection section)
Add Palette Section
|
boolean |
equals(java.lang.Object obj) |
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.
|
java.lang.String |
getDescription()
Get description.
|
javax.swing.Icon |
getIcon()
Get Icon.
|
PaletteItem |
getItem(java.lang.String itemId) |
java.lang.String |
getLayout()
Get the string representing the layout ID to be used for this group.
|
java.lang.String |
getName()
Get display name.
|
java.util.Collection<PaletteSection> |
getSections()
Get Palette Sections
|
boolean |
isVisible(Context context)
Indicates whether or not a palette group should be visible based
on the supplied context.
|
protected void |
removeAllSections()
Remove All Palette Items
|
protected void |
removeSection(PaletteSection section)
Remove Palette Section
|
protected void |
setData(java.lang.Object key,
java.lang.Object data) |
protected void |
setDescription(java.lang.String description) |
protected void |
setIcon(javax.swing.Icon icon) |
protected void |
setIcon(java.lang.String iconParm) |
protected void |
setName(java.lang.String name) |
java.lang.String |
toString() |
dispose, hashCode, isEmptypublic static final java.lang.String GROUP_GROUPID
public static final java.lang.String GROUP_GROUPEDITOR
public static final java.lang.String GROUP_PROJECTCONFIGURATION
public static final java.lang.String GROUP_SHOWFORTYPES
public static final java.lang.String GROUP_TECHNOLOGYSCOPES
public static final java.lang.String GROUP_TYPE
public static final java.lang.String GROUP_LAYOUT
public DefaultPaletteGroup()
@Deprecated
public DefaultPaletteGroup(java.lang.String name,
java.lang.String description,
java.lang.String groupId,
java.lang.String type)
Builder class to
construct a new instance.@Deprecated
public DefaultPaletteGroup(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String groupId,
java.lang.String groupEditor,
java.lang.String projectConfiguration,
java.util.List<java.lang.String> showForTypes,
java.util.List<java.lang.String> technologyScopes,
java.lang.String type)
Builder class to
construct a new instance.public 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.
getData in class PaletteGroupprotected void setData(java.lang.Object key,
java.lang.Object data)
public PaletteItem getItem(java.lang.String itemId)
public void addSection(PaletteSection section)
section - protected void removeSection(PaletteSection section)
section - protected void removeAllSections()
public java.lang.String getName()
PaletteGroupgetName in class PaletteGroupprotected void setName(java.lang.String name)
public java.lang.String getDescription()
PaletteGroupgetDescription in class PaletteGroupprotected void setDescription(java.lang.String description)
public javax.swing.Icon getIcon()
PaletteGroupgetIcon in class PaletteGroupprotected void setIcon(java.lang.String iconParm)
protected void setIcon(javax.swing.Icon icon)
public java.util.Collection<PaletteSection> getSections()
getSections in class PaletteGrouppublic boolean equals(java.lang.Object obj)
equals in class PaletteGrouppublic java.lang.String toString()
toString in class PaletteGrouppublic boolean isVisible(Context context)
PaletteGroupisVisible in class PaletteGroupcontext - The active contextpublic java.lang.String getLayout()
PaletteGroupPaletteLayoutDescriptor.Manager to get
the descriptor for the value.getLayout in class PaletteGrouppublic java.lang.String getDefaultLayout()
PaletteGroupPaletteLayoutDescriptor.Manager to get
the descriptor for the value.getDefaultLayout in class PaletteGroup