oracle.ide.palette
Interface PalettePage
- All Superinterfaces:
- Data, Displayable, Element, Folder
- public interface PalettePage
- extends Folder
Method Summary |
void |
addPaletteItem(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)
Add a palette item to the Palette Page |
boolean |
canShow()
Returns true if palette page can display itself. |
java.util.ArrayList |
getPaletteItems()
Return list of the palette items contained within the page |
boolean |
isPersistent()
Return true if page info should be persisted |
void |
setCanShow(boolean canShow)
Set whether to allow the palette page to display itself. |
void |
setIsPersistent(boolean isPersistent)
Set whether to save information during shutdown. |
Methods inherited from interface oracle.ide.model.Data |
getData |
getPaletteItems
public java.util.ArrayList getPaletteItems()
- Return list of the palette items contained within the page
- Returns:
- List of palette items.
addPaletteItem
public void addPaletteItem(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)
- Add a palette item to the Palette Page
- Parameters:
icon
- URL of Icon for palette to displayinfo
- Extra information associated with itemboolean
- IsPersistent Used to persist item after shutdown.longLabel
- Tooltip infoshortLabel
- Generally used as the display name.type
- Type of palette item( java, jsp, html, etc. )editor
- Editor associated with item which will be invoked.library
- All libraries that should be added to project when item is pressed.
isPersistent
public boolean isPersistent()
- Return true if page info should be persisted
setIsPersistent
public void setIsPersistent(boolean isPersistent)
- Set whether to save information during shutdown.
canShow
public boolean canShow()
- Returns true if palette page can display itself.
setCanShow
public void setCanShow(boolean canShow)
- Set whether to allow the palette page to display itself.