public interface Palette extends Folder
PalettePage.java
,
PaletteItem.java
Modifier and Type | Method and Description |
---|---|
void |
addItems(java.util.List items)
Add Items to Palette.
|
PalettePage |
addPage(java.lang.String pageName,
java.lang.String showForTypes,
java.lang.String type,
boolean canRemove,
boolean listView,
boolean isPersistent)
Add page to palette
|
void |
addPaletteModelListener(PaletteModelListener l)
Add a PaletteListener to the listener list.
|
PaletteItem |
getActiveItem()
Returns Active PaletteItem
|
PalettePage |
getActivePage()
Returns Active PalettePage
|
PalettePage |
getEditPage()
Returns Edit PalettePage
|
java.lang.String |
getPageType()
Returns PalettePage type
|
PaletteItem |
getPaletteItem(java.lang.String itemName,
java.lang.String pageName)
Retrieve PaletteItem by Item Name and PalettePage
|
PalettePage |
getPalettePage(java.lang.String pageName)
Retrieve the PalettePage by name
|
java.util.Iterator |
getPalettePages(Context context) |
boolean |
removePage(java.lang.String pageName)
Remove a page from the palette
|
void |
removePaletteModelListener(PaletteModelListener l)
Remove a PaletteListener from listener list
|
void |
setActiveItem(PaletteItem activeItem)
Sets PaletteItem as active PaletteItem
|
void |
setActivePage(PalettePage activePage)
Sets Active PalettePage
|
void |
setEditPage(PalettePage page)
Set Edit PalettePage
|
add, canAdd, canRemove, containsChild, remove, removeAll, size
getAttributes, getChildren, getData, mayHaveChildren
getIcon, getLongLabel, getShortLabel, getToolTipText, toString
void setActiveItem(PaletteItem activeItem)
PaletteItem getActiveItem()
void setActivePage(PalettePage activePage)
PalettePage getActivePage()
PalettePage getPalettePage(java.lang.String pageName)
pageName
- Name of PalettePagevoid addPaletteModelListener(PaletteModelListener l)
l
- PaletteListener to add.void removePaletteModelListener(PaletteModelListener l)
l
- PaletteListener to remove.void addItems(java.util.List items)
items
- List of PaletteItems to Add.PalettePage addPage(java.lang.String pageName, java.lang.String showForTypes, java.lang.String type, boolean canRemove, boolean listView, boolean isPersistent)
boolean removePage(java.lang.String pageName)
PalettePage getEditPage()
void setEditPage(PalettePage page)
java.lang.String getPageType()
PaletteItem getPaletteItem(java.lang.String itemName, java.lang.String pageName)
itemName
- Name of ItempageName
- Name of Pagejava.util.Iterator getPalettePages(Context context)