Package org.eclipse.gef.palette
Class PaletteRoot
java.lang.Object
org.eclipse.gef.palette.PaletteEntry
org.eclipse.gef.palette.PaletteContainer
org.eclipse.gef.palette.PaletteRoot
Serves as the root 
PaletteEntry for the
 palette model.- 
Field SummaryFieldsFields inherited from class org.eclipse.gef.palette.PaletteContainerchildren, PROPERTY_CHILDRENFields inherited from class org.eclipse.gef.palette.PaletteEntrylisteners, 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanacceptsType(Object type) Returns true if this type can be a child of this container.voidsetDefaultEntry(ToolEntry entry) Sets the default entry to the passed value.toString()Methods inherited from class org.eclipse.gef.palette.PaletteContaineradd, add, addAll, appendToSection, getChildren, moveDown, moveUp, remove, setChildrenMethods inherited from class org.eclipse.gef.palette.PaletteEntryaddPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible
- 
Field Details- 
PALETTE_TYPE_ROOTType Identifier
 
- 
- 
Constructor Details- 
PaletteRootpublic PaletteRoot()Creates a new PaletteRoot.
 
- 
- 
Method Details- 
acceptsTypeDescription copied from class:PaletteContainerReturns true if this type can be a child of this container.- Overrides:
- acceptsTypein class- PaletteContainer
- Parameters:
- type- the type being requested
- Returns:
- true if this can be a child of this container
- See Also:
 
- 
getDefaultEntry- Returns:
- the default ToolEntry
 
- 
setDefaultEntrySets the default entry to the passed value. This ToolEntry represents the tool that will be loaded by default.- Parameters:
- entry- the default entry
 
- 
toString- Overrides:
- toStringin class- PaletteContainer
- See Also:
 
 
-