org.openbp.cockpit.plugins.association
Class AssociationPlugin.AssociationEvents

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.cockpit.plugins.association.AssociationPlugin.AssociationEvents
All Implemented Interfaces:
JaspiraEventListener
Enclosing class:
AssociationPlugin

public class AssociationPlugin.AssociationEvents
extends EventModule

Event module.


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
AssociationPlugin.AssociationEvents()
           
 
Method Summary
 java.lang.String getName()
          The name of this module like "editor.file".
 int getPriority()
          Gets the module priority.
 JaspiraEventHandlerCode open(JaspiraEvent event)
          Event handler: Opens a model object in the associated editor.
 JaspiraEventHandlerCode tryopen(JaspiraEvent event)
          Event handler: Opens a model object in the associated editor.
 JaspiraEventHandlerCode update(JaspiraEvent je)
          Event handler: The associations should be updated.
 
Methods inherited from class org.openbp.jaspira.plugin.EventModule
eventFired, getEventActionNames, getForeignEventNames, getModuleType, handleUnaccountedEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationPlugin.AssociationEvents

public AssociationPlugin.AssociationEvents()
Method Detail

getName

public java.lang.String getName()
Description copied from class: EventModule
The name of this module like "editor.file". Decides which events will be received.

Specified by:
getName in class EventModule

getPriority

public int getPriority()
Gets the module priority. We are high priority.

Specified by:
getPriority in interface JaspiraEventListener
Overrides:
getPriority in class EventModule
Returns:
The priority. 0 is lowest, 100 is highest.

open

public JaspiraEventHandlerCode open(JaspiraEvent event)
Event handler: Opens a model object in the associated editor.

Parameters:
event - Client event containing a transferable as object
Returns:
The event status code

tryopen

public JaspiraEventHandlerCode tryopen(JaspiraEvent event)
Event handler: Opens a model object in the associated editor.

Parameters:
event - Client event containing a transferable as object
Returns:
The event status code

update

public JaspiraEventHandlerCode update(JaspiraEvent je)
Event handler: The associations should be updated. Clears the associations cache.

Parameters:
je - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.