org.openbp.jaspira.plugin
Class InteractionModule

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.jaspira.plugin.InteractionModule
All Implemented Interfaces:
JaspiraEventListener
Direct Known Subclasses:
ApplicationBase.MenuInteractionEvents, ApplicationBase.PageInteractionEvents, AssociationPlugin.InteractionEvents, DebuggerPlugin.InteractionEvents, FinderPlugin.InteractionEvents, FinderResultPlugin.Interaction, GeneratorPlugin.InteractionEvents, ItemBrowserPlugin.InteractionEvents, NodeItemEditorPlugin.InteractionEvents, PropertyBrowserPlugin.InteractionEvents, UserToolBoxPlugin.InteractionEvents

public abstract class InteractionModule
extends EventModule

Abstract super module for all menu-, toolbar- and popup menu contributors. Override the event handling methods to implement handling.

Author:
Stephan Moritz

Field Summary
 
Fields inherited from class org.openbp.jaspira.plugin.EventModule
EVENT_CONSUMED, EVENT_HANDLED, EVENT_IGNORED, MODULE_POST_GLOBAL, MODULE_PRE_GLOBAL, MODULE_TREE
 
Constructor Summary
InteractionModule()
           
 
Method Summary
 java.lang.String getName()
          Get ths name of this interaction module.
 JaspiraEventHandlerCode popup(InteractionEvent ie)
          Standard event handler that is called when a popup menu is to be shown.
 JaspiraEventHandlerCode toolbar(InteractionEvent ie)
          Standard event handler that is called when a toolbar is (re-)generated.
 
Methods inherited from class org.openbp.jaspira.plugin.EventModule
eventFired, getEventActionNames, getForeignEventNames, getModuleType, getPriority, handleUnaccountedEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionModule

public InteractionModule()
Method Detail

getName

public final java.lang.String getName()
Get ths name of this interaction module.

Specified by:
getName in class EventModule
Returns:
"global.interaction"

popup

public JaspiraEventHandlerCode popup(InteractionEvent ie)
Standard event handler that is called when a popup menu is to be shown. Override this to add your own actions to a popup menu.

Parameters:
ie - Event
Returns:
The event status code

toolbar

public JaspiraEventHandlerCode toolbar(InteractionEvent ie)
Standard event handler that is called when a toolbar is (re-)generated. Override this to add your own actions to the toolbar.

Parameters:
ie - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.