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
ConstructorDescriptionPaletteCompartmentEntry
(String label, String iconId) Creates a newPaletteCompartmentEntry
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToolEntry
(IToolEntry toolEntry) adds a tool entry to the compartment.Gets the tool entries.boolean
provide the initial open state of the compartment.void
setInitiallyOpen
(boolean initiallyOpen) set the initial open state of the compartment.Methods inherited from class org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
getIconId, getLabel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.graphiti.palette.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:
getToolEntries
in 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:IPaletteCompartmentEntry
set the initial open state of the compartment.- Specified by:
setInitiallyOpen
in interfaceIPaletteCompartmentEntry
- Parameters:
initiallyOpen
- the initially open
-
isInitiallyOpen
public boolean isInitiallyOpen()Description copied from interface:IPaletteCompartmentEntry
provide the initial open state of the compartment.- Specified by:
isInitiallyOpen
in interfaceIPaletteCompartmentEntry
- Returns:
- the open state
-