|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.IdeSubject
public class IdeSubject
The IdeSubject
class defines the API to register
Observer
s 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.
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 |
---|
public IdeSubject()
Method Detail |
---|
public final void attach(Observer observer)
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.
attach
in interface Subject
observer
- the Observer
that should receive
notification messages from this Subject.public final void detach(Observer observer)
Subject
interface changes.
detach
in interface Subject
observer
- the Observer
that should no longer
receive notification messages from this Subject.public final void notifyObservers(java.lang.Object observed, UpdateMessage change)
notifyObservers
in interface Subject
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.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |