| java.lang.Object org.sakaiproject.util.ObservingCourier org.sakaiproject.util.EventObservingCourier org.sakaiproject.util.PresenceObservingCourier
PresenceObservingCourier | public class PresenceObservingCourier extends EventObservingCourier (Code) | |
PresenceObservingCourier is an EventObservingCourier which watches for only presence service events at a particular location, and delivers a direct refresh delivery.
|
Constructor Summary | |
public | PresenceObservingCourier(String location) This variant, watches presense changes at the specified location, and sends the notifications to
that same location. | public | PresenceObservingCourier(String location, String elementId) This variant watches changes in a window and sends change notifications to the same window.
In the case where there are multiple iframes in the tool, elementID sends notification to
the frame specified by elementId.
Parameters: location - The location under observation *and* the location for the delivery of the events. Parameters: elementId - The html element to refresh. | public | PresenceObservingCourier(String location, String elementId, String watchLocation) This variant watches changes in one window (watchLocation) and sends the notifications to a different
window (location).. |
Method Summary | |
public boolean | check(Object arg) Check to see if we want to process or ignore this update.
Parameters: arg - The arg from the update. | public void | update(Observable o, Object arg) This method is called whenever the observed object is changed. |
PresenceObservingCourier | public PresenceObservingCourier(String location)(Code) | | This variant, watches presense changes at the specified location, and sends the notifications to
that same location. The elementID is null so the main window is refreshed when the notification
is received.
Parameters: location - The location under observation *and* the location for the delivery of the events. |
PresenceObservingCourier | public PresenceObservingCourier(String location, String elementId)(Code) | | This variant watches changes in a window and sends change notifications to the same window.
In the case where there are multiple iframes in the tool, elementID sends notification to
the frame specified by elementId.
Parameters: location - The location under observation *and* the location for the delivery of the events. Parameters: elementId - The html element to refresh. If this is null the main window is refreshed. |
PresenceObservingCourier | public PresenceObservingCourier(String location, String elementId, String watchLocation)(Code) | | This variant watches changes in one window (watchLocation) and sends the notifications to a different
window (location)..
Parameters: location - The location which will receive the notifications. Parameters: elementId - The html element to refresh. If this is null, the main window is refreshed. Parameters: watchLocation - The location being observed. |
check | public boolean check(Object arg)(Code) | | Check to see if we want to process or ignore this update.
Parameters: arg - The arg from the update. true to continue, false to quit. |
update | public void update(Observable o, Object arg)(Code) | | This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change. default implementation is to
cause the courier service to deliver to the interface controlled by my controller. Extensions can override.
Parameters: o - the observable object. Parameters: arg - an argument passed to the notifyObservers method. |
|
|