|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wotonomy.control.EODelayedObserver
public abstract class EODelayedObserver
This is an abstract class for receiving coalesced notifications of changes from objects. This class also implements Observer for greater compatibility. The point of EODelayedObservers is that when they receive a willChange message, they queue themselves with a EODelayedObserverQueue so they can receive a single subjectChanged() after all changes from an observed object take place.
Field Summary | |
---|---|
static int |
ObserverNumberOfPriorities
|
static int |
ObserverPriorityFifth
|
static int |
ObserverPriorityFirst
|
static int |
ObserverPriorityFourth
|
static int |
ObserverPriorityImmediate
Notified immediately. |
static int |
ObserverPriorityLater
|
static int |
ObserverPrioritySecond
|
static int |
ObserverPrioritySixth
|
static int |
ObserverPriorityThird
|
Constructor Summary | |
---|---|
EODelayedObserver()
Default constructor. |
Method Summary | |
---|---|
void |
discardPendingNotification()
Removes this observer from the observer queue for a currently pending notification. |
void |
objectWillChange(java.lang.Object anObject)
Called when the specified object is about to change. |
EODelayedObserverQueue |
observerQueue()
Returns the observer queue to which this observer belongs. |
int |
priority()
Returns the priority of this observer in the queue. |
abstract void |
subjectChanged()
Notifies observer that one or more objects that it is observing have changed. |
void |
update(java.util.Observable anObject,
java.lang.Object aValue)
Called when the specified object has changed, with the specified argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ObserverPriorityImmediate
public static final int ObserverPriorityFirst
public static final int ObserverPrioritySecond
public static final int ObserverPriorityThird
public static final int ObserverPriorityFourth
public static final int ObserverPriorityFifth
public static final int ObserverPrioritySixth
public static final int ObserverPriorityLater
public static final int ObserverNumberOfPriorities
Constructor Detail |
---|
public EODelayedObserver()
Method Detail |
---|
public void discardPendingNotification()
public EODelayedObserverQueue observerQueue()
public int priority()
public abstract void subjectChanged()
public void objectWillChange(java.lang.Object anObject)
objectWillChange
in interface EOObserving
public void update(java.util.Observable anObject, java.lang.Object aValue)
update
in interface java.util.Observer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |