public class PaletteCompartmentEntry extends AbstractPaletteEntry implements IPaletteCompartmentEntry
Constructor and Description |
---|
PaletteCompartmentEntry(java.lang.String label,
java.lang.String iconId)
Creates a new
PaletteCompartmentEntry . |
Modifier and Type | Method and Description |
---|---|
void |
addToolEntry(IToolEntry toolEntry)
adds a tool entry to the compartment.
|
java.util.List<IToolEntry> |
getToolEntries()
Gets the tool entries.
|
boolean |
isInitiallyOpen()
provide the initial open state of the compartment.
|
void |
setInitiallyOpen(boolean initiallyOpen)
set the initial open state of the compartment.
|
getIconId, getLabel
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIconId, getLabel
public PaletteCompartmentEntry(java.lang.String label, java.lang.String iconId)
PaletteCompartmentEntry
.label
- the text labeliconId
- the icon which is displayedpublic java.util.List<IToolEntry> getToolEntries()
getToolEntries
in interface IPaletteCompartmentEntry
public void addToolEntry(IToolEntry toolEntry)
toolEntry
- the tool entrypublic void setInitiallyOpen(boolean initiallyOpen)
IPaletteCompartmentEntry
setInitiallyOpen
in interface IPaletteCompartmentEntry
initiallyOpen
- the initially openpublic boolean isInitiallyOpen()
IPaletteCompartmentEntry
isInitiallyOpen
in interface IPaletteCompartmentEntry