templates.presentation
Class TemplateToolset
java.lang.Object
templates.presentation.TemplateToolset
- All Implemented Interfaces:
- ides.api.plugin.presentation.Toolset
public class TemplateToolset
- extends java.lang.Object
- implements ides.api.plugin.presentation.Toolset
The toolset which describes the UI elements to be displayed when a
TemplateModel is activated in IDES.
- Author:
- Lenko Grigorov
|
Field Summary |
protected static LibraryUI |
library
The template library UI element. |
protected static javax.swing.TransferHandler |
transferHandler
Supports the drop of a template from the template library onto the canvas
during a drag-and-drop. |
|
Method Summary |
ides.api.plugin.presentation.Presentation |
getModelThumbnail(ides.api.plugin.model.DESModel model,
int width,
int height)
|
ides.api.plugin.presentation.UIDescriptor |
getUIElements(ides.api.plugin.model.DESModel model)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
library
protected static LibraryUI library
- The template library UI element. The same element is used for all
template designs opened in IDES.
transferHandler
protected static javax.swing.TransferHandler transferHandler
- Supports the drop of a template from the template library onto the canvas
during a drag-and-drop.
TemplateToolset
public TemplateToolset()
getModelThumbnail
public ides.api.plugin.presentation.Presentation getModelThumbnail(ides.api.plugin.model.DESModel model,
int width,
int height)
throws ides.api.plugin.presentation.UnsupportedModelException
- Specified by:
getModelThumbnail in interface ides.api.plugin.presentation.Toolset
- Throws:
ides.api.plugin.presentation.UnsupportedModelException
getUIElements
public ides.api.plugin.presentation.UIDescriptor getUIElements(ides.api.plugin.model.DESModel model)
throws ides.api.plugin.presentation.UnsupportedModelException
- Specified by:
getUIElements in interface ides.api.plugin.presentation.Toolset
- Throws:
ides.api.plugin.presentation.UnsupportedModelException