org.openbp.cockpit.plugins.variables
Class VariablesPlugin.Events

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

public class VariablesPlugin.Events
extends EventModule

Event handler 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
VariablesPlugin.Events()
           
 
Method Summary
 JaspiraEventHandlerCode createprocessvarfromparam(JaspiraEvent je)
          Event handler: Adds a new process variable based on a parameter template.
 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 refresh(JaspiraEvent je)
          Event handler: Refreshes the list of variables.
 JaspiraEventHandlerCode saveobject(JaspiraEvent event)
          Event method: Saves the currently edited object.
 
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

VariablesPlugin.Events

public VariablesPlugin.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

refresh

public JaspiraEventHandlerCode refresh(JaspiraEvent je)
Event handler: Refreshes the list of variables.

Parameters:
je - Event
Returns:
The event status code

createprocessvarfromparam

public JaspiraEventHandlerCode createprocessvarfromparam(JaspiraEvent je)
Event handler: Adds a new process variable based on a parameter template.

Parameters:
je - 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_closed

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

Parameters:
je - Event
Returns:
The event status code

saveobject

public JaspiraEventHandlerCode saveobject(JaspiraEvent event)
Event method: Saves the currently edited object. This event will be sent by any plugin that wants the property browser to save its object.

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


Copyright © 2011. All Rights Reserved.