com.cosylab.vdct.plugin.popup
Interface ContextPopupPlugin
- All Superinterfaces:
- Plugin
- All Known Implementing Classes:
- CosyBeansPlugin, PopupPluginRecordHandlerExample
public interface ContextPopupPlugin
- extends Plugin
Insert the type's description here.
Creation date: (8.12.2001 12:43:54)
- Author:
- Matej Sekoranja
Method Summary |
java.util.Vector |
getItems(java.util.Vector selectedObjects)
This metod is called each time request of popup menu is gived to VisualDCT. |
getItems
java.util.Vector getItems(java.util.Vector selectedObjects)
- This 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)
- 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
- ...
If list is null
, then popup over empty workspace is issued.
- Returns:
- java.util.Vector list of
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.