Class PaletteCompartmentEntry
java.lang.Object
org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
org.eclipse.graphiti.palette.impl.PaletteCompartmentEntry
- All Implemented Interfaces:
IPaletteCompartmentEntry, IPaletteEntry
public class PaletteCompartmentEntry
extends AbstractPaletteEntry
implements IPaletteCompartmentEntry
The Class PaletteCompartmentEntry creates a compartment entry which
visualises as a drawer in the palette containing multiple tools.
-
Constructor Summary
ConstructorsConstructorDescriptionPaletteCompartmentEntry(String label, String iconId) Creates a newPaletteCompartmentEntry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToolEntry(IToolEntry toolEntry) adds a tool entry to the compartment.Gets the tool entries.booleanprovide the initial open state of the compartment.voidsetInitiallyOpen(boolean initiallyOpen) set the initial open state of the compartment.Methods inherited from class AbstractPaletteEntry
getIconId, getLabelMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPaletteEntry
getIconId, getLabel
-
Constructor Details
-
PaletteCompartmentEntry
Creates a newPaletteCompartmentEntry.- Parameters:
label- the text labeliconId- the icon which is displayed
-
-
Method Details
-
getToolEntries
Gets the tool entries.- Specified by:
getToolEntriesin interfaceIPaletteCompartmentEntry- Returns:
- the tools contained in the compartment
-
addToolEntry
adds a tool entry to the compartment.- Parameters:
toolEntry- the tool entry
-
setInitiallyOpen
public void setInitiallyOpen(boolean initiallyOpen) Description copied from interface:IPaletteCompartmentEntryset the initial open state of the compartment.- Specified by:
setInitiallyOpenin interfaceIPaletteCompartmentEntry- Parameters:
initiallyOpen- the initially open
-
isInitiallyOpen
public boolean isInitiallyOpen()Description copied from interface:IPaletteCompartmentEntryprovide the initial open state of the compartment.- Specified by:
isInitiallyOpenin interfaceIPaletteCompartmentEntry- Returns:
- the open state
-