Observer


Observer java.util

Java 1.0

This interface defines the update( ) method required for an object to observe subclasses of Observable . An Observer registers interest in an Observable object by calling the addObserver( ) method of Observable . Observer objects that have been registered in this way have their update( ) methods invoked by the Observable when that object has changed.

This interface is conceptually similar to, but less commonly used than, the EventListener interface and its various event-specific subinterfaces.

 public interface  Observer  {  // Public Instance Methods  void  update  (Observable  o  , Object  arg  );   } 

Passed To

Observable.{addObserver( ) , deleteObserver( )}



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net