/** * This method is called whenever the observed object is changed. An application calls an * <tt>Observable</tt> object's <code>notifyObservers</code> 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. * * @param o the observable object. * @param arg an argument passed to the <code>notifyObservers</code> method. */ public void update(Observable o, Object arg) { // ignore changes when not enabled if (!getEnabled()) { return; } if (!check(arg)) return; m_courierService.deliver(new DirectRefreshDelivery(getDeliveryId(), getElementId())); }
/** * Accept notification that the portal element has just been delivered. If there are pending * requests to deliver, they can be cleared. */ public void justDelivered() { m_courierService.clear(getDeliveryId(), getElementId()); }