| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Subject
Subject interface defines the API to register observers
 interested in receiving notifications of subject changes.
 Classes that can be viewed by multiple views should implement the
 Subject interface in order to notify their observers
 that changes have ocurred.
Observer, 
UpdateMessage| Method Summary | |
|---|---|
 void | 
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
 changes. | 
 void | 
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject
 interface changes. | 
 void | 
notifyObservers(java.lang.Object subject,
                UpdateMessage change)
Notifies all observers that the state of the subject has changed.  | 
| Method Detail | 
|---|
void attach(Observer observer)
Subject interface
 changes.
 Implementors should do nothing when the same observer is added more
 than once.
observer - the Observer interested in change notification
                 messages.void detach(Observer observer)
Subject
 interface changes.
 Implementors should do nothing when the same observer is removed more
 than once.
observer - the Observer disinterested in change
                 notification messages.
void notifyObservers(java.lang.Object subject,
                     UpdateMessage change)
subject - the subject whose state has changed.change - what changed.
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||