|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.model.SymbolEvent
public class SymbolEvent
Events of this type are fired by Symbol objects to
notify listeners about changes of various kinds. Instances of this class
are constructed via the static valueOf factory methods.
| Method Summary | |
|---|---|
java.lang.Object |
getNewValue()
Gets the value after the change. |
java.lang.Object |
getOldValue()
Gets the value before the change. |
Symbol |
getSource()
Gets the data object where the event was fired from. |
SymbolEventTypes |
getType()
Gets the type of this event. |
boolean |
isSourceEmpty()
Gets the value after the change as a boolean. |
java.lang.String |
toString()
Gets a string representation of this. |
static SymbolEvent |
valueOfEmptyState(Symbol source,
boolean isEmptyNow)
Gets an instance of this for events of type SymbolEventTypes.EMPTY_STATE. |
static SymbolEvent |
valueOfJSCDataEvent(Symbol source,
JSCDataEvent evt)
Gets an instance of this for events of type JSCDataEvent. |
static SymbolEvent |
valueOfValChanged(Symbol source,
java.lang.Object oldValue,
java.lang.Object newValue)
Gets an instance of this for events of type SymbolEventTypes.VALUE_CHANGED. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final java.lang.Object getNewValue()
public final boolean isSourceEmpty()
boolean.
true if new value is a Boolean that is true,
false otherwisepublic final java.lang.Object getOldValue()
public final Symbol getSource()
Symbol objectpublic final SymbolEventTypes getType()
SymbolEventTypespublic java.lang.String toString()
toString in class java.lang.Object
public static SymbolEvent valueOfEmptyState(Symbol source,
boolean isEmptyNow)
SymbolEventTypes.EMPTY_STATE.
source - the source from which the event is firedisEmptyNow - true if source is empty
public static SymbolEvent valueOfJSCDataEvent(Symbol source,
JSCDataEvent evt)
JSCDataEvent.
This method translates a JSCDataEvent into a
SymbolEvent.
source - the source from which the event is firedevt - the JSCDataEvent to be translated to a SymbolEvent
public static SymbolEvent valueOfValChanged(Symbol source,
java.lang.Object oldValue,
java.lang.Object newValue)
SymbolEventTypes.VALUE_CHANGED.
source - the source from which the event is firedoldValue - the value before the changenewValue - the value after the change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||