Package com.cosylab.vdct.plugins
Class CosyBeansPlugin
- java.lang.Object
-
- com.cosylab.vdct.plugins.CosyBeansPlugin
-
- All Implemented Interfaces:
MenuPlugin,Plugin,ContextPopupPlugin
public class CosyBeansPlugin extends Object implements ContextPopupPlugin, MenuPlugin
CosyBeans VisualDCT popup plugin. Add the following line to the ${user.home}/.vdctplugins.xml file:<plugin class="com.cosylab.vdct.plugins.CosyBeansPlugin" autostart="true" />Creation date: (8.12.2001 13:29:26)- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description protected JMenumenuprotected com.cosylab.vdct.plugins.CosyBeansPlugin.MenuHandlermenuHandler
-
Constructor Summary
Constructors Constructor Description CosyBeansPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Insert the method's description here.StringgetAuthor()Insert the method's description here.StringgetDescription()Insert the method's description here.protected static StringgetFieldType(int type)Insert the method's description here.VectorgetItems(Vector selectedObjects)This metod is called each time request of popup menu is gived to VisualDCT.JMenugetMenu()Returns menu to be added to the VisualDCT tools menu Plugin should return always the same object.StringgetName()Insert the method's description here.protected JMenugetPluginMenu()Insert the method's description here.StringgetVersion()Insert the method's description here.voidinit(Properties properties, PluginContext context)Insert the method's description here.voidstart()Insert the method's description here.voidstop()Insert the method's description here.
-
-
-
Field Detail
-
menuHandler
protected com.cosylab.vdct.plugins.CosyBeansPlugin.MenuHandler menuHandler
-
menu
protected JMenu menu
-
-
Method Detail
-
getFieldType
protected static String getFieldType(int type)
Insert the method's description here. Creation date: (2.2.2001 23:00:51)- Parameters:
type- type- Returns:
- com.cosylab.vdct.graphics.objects.Connector.PopupMenuHandler
-
getPluginMenu
protected JMenu getPluginMenu()
Insert the method's description here. Creation date: (2.2.2001 23:00:51)- Returns:
- com.cosylab.vdct.graphics.objects.Connector.PopupMenuHandler
-
destroy
public void destroy()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
getAuthor
public String getAuthor()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
getDescription
public String getDescription()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)- Specified by:
getDescriptionin interfacePlugin- Returns:
- java.lang.String
-
getName
public String getName()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
getVersion
public String getVersion()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)- Specified by:
getVersionin interfacePlugin- Returns:
- java.lang.String
-
init
public void init(Properties properties, PluginContext context)
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
start
public void start()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
stop
public void stop()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)
-
getItems
public Vector getItems(Vector selectedObjects)
Description copied from interface:ContextPopupPluginThis metod is called each time request of popup menu is gived to VisualDCT. PluginPopupManager then queries all popup plugins, asking them to return list of menus or menu items to be added to the default list of popup items. Plugin can also return null value, if there is no action available to the given list of selected objects. Creation date: (8.12.2001 12:45:31)- Specified by:
getItemsin interfaceContextPopupPlugin- Parameters:
selectedObjects- List of selected elements. All elements inhereit from com.cosylab.vdct.graphics.objects.Selectable interface. Typical there are objects:- com.cosylab.vdct.graphics.objects.Group - group
- com.cosylab.vdct.graphics.objects.Record - record
- com.cosylab.vdct.graphics.objects.Template - template instance
- com.cosylab.vdct.graphics.objects.Connector - connector
- ...
null, then popup over empty workspace is issued.- Returns:
- java.util.Vector list of
javax.swing.JMenuItemsand/orjavax.swing.JMenuand/orjavax.swing.JSeparatorobjects to be added to the default list of popup items. Can also be null. - See Also:
ContextPopupPlugin.getItems(Vector)
-
getMenu
public JMenu getMenu()
Description copied from interface:MenuPluginReturns menu to be added to the VisualDCT tools menu Plugin should return always the same object. PluginMenuManager will take care or enabled/disabled status Creation date: (8.12.2001 12:45:31)- Specified by:
getMenuin interfaceMenuPlugin- Returns:
- javax.swing.JMenu
- See Also:
MenuPlugin.getMenu()
-
-