org.openbp.cockpit.modeler
Class ModelerPage.Events

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.cockpit.modeler.ModelerPage.Events
All Implemented Interfaces:
JaspiraEventListener
Enclosing class:
ModelerPage

public class ModelerPage.Events
extends EventModule

EventModule responsible for opening new modelers.


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
ModelerPage.Events()
           
 
Method Summary
 JaspiraEventHandlerCode controlanchor(JaspiraActionEvent jae)
          Toggles control anchor display.
 JaspiraEventHandlerCode controltoggle(JaspiraActionEvent jae)
          Toggles control link display.
 JaspiraEventHandlerCode datatoggle(JaspiraActionEvent jae)
          Toggles data link display.
 java.lang.String getName()
          The name of this module like "editor.file".
 int getPriority()
          Gets the module priority.
 JaspiraEventHandlerCode gridtoggle(JaspiraActionEvent jae)
          Toggles grid display.
 JaspiraEventHandlerCode modeler_view_activated(JaspiraEvent je)
          Event handler: A modeler view has become active.
 JaspiraEventHandlerCode modeler_view_addtohistory(QualifierEvent je)
          Event handler: Add the given model qualifier to the history.
 JaspiraEventHandlerCode open_modeler(OpenEvent oe)
          Event handler: Open an object.
 JaspiraEventHandlerCode plugin_association_supports(RequestEvent event)
          Event handler: Check supported mime types for the open event.
 JaspiraEventHandlerCode processback(JaspiraActionEvent jae)
          Moves backward in the process history.
 JaspiraEventHandlerCode processforward(JaspiraActionEvent jae)
          Moves forward in the process history.
 JaspiraEventHandlerCode showzoomfactor(JaspiraEvent je)
          Shows the given zoom factor in the zoom combo box.
 JaspiraEventHandlerCode zoomfactor(JaspiraActionEvent jae)
          Adjusts the zoom factor.
 
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

ModelerPage.Events

public ModelerPage.Events()
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.

plugin_association_supports

public JaspiraEventHandlerCode plugin_association_supports(RequestEvent event)
Event handler: Check supported mime types for the open event. Adds the event names for open events for process and action items to the result of the poll event.

Parameters:
event - Event
Returns:
The event status code

open_modeler

public JaspiraEventHandlerCode open_modeler(OpenEvent oe)
Event handler: Open an object. Checks if the object to open is a process and handles it.

Parameters:
oe - Event
Returns:
The event status code

modeler_view_activated

public JaspiraEventHandlerCode modeler_view_activated(JaspiraEvent je)
Event handler: A modeler view has become active.

Parameters:
je - Event
Returns:
The event status code

modeler_view_addtohistory

public JaspiraEventHandlerCode modeler_view_addtohistory(QualifierEvent je)
Event handler: Add the given model qualifier to the history.

Parameters:
je - Event
Returns:
The event status code

controlanchor

public JaspiraEventHandlerCode controlanchor(JaspiraActionEvent jae)
Toggles control anchor display.

Parameters:
jae - Action event
Returns:
The event status code

controltoggle

public JaspiraEventHandlerCode controltoggle(JaspiraActionEvent jae)
Toggles control link display.

Parameters:
jae - Action event
Returns:
The event status code

datatoggle

public JaspiraEventHandlerCode datatoggle(JaspiraActionEvent jae)
Toggles data link display.

Parameters:
jae - Action event
Returns:
The event status code

gridtoggle

public JaspiraEventHandlerCode gridtoggle(JaspiraActionEvent jae)
Toggles grid display.

Parameters:
jae - Action event
Returns:
The event status code

processback

public JaspiraEventHandlerCode processback(JaspiraActionEvent jae)
Moves backward in the process history.

Parameters:
jae - Action event
Returns:
The event status code

processforward

public JaspiraEventHandlerCode processforward(JaspiraActionEvent jae)
Moves forward in the process history.

Parameters:
jae - Action event
Returns:
The event status code

zoomfactor

public JaspiraEventHandlerCode zoomfactor(JaspiraActionEvent jae)
Adjusts the zoom factor. This event will be produced by the zoom combo box in the main toolbar.

Parameters:
jae - Action event
Returns:
The event status code

showzoomfactor

public JaspiraEventHandlerCode showzoomfactor(JaspiraEvent je)
Shows the given zoom factor in the zoom combo box.

Parameters:
je - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.