|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.IdeSubject
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.
Observer,
UpdateMessage| Field Summary |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Constructor Summary | |
IdeSubject()
Contructor |
|
IdeSubject(IdeSubject ideSubject)
Copy constructor |
|
| 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. |
protected static void |
copy(IdeSubject src,
IdeSubject dst)
Copies the observer list from src to the
Observer list in dst. |
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. |
protected java.util.List |
getObservers()
|
void |
notifyObservers(java.lang.Object observed,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
protected void |
setObservers(java.util.List list)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IdeSubject()
public IdeSubject(IdeSubject ideSubject)
| Method Detail |
protected static void copy(IdeSubject src,
IdeSubject dst)
src to the
Observer list in dst. The Observer
list in dst is not cleared.
protected java.util.List getObservers()
protected void setObservers(java.util.List list)
public 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 Subjectobserver - the Observer interested in change
notification messages.public void detach(Observer observer)
Subject
interface changes.
detach in interface Subjectobserver - the Observer disinterested in change
notification messages.
public void notifyObservers(java.lang.Object observed,
UpdateMessage change)
notifyObservers in interface Subjectchange - what changed.observed - the subject whose state has changed.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.