|
Eclipse GEF 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.palette.PaletteEntry
org.eclipse.gef.palette.PaletteContainer
org.eclipse.gef.palette.PaletteStack
The model object for a PaletteStack - A stack of tools. A stack should contain only tools and should have permissions that are less than or equal to its parent.
| Field Summary | |
static String |
PALETTE_TYPE_STACK
Type identifier |
static String |
PROPERTY_ACTIVE_ENTRY
Property name for the active entry |
| Fields inherited from class org.eclipse.gef.palette.PaletteContainer |
children, PROPERTY_CHILDREN |
| Fields inherited from class org.eclipse.gef.palette.PaletteEntry |
listeners, PALETTE_TYPE_UNKNOWN, PERMISSION_FULL_MODIFICATION, PERMISSION_HIDE_ONLY, PERMISSION_LIMITED_MODIFICATION, PERMISSION_NO_MODIFICATION, PROPERTY_DEFAULT, PROPERTY_DESCRIPTION, PROPERTY_LABEL, PROPERTY_LARGE_ICON, PROPERTY_PARENT, PROPERTY_SMALL_ICON, PROPERTY_TYPE, PROPERTY_VISIBLE |
| Constructor Summary | |
PaletteStack(String name,
String desc,
ImageDescriptor icon)
Creates a new PaletteStack with the given name, description, and icon. |
|
| Method Summary | |
boolean |
acceptsType(Object type)
Returns true if this type can be a child of this container Only accepts ToolEntry's. |
void |
add(int index,
PaletteEntry entry)
Adds the given PaletteEntry at position index. |
void |
addAll(List list)
Adds the list of PaletteEntry objects to this PaletteContainer. |
PaletteEntry |
getActiveEntry()
Returns the PaletteEntry referring to the active entry that should be shown in the palette. |
void |
remove(PaletteEntry entry)
Removes the given PaletteEntry from this PaletteContainer |
void |
setActiveEntry(PaletteEntry entry)
Sets the "active" child entry to the given PaletteEntry. |
| Methods inherited from class org.eclipse.gef.palette.PaletteContainer |
add, appendToSection, getChildren, moveDown, moveUp, setChildren, toString |
| Methods inherited from class org.eclipse.gef.palette.PaletteEntry |
addPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String PALETTE_TYPE_STACK
public static final String PROPERTY_ACTIVE_ENTRY
| Constructor Detail |
public PaletteStack(String name,
String desc,
ImageDescriptor icon)
null.
name - the stack's namedesc - the stack's descriptionicon - an ImageDescriptor for the stack's small iconPaletteContainer.PaletteContainer(String, String, ImageDescriptor, Object)| Method Detail |
public boolean acceptsType(Object type)
acceptsType in class PaletteContainertype - the type being requested
public void add(int index,
PaletteEntry entry)
PaletteContainerindex.
add in class PaletteContainerindex - position to add the PaletteEntryentry - the PaletteEntry to addPaletteContainer.add(int, org.eclipse.gef.palette.PaletteEntry)public void addAll(List list)
PaletteContainerPaletteEntry objects to this PaletteContainer.
addAll in class PaletteContainerlist - a list of PaletteEntry objects to add to this PaletteContainerPaletteContainer.addAll(java.util.List)public PaletteEntry getActiveEntry()
public void remove(PaletteEntry entry)
PaletteContainer
remove in class PaletteContainerentry - the PaletteEntry to removePaletteContainer.remove(org.eclipse.gef.palette.PaletteEntry)public void setActiveEntry(PaletteEntry entry)
entry - the entry to show on the palette.
|
Eclipse GEF 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||