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, isEmpty
public 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 PaletteGroup
protected 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()
PaletteGroup
getName
in class PaletteGroup
protected void setName(java.lang.String name)
public java.lang.String getDescription()
PaletteGroup
getDescription
in class PaletteGroup
protected void setDescription(java.lang.String description)
public javax.swing.Icon getIcon()
PaletteGroup
getIcon
in class PaletteGroup
protected void setIcon(java.lang.String iconParm)
protected void setIcon(javax.swing.Icon icon)
public java.util.Collection<PaletteSection> getSections()
getSections
in class PaletteGroup
public boolean equals(java.lang.Object obj)
equals
in class PaletteGroup
public java.lang.String toString()
toString
in class PaletteGroup
public boolean isVisible(Context context)
PaletteGroup
isVisible
in class PaletteGroup
context
- The active contextpublic java.lang.String getLayout()
PaletteGroup
PaletteLayoutDescriptor.Manager
to get
the descriptor for the value.getLayout
in class PaletteGroup
public java.lang.String getDefaultLayout()
PaletteGroup
PaletteLayoutDescriptor.Manager
to get
the descriptor for the value.getDefaultLayout
in class PaletteGroup