com.jbbres.lib.actions.elements
Class VariableServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jbbres.lib.actions.elements.VariableServiceEvent
All Implemented Interfaces:
java.io.Serializable

public class VariableServiceEvent
extends java.util.EventObject

A semantic event which indicates that an event occured on a VariableService.

This event is generated by a VariableService when a operation related to the service (such as variable value changing or variable instance name modification) occurs.

The event is passed to every VariableServiceListener object that registered to receive such events using the VariableService.addVariableServiceListener(VariableServiceListener) method.

The object that implements the VariableModelListener interface gets this VariableServiceEvent when the event occurs.

Since:
1.0.0
Version:
1.0.0
Author:
Jean-Baptiste Bres
See Also:
Serialized Form

Constructor Summary
VariableServiceEvent(VariableService source)
          Instantiates a new event.
VariableServiceEvent(VariableService source, java.lang.Object oldValue)
          Instantiates a new event.
VariableServiceEvent(VariableService source, java.lang.Object oldValue, java.lang.String oldInstanceName)
          Instantiates a new event.
 
Method Summary
 java.lang.String getNewInstanceName()
          Returns the instance name after the event occurs.
 java.lang.Object getNewValue()
          Returns the variable value after the event occurs.
 java.lang.String getOldInstanceName()
          Returns the instance name before the event occurs.
 java.lang.Object getOldValue()
          Returns the variable value before the event occurs.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableServiceEvent

public VariableServiceEvent(VariableService source)
Instantiates a new event.

Parameters:
source - - the VariableService source of the event

VariableServiceEvent

public VariableServiceEvent(VariableService source,
                            java.lang.Object oldValue)
Instantiates a new event.

Parameters:
source - - the VariableService source of the event
oldValue - - the variable value before the event occurs.

VariableServiceEvent

public VariableServiceEvent(VariableService source,
                            java.lang.Object oldValue,
                            java.lang.String oldInstanceName)
Instantiates a new event.

Parameters:
source - - the VariableService source of the event
oldInstanceName - - the variable instance name before the event occurs
oldValue - - the variable value before the event occurs.
Method Detail

getOldValue

public java.lang.Object getOldValue()
Returns the variable value before the event occurs.

Returns:
the variable value before the event occurs.

getNewValue

public java.lang.Object getNewValue()
Returns the variable value after the event occurs.

Returns:
the variable value after the event occurs.

getOldInstanceName

public java.lang.String getOldInstanceName()
Returns the instance name before the event occurs.

Returns:
the instance name before the event occurs.

getNewInstanceName

public java.lang.String getNewInstanceName()
Returns the instance name after the event occurs.

Returns:
the instance name after the event occurs.


To file bugs or suggest feature enhancements, visit the app.jbbres.com Bug Reporter website.

Additional documentation available online at http://app.jbbres.com/actions/developers.

Copyright � 2009-2011 app.jbbres.com. All Rights Reserved.