# Uses of Class
org.eclipse.gef.palette.PaletteEntry

Packages that use PaletteEntry
Package
Description
org.eclipse.gef.palette
This package defines and implements the model used by the `PaletteViewer`.
org.eclipse.gef.ui.palette
org.eclipse.gef.ui.palette.customize

## Uses of PaletteEntry in org.eclipse.gef.palette

Subclasses of PaletteEntry in org.eclipse.gef.palette
Modifier and Type
Class
Description
`class`
`CombinedTemplateCreationEntry`
A combination of a `PaletteTemplateEntry` and `ToolEntry`.
`class`
`ConnectionCreationToolEntry`
A palette ToolEntry for a `ConnectionCreationTool`.
`class`
`CreationToolEntry`
A palette ToolEntry for a `CreationTool`.
`class`
`MarqueeToolEntry`
A palette ToolEntry for a `MarqueeSelectionTool`.
`class`
`PaletteContainer`
Default implementation of PaletteContainer
`class`
`PaletteDrawer`
A PaletteDrawer is a collapsible container that can have other non-container palette entries.
`class`
`PaletteGroup`
A PaletteGroup consists of a group of `PaletteEntry` objects that are uncollapsible .
`class`
`PaletteRoot`
Serves as the root `PaletteEntry` for the palette model.
`class`
`PaletteSeparator`
A separator for the palette
Separators can also be used as markers.
`class`
`PaletteStack`
The model object for a PaletteStack - A stack of tools.
`class`
`PaletteTemplateEntry`
`class`
`PaletteToolbar`
A PaletteGroup consists of a group of `PaletteEntry` objects that are uncollapsible .
`class`
`PanningSelectionToolEntry`
A ToolEntry for a `PanningSelectionTool`.
`class`
`SelectionToolEntry`
A ToolEntry for a `SelectionTool`.
`class`
`ToolEntry`
A factory for returning Tools.
Fields in org.eclipse.gef.palette with type parameters of type PaletteEntry
Modifier and Type
Field
Description
`protected List<PaletteEntry>`
PaletteContainer.`children`
This container's contents
Methods in org.eclipse.gef.palette that return PaletteEntry
Modifier and Type
Method
Description
`PaletteEntry`
PaletteStack.`getActiveEntry()`
Returns the PaletteEntry referring to the active entry that should be shown in the palette.
Methods in org.eclipse.gef.palette that return types with arguments of type PaletteEntry
Modifier and Type
Method
Description
`List<? extends PaletteEntry>`
PaletteContainer.`getChildren()`
Methods in org.eclipse.gef.palette with parameters of type PaletteEntry
Modifier and Type
Method
Description
`void`
PaletteContainer.`add(int index, PaletteEntry entry)`
Adds the given PaletteEntry at position `index`.
`void`
PaletteContainer.`add(PaletteEntry entry)`
Adds the given entry to the end of this PaletteContainer
`void`
PaletteStack.`add(int index, PaletteEntry entry)`
`void`
PaletteStack.`add(PaletteEntry entry)`
`void`
PaletteContainer.`appendToSection(String id, PaletteEntry entry)`
Appends the given entry after the entry with the given id, but before the next separator.
`boolean`
PaletteContainer.`moveDown(PaletteEntry entry)`
Moves the given entry down, if possible.
`boolean`
PaletteContainer.`moveUp(PaletteEntry entry)`
Moves the given entry up, if possible.
`void`
PaletteContainer.`remove(PaletteEntry entry)`
Removes the given PaletteEntry from this PaletteContainer
`void`
PaletteStack.`remove(PaletteEntry entry)`
`void`
PaletteStack.`setActiveEntry(PaletteEntry entry)`
Sets the "active" child entry to the given PaletteEntry.
Method parameters in org.eclipse.gef.palette with type arguments of type PaletteEntry
Modifier and Type
Method
Description
`void`
PaletteContainer.`addAll(List<? extends PaletteEntry> list)`
Adds the list of `PaletteEntry` objects to this PaletteContainer.
`void`
PaletteStack.`addAll(List<? extends PaletteEntry> list)`
`void`
PaletteContainer.`setChildren(List<PaletteEntry> list)`
Sets the children of this PaletteContainer to the given list of `PaletteEntry` objects.
`void`
PaletteStack.`setChildren(List<PaletteEntry> list)`
Constructor parameters in org.eclipse.gef.palette with type arguments of type PaletteEntry
Modifier
Constructor
Description
``
`PaletteGroup(String label, List<? extends PaletteEntry> children)`
Creates a new PaletteGroup with the given label and list of `Palette Entries`.
``
`PaletteToolbar(String label, List<? extends PaletteEntry> children)`
Creates a new PaletteGroup with the given label and list of `Palette Entries`.

## Uses of PaletteEntry in org.eclipse.gef.ui.palette

