templates.presentation
Class TemplateToolset

java.lang.Object
  extended by 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

Nested Class Summary
protected static class TemplateToolset.TemplateStatusBar
          Status bar for TemplateModels.
protected  class TemplateToolset.TemplateUID
          The UIDescriptor which specifies the UI elements to be displayed when a TemplateModel is activated in IDES.
 
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.
 
Constructor Summary
TemplateToolset()
           
 
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
 

Field Detail

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.

Constructor Detail

TemplateToolset

public TemplateToolset()
Method Detail

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