|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 that sets the container's label and small icon |
Method Summary | |
void |
add(int index,
PaletteEntry entry)
|
void |
add(PaletteEntry entry)
|
void |
addAll(List list)
|
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)
|
String |
toString()
|
Methods inherited from class org.eclipse.gef.palette.PaletteEntry |
addPropertyChangeListener, getDescription, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, 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)
org.eclipse.gef.palette.PaletteEntry#PaletteEntry(String)
Method Detail |
public void add(PaletteEntry entry)
public void add(int index, PaletteEntry entry)
public void addAll(List list)
public 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)
public String toString()
toString
in class PaletteEntry
Object.toString()
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |