Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util

Interface Observer

java.lang.Object
|
+--java.util.Observer


public interface Observer

Interface that is implemented when a class wants to be informed of changes in Observable objects.

Author:See Also:

Method Summary

voidupdate(java.util.Observable observable, java.lang.Object arg)

This method is called whenever the observable object changes, and has called notifyObservers.

Method Details

update

public void update(java.util.Observable observable, java.lang.Object arg)

This method is called whenever the observable object changes, and has called notifyObservers. The Observable object can pass arbitrary information in the second parameter.

Parameters: