|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.plugins.PopupPluginRecordHandlerExample
public class PopupPluginRecordHandlerExample
Example of simple context sensitive popup menu handling record objects. Add the following line to the ${user.home}/.vdctplugins.xml file:
<plugin class="com.cosylab.vdct.plugins.PopupPluginRecordHandlerExample" autostart="true" />Creation date: (8.12.2001 13:29:26)
Field Summary | |
---|---|
protected com.cosylab.vdct.plugins.PopupPluginRecordHandlerExample.PopupMenuHandler |
popupMenuHandler
|
Constructor Summary | |
---|---|
PopupPluginRecordHandlerExample()
|
Method Summary | |
---|---|
void |
destroy()
Insert the method's description here. |
java.lang.String |
getAuthor()
Insert the method's description here. |
java.lang.String |
getDescription()
Insert the method's description here. |
java.util.Vector |
getItems(java.util.Vector selectedObjects)
This metod is called each time request of popup menu is gived to VisualDCT. |
java.lang.String |
getName()
Insert the method's description here. |
java.lang.String |
getVersion()
Insert the method's description here. |
void |
init(java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.cosylab.vdct.plugins.PopupPluginRecordHandlerExample.PopupMenuHandler popupMenuHandler
Constructor Detail |
---|
public PopupPluginRecordHandlerExample()
Method Detail |
---|
public void destroy()
destroy
in interface Plugin
- public java.lang.String getAuthor()
getAuthor
in interface Plugin
public java.lang.String getDescription()
getDescription
in interface Plugin
public java.lang.String getName()
getName
in interface Plugin
-
public java.lang.String getVersion()
getVersion
in interface Plugin
public void init(java.util.Properties properties, PluginContext context)
init
in interface Plugin
- public void start()
start
in interface Plugin
- public void stop()
stop
in interface Plugin
- public java.util.Vector getItems(java.util.Vector selectedObjects)
ContextPopupPlugin
getItems
in interface ContextPopupPlugin
selectedObjects
- List of selected elements. All elements inhereit from
com.cosylab.vdct.graphics.objects.Selectable interface. Typical there are objects:
null
, then popup over empty workspace is issued.
javax.swing.JMenuItems
and/or javax.swing.JMenu
and/or javax.swing.JSeparator
objects
to be added to the default list of popup items. Can also be null.ContextPopupPlugin.getItems(Vector)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |