Extension SDK

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.Folder
add, canAdd, canRemove, containsChild, remove, removeAll, size
 
Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, mayHaveChildren
 
Methods inherited from interface oracle.ide.model.Data
getData
 
Methods inherited from interface oracle.ide.model.Displayable
getIcon, getLongLabel, getShortLabel, getToolTipText, toString
 

Method Detail

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 display
info - Extra information associated with item
longLabel - Tooltip info
shortLabel - 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.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.