Methods in org.eclipse.gef.ui.palette with parameters of type PaletteEntry
Modifier and Type
Method
Description
`protected boolean`
PaletteCustomizer.`canAdd(PaletteContainer container, PaletteEntry entry)`
Return true if this container can accept this entry as a new child.
`boolean`
PaletteCustomizer.`canDelete(PaletteEntry entry)`
Indicates whether the given entry can be deleted from the model or not.
`boolean`
PaletteCustomizer.`canMoveDown(PaletteEntry entry)`
Indicates whether the given entry can be moved down or not.
`boolean`
PaletteCustomizer.`canMoveUp(PaletteEntry entry)`
Indicates whether the given entry can be moved up or not.
`EntryPage`
PaletteCustomizer.`getPropertiesPage(PaletteEntry entry)`
Returns an EntryPage that will display the custom properties of the given entry.
`void`
PaletteCustomizer.`performDelete(PaletteEntry entry)`
Updates the model by deleting the given entry from it.
`void`
PaletteCustomizer.`performMoveDown(PaletteEntry entry)`
Updates the model by moving the entry down.
`void`
PaletteCustomizer.`performMoveUp(PaletteEntry entry)`
Updates the model by moving the entry up.

## Uses of PaletteEntry in org.eclipse.gef.ui.palette.customize

Methods in org.eclipse.gef.ui.palette.customize that return PaletteEntry
Modifier and Type
Method
Description
`protected PaletteEntry`
PaletteDrawerFactory.`createNewEntry(Shell shell)`
`protected abstract PaletteEntry`
PaletteEntryFactory.`createNewEntry(Shell shell)`
Create the PaletteEntry
`PaletteEntry`
PaletteEntryFactory.`createNewEntry(Shell shell, PaletteEntry selected)`
This method is called when a new palette entry of the type supported by this `PaletteEntryFactory` is to be created.
`protected PaletteEntry`
PaletteGroupFactory.`createNewEntry(Shell shell)`
`PaletteEntry`
PaletteSeparatorFactory.`createNewEntry(Shell shell)`
`protected PaletteEntry`
PaletteStackFactory.`createNewEntry(Shell shell)`
`PaletteEntry`
PaletteStackFactory.`createNewEntry(Shell shell, PaletteEntry selected)`
`protected PaletteEntry`
DefaultEntryPage.`getEntry()`
Provides sub-classes with access to the entry this class is monitoring.
`protected PaletteEntry`
PaletteCustomizerDialog.`getSelectedPaletteEntry()`
Methods in org.eclipse.gef.ui.palette.customize with parameters of type PaletteEntry
Modifier and Type
Method
Description
`boolean`
PaletteContainerFactory.`canCreate(PaletteEntry selected)`
You can always create a new container.
`boolean`
PaletteEntryFactory.`canCreate(PaletteEntry selected)`
This method is called by the `PaletteCustomizerDialog` to determine whether to enable or disable this action on the toolbar and the context menu.
`boolean`
PaletteStackFactory.`canCreate(PaletteEntry selected)`
`void`
DefaultEntryPage.`createControl(Composite parent, PaletteEntry entry)`
`void`
DrawerEntryPage.`createControl(Composite parent, PaletteEntry entry)`
`void`
EntryPage.`createControl(Composite parent, PaletteEntry entry)`
Creates the Control that displays the properties of the given entry.
`PaletteEntry`
PaletteEntryFactory.`createNewEntry(Shell shell, PaletteEntry selected)`
This method is called when a new palette entry of the type supported by this `PaletteEntryFactory` is to be created.
`PaletteEntry`
PaletteStackFactory.`createNewEntry(Shell shell, PaletteEntry selected)`
`protected PaletteContainer`
PaletteContainerFactory.`determineContainerForNewEntry(PaletteEntry selected)`
`protected PaletteContainer`
PaletteEntryFactory.`determineContainerForNewEntry(PaletteEntry selected)`
Given the current selection, this method determines the parent for the new entry to be created.
`protected int`
PaletteContainerFactory.`determineIndexForNewEntry(PaletteContainer parent, PaletteEntry selected)`
`protected int`
PaletteEntryFactory.`determineIndexForNewEntry(PaletteContainer c, PaletteEntry selected)`
Calculates the index at which the new entry is to be created, given the current selection.
`protected Object`
PaletteDrawerFactory.`determineTypeForNewEntry(PaletteEntry selected)`
`protected Object`
PaletteEntryFactory.`determineTypeForNewEntry(PaletteEntry selected)`
Given the current selection, this method determines the type of the new entry to be created.
`protected Object`
PaletteSeparatorFactory.`determineTypeForNewEntry(PaletteEntry selected)`
`protected Object`
PaletteStackFactory.`determineTypeForNewEntry(PaletteEntry selected)`
`protected EntryPage`
PaletteCustomizerDialog.`getEntryPage(PaletteEntry entry)`
Returns the `EntryPage` for the given `PaletteEntry`.
`protected void`
PaletteCustomizerDialog.`setActiveEntry(PaletteEntry entry)`
This methods sets the active entry.
`void`
PaletteCustomizerDialog.`setDefaultSelection(PaletteEntry entry)`
Sets the given PaletteEntry as the one to be selected when the dialog opens.