An abstract base class from which to build editor plugins. The plugins can
interact with the editor in a number of different ways including appearing
as dialogs, property windows or tab panes.
Compares this XEditorPlugin to another Object. If the Object is a XEditorPlugin,
this function behaves like compareTo(String). Otherwise,
it throws a ClassCastException (as XEditorPlugin are comparable
only to other XEditorPlugin).
Parameters: o - the Object to be compared. the value 0 if the plugin whose namelexicographically equal to this plugin's name; a value less than0 if the argument is a name lexicographicallygreater than this plugin's name; and a value greater than0 if the argument is a name lexicographicallyless than this plugin's name. ClassCastException if the argument is not aXEditorPlugin. See Also:java.lang.Comparable
Get a set of attributes belonging to this component.
Parameters: comp - the component whos attributes are being requested a Hashtable of keys and values or null if none are provided
Get the menuItem or the sub menu that plugs into the context/popup menu for
the selected components. The functions on this menu should all operate on
the selection or individual component selecte.
the JMenu or JMenuItem or null if no menu is being provided.
Gets the dialog for this plugin. The dialog must be modal. Once dismissed
no further interaction with the plugin should take place
Parameters: applicationFrame - the main application fram the dialog
Get a set of attributes belonging to this page.
Parameters: thePage - the page whos attributes are being requested a Hashtable of keys and values or null if none are provided
Get the menuItem or the sub menu that plugs into the plugins menu.
the JMenu or JMenuItem or null if no menu is being provided. If nomenu is provided then the plugins menu item will be derived from the plugin nameand will activate or deactive the plugin.
Get the panel that plugs into the right hand side splitter of the editor.
The panel is intended to allow property editors to be located alongside the
componen designer
the panel or null if this plugin doesn't offer such a facility
abstractpublic int processCommand(int command, AWTEvent evt, boolean selected)(Code)
Process a menu commands for a plugin
Parameters: command - the command id Parameters: evt - the original event Parameters: selected - the selected state of the toolbar or menu item or false if no state exists