|
Eclipse GEF 3.2 |
||||||||||
| 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
Default implementation of PaletteContainer
| Field Summary | |
protected List |
children
This container's contents |
static String |
PROPERTY_CHILDREN
Property name indicating that this PaletteContainer's children have changed |
| 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 | |
protected |
PaletteContainer(String label,
String desc,
ImageDescriptor icon,
Object type)
Constructor Any parameter can be null.
|
| Method Summary | |
boolean |
acceptsType(Object type)
Returns true if this type can be a child of this container. |
void |
add(int index,
PaletteEntry entry)
Adds the given PaletteEntry at position index. |
void |
add(PaletteEntry entry)
Adds the given entry to the end of this PaletteContainer |
void |
addAll(List list)
Adds the list of PaletteEntry objects to this PaletteContainer. |
void |
appendToSection(String id,
PaletteEntry entry)
Appends the given entry after the entry with the given id, but before the next separator. |
List |
getChildren()
|
boolean |
moveDown(PaletteEntry entry)
Moves the given entry down, if possible. |
boolean |
moveUp(PaletteEntry entry)
Moves the given entry up, if possible. |
void |
remove(PaletteEntry entry)
Removes the given PaletteEntry from this PaletteContainer |
void |
setChildren(List list)
Sets the children of this PaletteContainer to the given list of PaletteEntry objects. |
String |
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 PROPERTY_CHILDREN
protected List children
| Constructor Detail |
protected PaletteContainer(String label,
String desc,
ImageDescriptor icon,
Object type)
Any parameter can be null.
label - The container's namedesc - The container's descriptionicon - The small icon to represent this containertype - The container's type| Method Detail |
public boolean acceptsType(Object type)
type - the type being requested
public void add(PaletteEntry entry)
entry - the PaletteEntry to add
public void add(int index,
PaletteEntry entry)
index.
index - position to add the PaletteEntryentry - the PaletteEntry to addpublic void addAll(List list)
PaletteEntry objects to this PaletteContainer.
list - a list of PaletteEntry objects to add to this PaletteContainer
public void appendToSection(String id,
PaletteEntry entry)
id - the id of the entry to append afterentry - the entry to addpublic List getChildren()
public boolean moveDown(PaletteEntry entry)
entry - The entry to be moved
true if the given entry was successfully moved downpublic boolean moveUp(PaletteEntry entry)
entry - The entry to be moved
true if the given entry was successfully moved uppublic void remove(PaletteEntry entry)
entry - the PaletteEntry to removepublic void setChildren(List list)
PaletteEntry objects.
list - the list of childrenpublic String toString()
toString in class PaletteEntryObject.toString()
|
Eclipse GEF 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||