|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jsxe.ActionPlugin
This defines the general interface that all plugins for jsXe must implement. There are two types of plugins, ViewPlugins and ActionPlugins. ViewPlugins specify a view that can be used to edit XML documents. ActionPlugins add actions to jsXe allowing it to do extra tasks such as XSLT transformation.
Nested Class Summary | |
static class |
ActionPlugin.Broken
|
Constructor Summary | |
ActionPlugin()
Constructs an ActionPlugin with the supplied values. |
Method Summary | |
protected void |
addAction(LocalizedAction action)
Allows subclasses to add actions to the ActionSet for the plugin. |
ActionSet |
getActionSet()
Gets the ActionSet for this plugin. |
OptionPane |
getOptionPane(DocumentBuffer buffer)
Gets the option pane for setting general plugin options. |
JMenu |
getPluginMenu()
Returns the menu that appears in the tools menu in jsXe. |
Properties |
getProperties()
The properties to add to jsXe when the plugin is loaded. |
void |
handleMessage(EBMessage message)
Handles a message sent on the EditBus. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionPlugin()
Method Detail |
public JMenu getPluginMenu()
public OptionPane getOptionPane(DocumentBuffer buffer)
public Properties getProperties()
protected void addAction(LocalizedAction action)
action
- the action itselfpublic ActionSet getActionSet()
public void handleMessage(EBMessage message)
EBListener
EBMessage
class. Typically
this is done with one or more if
blocks that test
whether the message is an instance of a derived message class in
which the component has an interest. For example:
if(msg instanceof BufferUpdate) { // a buffer's state has changed! } else if(msg instanceof ViewUpdate) { // a view's state has changed! } // ... and so on
handleMessage
in interface EBListener
message
- The message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |