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

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

public class VariablesPlugin.SaveEvents
extends EventModule

Event module that manages the save operation.


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.SaveEvents()
           
 
Method Summary
 java.lang.String getName()
          The name of this module like "editor.file".
 int getPriority()
          Gets the module priority.
 JaspiraEventHandlerCode save(JaspiraActionEvent jae)
          Event handler: Save contents of the property browser (triggered by the standard toolbar).
 
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.SaveEvents

public VariablesPlugin.SaveEvents()
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. In cases where a higher-level editor (as the Modeler for example) contains an object editor plugin to edit a part of a structure, the oe's save command should be executed before the editor's save command, so assign it a priority higher than the standard priority 50.

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

save

public JaspiraEventHandlerCode save(JaspiraActionEvent jae)
Event handler: Save contents of the property browser (triggered by the standard toolbar).

Parameters:
jae - Event
Returns:
The event status code


Copyright © 2011. All Rights Reserved.