public class DefaultPalettePage extends PalettePage
Modifier and Type | Class and Description |
---|---|
static class |
DefaultPalettePage.Builder |
static class |
DefaultPalettePage.PageRecord
Holds parameters passed during the creation a page.
|
static class |
DefaultPalettePage.ShowForTypeRecord
Holds information about what document types are associated with this
page.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ICON |
static java.lang.String |
PAGE_PAGECONTEXT |
static java.lang.String |
PAGE_PAGEEDITOR |
static java.lang.String |
PAGE_PAGEID
HashMap pageData keys
|
static java.lang.String |
PAGE_PROJECTCONFIGURATION |
static java.lang.String |
PAGE_SHOWFORTYPES |
static java.lang.String |
PAGE_TECHNOLOGYSCOPES |
static java.lang.String |
PAGE_TYPE |
Modifier | Constructor and Description |
---|---|
|
DefaultPalettePage()
Default constructor.
|
protected |
DefaultPalettePage(DefaultPalettePage.Builder builder) |
|
DefaultPalettePage(DefaultPalettePage.PageRecord record)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
|
DefaultPalettePage(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String pageId)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
|
DefaultPalettePage(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String pageId,
java.lang.String pageEditor,
java.lang.String projectConfiguration,
java.util.List<java.lang.String> showForTypes,
java.util.List<java.lang.String> technologyScopes,
java.lang.String type,
java.lang.String pageContext)
Deprecated.
Use the public static inner
Builder class to
construct a new instance. |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(PaletteGroup group)
Add Palette Group
|
java.lang.Object |
getData(java.lang.Object key)
Get data
|
java.lang.String |
getDescription()
Get description.
|
java.util.Collection<PaletteGroup> |
getGroups()
Get all Palette Groups
|
javax.swing.Icon |
getIcon()
Get Icon.
|
PaletteItem |
getItem(java.lang.String itemId) |
java.lang.String |
getName()
Get display name.
|
protected void |
removeGroup(DefaultPaletteGroup group)
Remove Palette Group
|
protected void |
setData(java.lang.Object key,
java.lang.Object data) |
protected void |
setDescription(java.lang.String description)
Set description
|
protected void |
setIcon(javax.swing.Icon icon)
Set Icon.
|
protected void |
setIcon(java.lang.String iconParm)
Set Icon.
|
protected void |
setName(java.lang.String name)
Set display name.
|
java.lang.String |
toString() |
dispose, equals, hashCode, isEmpty
public static final java.lang.String DEFAULT_ICON
public static final java.lang.String PAGE_PAGEID
public static final java.lang.String PAGE_PAGEEDITOR
public static final java.lang.String PAGE_PROJECTCONFIGURATION
public static final java.lang.String PAGE_SHOWFORTYPES
public static final java.lang.String PAGE_TECHNOLOGYSCOPES
public static final java.lang.String PAGE_TYPE
public static final java.lang.String PAGE_PAGECONTEXT
public DefaultPalettePage()
@Deprecated public DefaultPalettePage(java.lang.String name, java.lang.String description, java.lang.String icon, java.lang.String pageId, java.lang.String pageEditor, java.lang.String projectConfiguration, java.util.List<java.lang.String> showForTypes, java.util.List<java.lang.String> technologyScopes, java.lang.String type, java.lang.String pageContext)
Builder
class to
construct a new instance.showForTypes
values as one of its arguments. This
did not allow to specify the active page for a given document type.
A new constructor, taking a PageRecord as parameter, has been introduced.
The new constructor should be used, it allows specifying the preferred
page in the showForTypes
paramenter.
Copies Groups and Items.
@Deprecated public DefaultPalettePage(java.lang.String name, java.lang.String description, java.lang.String icon, java.lang.String pageId)
Builder
class to
construct a new instance.null
.@Deprecated public DefaultPalettePage(DefaultPalettePage.PageRecord record)
Builder
class to
construct a new instance.showForTypes
paramenter.
Copies Groups and Items.protected DefaultPalettePage(DefaultPalettePage.Builder builder)
public java.lang.String getName()
See attribute shortLabel.
getName
in class PalettePage
protected void setName(java.lang.String name)
See attribute shortLabel.
public java.lang.String getDescription()
See attribut longLabel.
getDescription
in class PalettePage
protected void setDescription(java.lang.String description)
See attribut longLabel.
public javax.swing.Icon getIcon()
getIcon
in class PalettePage
protected void setIcon(java.lang.String iconParm)
iconParm
- protected void setIcon(javax.swing.Icon icon)
See attribute icon.
icon
- 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 PalettePage
protected void setData(java.lang.Object key, java.lang.Object data)
public PaletteItem getItem(java.lang.String itemId)
public void addGroup(PaletteGroup group)
group
- protected void removeGroup(DefaultPaletteGroup group)
group
- public java.util.Collection<PaletteGroup> getGroups()
getGroups
in class PalettePage
public java.lang.String toString()
toString
in class PalettePage