org.openbp.cockpit.modeler
Class ModelerInteractionModule

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.jaspira.plugin.ExternalEventModule
          extended by org.openbp.jaspira.plugin.ExternalInteractionModule
              extended by org.openbp.cockpit.modeler.ModelerInteractionModule
All Implemented Interfaces:
JaspiraEventListener

public class ModelerInteractionModule
extends ExternalInteractionModule

Event module of the Modeler class.

Author:
Heiko Erhardt

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
ModelerInteractionModule(Plugin modeler)
          Default constructor.
 
Method Summary
 int getPriority()
          Gets the module priority.
 JaspiraEventHandlerCode popup(InteractionEvent ie)
          Standard event handler that is called when a popup menu is to be shown.
 
Methods inherited from class org.openbp.jaspira.plugin.ExternalInteractionModule
getName, toolbar
 
Methods inherited from class org.openbp.jaspira.plugin.ExternalEventModule
getPlugin
 
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

ModelerInteractionModule

public ModelerInteractionModule(Plugin modeler)
Default constructor.

Parameters:
modeler - Modeler we are associated with
Method Detail

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.

popup

public JaspiraEventHandlerCode popup(InteractionEvent ie)
Standard event handler that is called when a popup menu is to be shown. Adds the popup menu entries for relations of the popup initiator and the current selection. Also adds the popup menu entries for various modeler figures.

Overrides:
popup in class ExternalInteractionModule
Parameters:
ie - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.