Extension SDK 10.1.2

oracle.ide.addin
Interface Subject

All Known Subinterfaces:
BinaryObject, CmtComponentSource, Container, DBObject, DerivedLibrary, Document, JavaNode, JotClassDatabase, JotFile, JotManipulations, JotModel, JotWorkArea, Layout, Library, LibraryList, Node, SchemaObject, SourceObject, TextDocument, VetoableSubject, WorkEnvironment
All Known Implementing Classes:
AbstractDBObject, AbstractDerivedLibrary, AbstractLibrary, AbstractSchemaObject, Applications, BaseConnections, BaseLayout, ConnectionNode, Connections, DataContainer, DefaultContainer, DefaultDocument, DefaultLibraryList, DefaultNode, IdeLayout, IdeSubject, JavaClass, JavaClassNode, JavaResource, JavaSource, JavaSourceNode, JLibraryList, JLibraryManager, JotManager, JPaths, ObservableDataFolder, PackageFolder, PlSql, Project, PropertiesContainer, TextNode, XMLDataContainer

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.

See Also:
Observer, UpdateMessage

Field Summary
static int OBJECT_MODIFIED
           
 
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.
 

Field Detail

OBJECT_MODIFIED

public static final int OBJECT_MODIFIED
See Also:
Constant Field Values
Method Detail

attach

public void attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface changes. Implementors should do nothing when the same observer is added more than once.

Parameters:
observer - the Observer interested in change notification messages.

detach

public 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. Implementors should do nothing when the same observer is removed more than once.

Parameters:
observer - the Observer disinterested in change notification messages.

notifyObservers

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

Parameters:
subject - the subject whose state has changed.
change - what changed.

Extension SDK

 

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