|
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 | +--org.eclipse.gef.palette.PaletteDrawer
A PaletteDrawer is a collapsible container that can have other non-container palette entries.
Field Summary | |
static int |
INITIAL_STATE_CLOSED
Constants indicating the possible initial states for a drawer: INITIAL_STATE_OPEN - The drawer is expanded when the palette is created. |
static int |
INITIAL_STATE_OPEN
Constants indicating the possible initial states for a drawer: INITIAL_STATE_OPEN - The drawer is expanded when the palette is created. |
static int |
INITIAL_STATE_PINNED_OPEN
Constants indicating the possible initial states for a drawer: INITIAL_STATE_OPEN - The drawer is expanded when the palette is created. |
static int |
INITIAL_STATUS_PINNED_OPEN
Deprecated. use INITIAL_STATE_PINNED_OPEN |
static Object |
PALETTE_TYPE_DRAWER
The type for this PaletteEntry. |
static String |
PROPERTY_INITIAL_STATUS
Property name used when notification about a change in the drawer's initial state is fired. |
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 | |
PaletteDrawer(String label)
Constructor |
|
PaletteDrawer(String label,
ImageDescriptor icon)
Constructor |
Method Summary | |
Object |
getDrawerType()
|
int |
getInitialState()
|
boolean |
isInitiallyOpen()
|
boolean |
isInitiallyPinned()
|
void |
setDrawerType(Object obj)
DrawerType indicates whether a drawer will contain ToolEntries of PaletteTemplateEntries. |
void |
setInitialState(int state)
Sets the initial state of this drawer (i.e. the state that this drawer should be when the palette is created). |
Methods inherited from class org.eclipse.gef.palette.PaletteContainer |
add, add, addAll, getChildren, moveDown, moveUp, remove, setChildren, 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 Object PALETTE_TYPE_DRAWER
PaletteEntry.getType()
public static final String PROPERTY_INITIAL_STATUS
public static final int INITIAL_STATE_OPEN
public static final int INITIAL_STATE_CLOSED
public static final int INITIAL_STATE_PINNED_OPEN
public static final int INITIAL_STATUS_PINNED_OPEN
INITIAL_STATE_PINNED_OPEN
Constructor Detail |
public PaletteDrawer(String label)
label
- The name/label for this entrypublic PaletteDrawer(String label, ImageDescriptor icon)
label
- The name/label for this entryicon
- An icon for this drawerMethod Detail |
public Object getDrawerType()
ToolEntry.PALETTE_TYPE_TOOL
or
PaletteTemplateEntry.PALETTE_TYPE_TEMPLATE
or (if the drawer
is empty and a drawerType has not been explicitly set)
PALETTE_TYPE_UNKNOWN
setDrawerType(Object)
public int getInitialState()
public boolean isInitiallyOpen()
true
if open initiallypublic boolean isInitiallyPinned()
true
if the drawer is to be pinned open initially.public void setDrawerType(Object obj)
obj
- ToolEntry.PALETTE_TYPE_TOOL
or
PaletteTemplateEntry.PALETTE_TYPE_TEMPLATE
public void setInitialState(int state)
state
- INITIAL_STATE_OPEN or INITIAL_STATE_CLOSED or INITIAL_STATE_PINNED_OPEN
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |