Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ide.model
Class IdeSubject

java.lang.Object
  extended by oracle.ide.model.IdeSubject
All Implemented Interfaces:
Subject
Direct Known Subclasses:
IdeVetoableSubject

public class IdeSubject
extends java.lang.Object
implements Subject

The IdeSubject class defines the API to register Observers that are interested in receiving notifications of Subject changes. Classes that can have multiple views in particular must implement the Subject interface so that all observing views can be notified when changes have occurred.

See Also:
Observer, UpdateMessage

Constructor Summary
IdeSubject()
           
 
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 observed, UpdateMessage change)
          Notifies all observers that the state of the subject has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdeSubject

public IdeSubject()
Method Detail

attach

public final void attach(Observer observer)
Registers an Observer interested in being notified when the internal state of the class implementing the Subject interface changes. If the observer is already attached, this method does nothing.

Specified by:
attach in interface Subject
Parameters:
observer - the Observer that should receive notification messages from this Subject.

detach

public final 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.

Specified by:
detach in interface Subject
Parameters:
observer - the Observer that should no longer receive notification messages from this Subject.

notifyObservers

public final void notifyObservers(java.lang.Object observed,
                                  UpdateMessage change)
Notifies all observers that the state of the subject has changed.

Specified by:
notifyObservers in interface Subject
Parameters:
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.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.