public class CombinedTemplateCreationEntry extends CreationToolEntry
PaletteTemplateEntry and ToolEntry. The
entry will be rendered as a ToolEntry, but it will also be possible to use
the entry as a DragSource in the same way as a template.factoryPALETTE_TYPE_TOOLlisteners, 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 and Description |
|---|
CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
CreationFactory factory,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge)
Constructs an entry with the given creation factory.
|
CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
java.lang.Object template,
CreationFactory factory,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge)
Constructs an entry with the given creation factory and template.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getTemplate()
Returns the template object.
|
void |
setTemplate(java.lang.Object template)
Sets the template.
|
createTool, getToolProperties, getToolProperty, setToolClass, setToolPropertyaddPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toStringpublic CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
java.lang.Object template,
CreationFactory factory,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge)
TemplateTransferDragSourceListener.label - the labelshortDesc - the descriptointemplate - the template objectfactory - the CreationFactoryiconSmall - the small iconiconLarge - the large iconpublic CombinedTemplateCreationEntry(java.lang.String label,
java.lang.String shortDesc,
CreationFactory factory,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge)
label - the labelshortDesc - the descriptionfactory - the creation factory and templateiconSmall - the small iconiconLarge - the large iconCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.