Package org.eclipse.gef.palette
Class PaletteTemplateEntry
java.lang.Object
org.eclipse.gef.palette.PaletteEntry
org.eclipse.gef.palette.PaletteTemplateEntry
- 
Field SummaryFieldsFields 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 SummaryConstructorsConstructorDescriptionPaletteTemplateEntry(String label, String shortDesc, Object template, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Creates a new PaletteTemplateEntry with the given template.
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetTemplate(Object template) Sets the template object to the given valueMethods 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, toString
- 
Field Details- 
PALETTE_TYPE_TEMPLATEType identifier- See Also:
 
 
- 
- 
Constructor Details- 
PaletteTemplateEntrypublic PaletteTemplateEntry(String label, String shortDesc, Object template, ImageDescriptor iconSmall, ImageDescriptor iconLarge) Creates a new PaletteTemplateEntry with the given template.- Parameters:
- label- the entry's name
- shortDesc- the entry's description
- template- the template for this entry
- iconSmall- an ImageDescriptor for the entry's small icon
- iconLarge- an ImageDescriptor for the entry's large icon
- See Also:
 
 
- 
- 
Method Details- 
getTemplate- Returns:
- the user-defined template object
 
- 
setTemplateSets the template object to the given value- Parameters:
- template- the template object
 
 
-