org.openbp.jaspira.event
Interface JaspiraEventListener

All Known Implementing Classes:
AbstractPlugin.StandardPluginEvents, AbstractVisiblePlugin.StandardVisiblePluginEvents, ApplicationBase.CloseEvents, ApplicationBase.MenuInteractionEvents, ApplicationBase.PageInteractionEvents, AssociationPlugin.AssociationEvents, AssociationPlugin.InteractionEvents, ClipboardPlugin.Events, Cockpit.HelpEvents, ColorChooserPlugin.Events, DebuggerPlugin.ClientEvents, DebuggerPlugin.InteractionEvents, DebuggerPlugin.OptionEvents, DebuggerPlugin.ServerEvents, DecorationModule, DisplayObjectPlugin.Events, ErrorDialogPlugin.Events, EventModule, ExternalAssociationPlugin.AssociationEvents, ExternalAssociationPlugin.ExternalAssociationEvents, ExternalEventModule, ExternalInteractionModule, FinderPlugin.Events, FinderPlugin.InteractionEvents, FinderResultPlugin.Event, FinderResultPlugin.Interaction, GeneratorPlugin.InteractionEvents, InfoPanelPlugin.Events, InspectorPlugin.ServerEvents, InteractionModule, ItemBrowserModule, ItemBrowserPlugin.InteractionEvents, ItemOpenDispatcherPlugin.Events, MiniViewPlugin.Events, ModelerEventModule, ModelerInteractionModule, ModelerPage.Events, ModelerUndoPlugin.Events, NodeItemEditorPlugin.Events, NodeItemEditorPlugin.InteractionEvents, OptionMgr.Events, PropertyBrowserPlugin.Events, PropertyBrowserPlugin.InteractionEvents, PropertyBrowserPlugin.SaveEvents, ServerConnectionPlugin.Events, SkinPlugin.SkinEvents, StackTracePlugin.ServerEvents, StatusBarPlugin.Events, ToolBoxPlugin.Events, UserToolBoxPlugin.InteractionEvents, VariablesPlugin.Events, VariablesPlugin.SaveEvents

public interface JaspiraEventListener

This listener listens to events managed by the event manager.

Author:
Jens Ferchland

Method Summary
 boolean eventFired(JaspiraEvent e)
          An event needs to be handled.
 int getPriority()
          Returns a priority to manage equal events.
 

Method Detail

eventFired

boolean eventFired(JaspiraEvent e)
An event needs to be handled.

Parameters:
e - The event
Returns:
true The event was consumed by the handler.
false The event should be passed on to other handlers.

getPriority

int getPriority()
Returns a priority to manage equal events. If the return value is small the priority is high. Same priorities will be managed over the alphabetical order of the event names (biggest hash value).

Returns:
The event priority


Copyright © 2011. All Rights Reserved.