Package com.cosylab.vdct.plugins
Class MenuPluginExample
- java.lang.Object
-
- com.cosylab.vdct.plugins.MenuPluginExample
-
- All Implemented Interfaces:
MenuPlugin
,Plugin
public class MenuPluginExample extends Object implements MenuPlugin
Example of simple menu plugin. Add the following line to the ${user.home}/.vdctplugins.xml file:<plugin class="com.cosylab.vdct.plugins.MenuPluginExample" autostart="true" />
Creation date: (8.12.2001 13:29:26)- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description protected JMenu
menu
protected com.cosylab.vdct.plugins.MenuPluginExample.MenuItemHandler
menuitemHandler
-
Constructor Summary
Constructors Constructor Description MenuPluginExample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Insert the method's description here.String
getAuthor()
Insert the method's description here.String
getDescription()
Insert the method's description here.JMenu
getMenu()
Returns menu to be added to the VisualDCT tools menu Plugin should return always the same object.String
getName()
Insert the method's description here.protected JMenu
getPluginMenu()
Insert the method's description here.String
getVersion()
Insert the method's description here.void
init(Properties properties, PluginContext context)
Insert the method's description here.void
start()
Insert the method's description here.void
stop()
Insert the method's description here.
-
-
-
Field Detail
-
menuitemHandler
protected com.cosylab.vdct.plugins.MenuPluginExample.MenuItemHandler menuitemHandler
-
menu
protected JMenu menu
-
-
Method Detail
-
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:
getDescription
in 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:
getVersion
in 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)
-
getMenu
public JMenu getMenu()
Description copied from interface:MenuPlugin
Returns 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:
getMenu
in interfaceMenuPlugin
- Returns:
- javax.swing.JMenu
- See Also:
MenuPlugin.getMenu()
-
-