public abstract class PaletteManager
extends java.lang.Object
Constructor and Description |
---|
PaletteManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
activateItem(PaletteItem item,
boolean stickyMode)
Activate Item in the component palette.
|
abstract PalettePage |
addPage(java.lang.String pageName,
java.lang.String showForTypes,
java.lang.String type,
boolean canRemove,
boolean listView,
boolean isPersistent,
boolean palette1Only)
Add page to palette
|
abstract void |
addPaletteDisplayableListener(PaletteDisplayableListener listener)
Add a PaletteDisplayableListener to allow users to do
post visible operations to the palette.
|
abstract void |
addPaletteItem(java.lang.String pageName,
java.lang.String icon,
java.lang.String info,
boolean isPersistent,
java.lang.String longLabel,
java.lang.String shortLabel,
java.lang.String type,
java.lang.String editor,
java.lang.String library,
java.lang.String helpable,
boolean updatePaletteUI)
Add a palette item to a palette page.
|
abstract void |
addPaletteListener(PaletteListener listener)
Register a palette listener
|
abstract PaletteItem |
getItemFromPage(java.lang.String itemName,
java.lang.String pageName)
Retrieve PaletteItem from the specified PalettePage
|
abstract PalettePage |
getPage(java.lang.String pageName)
Returns the palette page by name.
|
abstract Palette |
getPalette() |
static PaletteManager |
getPaletteManager() |
abstract java.util.Iterator |
getPalettePagesByType(java.lang.String type)
Retrieve all palette pages mapped to type.
|
abstract PaletteWindow |
getPaletteWindow() |
abstract void |
markDirty(boolean dirty)
Mark the palette dirty or not!
|
abstract void |
refreshPalette()
Refresh Palette (calls PaletteController.refreshPalette)
|
abstract void |
refreshPaletteUI()
Refresh PaletteUI (calls PaletteController.refreshPaletteUI)
Do not use.
|
abstract void |
registerPaletteWizard(java.lang.String type,
Invokable wizard)
Register Invokable wizard.
|
abstract boolean |
removePage(java.lang.String pageName)
Remove page from palette
|
abstract void |
removePaletteDisplayableListener(PaletteDisplayableListener listener)
Remove a PaletteDisplayableListener
|
abstract void |
removePaletteItem(java.lang.String pageName,
java.lang.String itemName,
boolean updatePaletteUI)
This will remove a palette item from specified page.
|
abstract void |
removePaletteListener(PaletteListener listener)
Remove a palette listener
|
abstract void |
resetPalette()
Reset the palette.
|
abstract void |
setPageAsDefault(java.lang.String documentSuffix,
java.lang.String palettePage)
Set page as default for editor type
|
static void |
setPaletteManager(PaletteManager paletteManager)
Deprecated.
|
abstract boolean |
showPalettePage(java.lang.String pageName)
Show palette page.
|
abstract void |
syncPalette(Context context)
Force a palette sync with current context.
|
abstract void |
updatePaletteUI()
Update the PaletteUI to represent the current model.
|
public static PaletteManager getPaletteManager()
@Deprecated public static void setPaletteManager(PaletteManager paletteManager)
public abstract PaletteWindow getPaletteWindow()
public abstract Palette getPalette()
public abstract void registerPaletteWizard(java.lang.String type, Invokable wizard)
type
- - examples would be jsp, java, html, js, xml. All document suffixes.wizard
- - the wizard which implements Invokable.Invokable
public abstract PalettePage getPage(java.lang.String pageName)
public abstract boolean removePage(java.lang.String pageName)
pageName
- - name of page to remove from palettepublic abstract boolean showPalettePage(java.lang.String pageName)
pageName
- - name of page to show while IDE is running.public abstract void setPageAsDefault(java.lang.String documentSuffix, java.lang.String palettePage)
documentSuffix
- - the document type or suffix to be default for. ex. ( jsp )palettePage
- - the name of the palette page to show when document is opened.public abstract void resetPalette()
public abstract void activateItem(PaletteItem item, boolean stickyMode)
item
- - the palette item to activate.stickyMode
- - set if stickyMode should turned on.public abstract PaletteItem getItemFromPage(java.lang.String itemName, java.lang.String pageName)
itemName
- - the shortLabel of the PaletteItempageName
- - the shortLabel of the PalettePagepublic abstract void markDirty(boolean dirty)
dirty
- if the palette should be marked dirtypublic abstract void syncPalette(Context context)
context
- the current contextpublic abstract void addPaletteItem(java.lang.String pageName, java.lang.String icon, java.lang.String info, boolean isPersistent, java.lang.String longLabel, java.lang.String shortLabel, java.lang.String type, java.lang.String editor, java.lang.String library, java.lang.String helpable, boolean updatePaletteUI)
pageName
- the page to add item to.icon
- the string rep. url of the icon.info
- current item info.isPersistent
- - true if you the item to be persisted.longLabel
- - descriptive text of the item.shortLabel
- - the items visible name.type
- - the type of tag( ex. jsptag, java )editor
- - the invokable editor to use when activated.library
- - any libraries belonging to this item.helpable
- - the helpIdupdatePaletteUI
- true if you want the PaletteUI to update itself.public abstract void removePaletteItem(java.lang.String pageName, java.lang.String itemName, boolean updatePaletteUI)
pageName
- the page the item belongs to.itemName
- the shortlabel of the item.updatePaletteUI
- true if you want the PaletteUI to be updated.public abstract void updatePaletteUI()
public abstract void addPaletteListener(PaletteListener listener)
listener
- listener to addpublic abstract void removePaletteListener(PaletteListener listener)
listener
- listener to removepublic abstract void addPaletteDisplayableListener(PaletteDisplayableListener listener)
listener
- the listener to addpublic abstract void removePaletteDisplayableListener(PaletteDisplayableListener listener)
listener
- the listener to removepublic abstract java.util.Iterator getPalettePagesByType(java.lang.String type)
public abstract void refreshPalette()
public abstract void refreshPaletteUI()
public abstract PalettePage addPage(java.lang.String pageName, java.lang.String showForTypes, java.lang.String type, boolean canRemove, boolean listView, boolean isPersistent, boolean palette1Only)