|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.jbbres.lib.actions.elements.VariableServiceEvent
public class VariableServiceEvent
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.
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 |
---|
public VariableServiceEvent(VariableService source)
source
- - the VariableService
source of the eventpublic VariableServiceEvent(VariableService source, java.lang.Object oldValue)
source
- - the VariableService
source of the eventoldValue
- - the variable value before the event occurs.public VariableServiceEvent(VariableService source, java.lang.Object oldValue, java.lang.String oldInstanceName)
source
- - the VariableService
source of the eventoldInstanceName
- - the variable instance name before the event occursoldValue
- - the variable value before the event occurs.Method Detail |
---|
public java.lang.Object getOldValue()
public java.lang.Object getNewValue()
public java.lang.String getOldInstanceName()
public java.lang.String getNewInstanceName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |