org.openbp.cockpit.modeler.undo
Class ModelerUndoPlugin.Events

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

public class ModelerUndoPlugin.Events
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
ModelerUndoPlugin.Events()
           
 
Method Summary
 java.lang.String getName()
          The name of this module like "editor.file".
 int getPriority()
          Returns the priority of the module.
 JaspiraEventHandlerCode modeler_view_activated(JaspiraEvent je)
          Event handler: A modeler view has become active.
 JaspiraEventHandlerCode modeler_view_closed(JaspiraEvent je)
          Event handler: A modeler view has become inactive.
 JaspiraEventHandlerCode redo(JaspiraActionEvent je)
          Redo the last undoable.
 JaspiraEventHandlerCode undo(JaspiraActionEvent je)
          Undo the last action.
 
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

ModelerUndoPlugin.Events

public ModelerUndoPlugin.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()
Returns the priority of the module. We are low-level priority.

Specified by:
getPriority in interface JaspiraEventListener
Overrides:
getPriority in class EventModule
Returns:
The standard implementation returns 50

undo

public JaspiraEventHandlerCode undo(JaspiraActionEvent je)
Undo the last action.


redo

public JaspiraEventHandlerCode redo(JaspiraActionEvent je)
Redo the last undoable.


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_closed

public JaspiraEventHandlerCode modeler_view_closed(JaspiraEvent je)
Event handler: A modeler view has become inactive.

Parameters:
je - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.