|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.document.MDIDelegate
This class is a delegate wrapper for the mdi documents class. It is useful to intercept certain calls on the mdi component or for aggregating an MDIComponent.
| Constructor Summary | |
MDIDelegate(MDIComponent delegated)
Constructs an mdi delegate. |
|
| Method Summary | |
void |
addDocument(Document document)
Adds the given Document to the container. |
void |
addDocumentListener(DocumentListener documentlistener)
Adds a document listener. |
void |
addObserver(Observer observer)
Adds an observer to the internally managed list of observers of this observable. |
void |
applyEvList()
This method delegates the call to the internal mdicomponent instance. |
void |
clearChanged()
Sets the state to unchanged. |
void |
deleteObserver(Observer observer)
Deletes an observer from the internally managed list of observers of this observable. |
void |
deleteObservers()
Deletes all of the observers registered with this observable. |
void |
fireDocumentDataChanged(Document document)
Fires the document data changed event from the outside world. |
Document |
getActiveDocument()
Returns the active document. |
int |
getDocumentCount()
Returns the number of currently open documents. |
java.util.List |
getDocuments()
Returns a List containing all active documents. |
MDIComponent |
getMDIComponent()
Returns a reference to the mdi component that is the receiver of delegation. |
Observable |
getObservable()
Returns the Observable instance. |
java.util.Collection |
getObservers()
Returns a collection of the observers currently registered with this observable. |
void |
indicateModifiedDocument(Document document)
The mdi component shall indicate visually that the given document was modified. |
void |
indicateUnmodifiedDocument(Document document)
The mdi component shall indicate visually that the given document was not modified. |
void |
installEvList()
This method delegates the call to the internal mdicomponent instance. |
void |
notifyObservers()
Performs a notify on all registered observers, if the state has changed since the last notification. |
void |
notifyObservers(java.lang.Object arg)
Performs a notify on all registered observers, if the state has changed since the last notification. |
void |
postValidate()
Invoked by the framework after the MDIComponent was shown on the screen. |
void |
removeActiveDocument()
Closes the active document. |
void |
removeDocument(Document document)
Closes the given document and removes it from the mdi container. |
void |
removeDocumentListener(DocumentListener documentlistener)
Removes a document listener. |
void |
renameDocument(Document document,
java.lang.String name)
Renames a document. |
void |
setActiveDocument(Document document)
Sets the active document. |
void |
setChanged()
Sets the state to changed. |
void |
setDocumentListener(DocumentListener documentlistener)
Sets a single document listener. |
void |
setMDIComponent(MDIComponent mdicomponent)
Sets the mdi component that is the receiver of delegation. |
void |
setObservable(Observable observable)
Sets an observable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MDIDelegate(MDIComponent delegated)
delegated - the actual mdi component that is delegated all the work.| Method Detail |
public MDIComponent getMDIComponent()
public void setMDIComponent(MDIComponent mdicomponent)
mdicomponent - the receiving mdi component.public int getDocumentCount()
MDIComponent
getDocumentCount in interface MDIComponentpublic java.util.List getDocuments()
MDIComponentList containing all active documents.
getDocuments in interface MDIComponentpublic void addDocument(Document document)
MDIComponentDocument to the container.
addDocument in interface MDIComponentdocument - the document to add to the container.public void removeDocument(Document document)
MDIComponent
removeDocument in interface MDIComponentdocument - the document to close and remove.public Document getActiveDocument()
MDIComponent
getActiveDocument in interface MDIComponentpublic void setActiveDocument(Document document)
MDIComponent
setActiveDocument in interface MDIComponentdocument - the document to activate.public void removeActiveDocument()
MDIComponent
removeActiveDocument in interface MDIComponent
public void renameDocument(Document document,
java.lang.String name)
MDIComponent
renameDocument in interface MDIComponentdocument - the document to rename.name - the new name for the document.public void indicateModifiedDocument(Document document)
MDIComponent
indicateModifiedDocument in interface MDIComponentdocument - the modified document.public void indicateUnmodifiedDocument(Document document)
MDIComponent
indicateUnmodifiedDocument in interface MDIComponentdocument - the unmodified document.public void postValidate()
MDIComponent
postValidate in interface MDIComponentpublic void addObserver(Observer observer)
Observable
addObserver in interface Observableobserver - the observer to add to the internal list.public void deleteObserver(Observer observer)
Observable
deleteObserver in interface Observableobserver - the observer to delete from the internal list.public void setChanged()
Observable
setChanged in interface Observablepublic void clearChanged()
Observable
clearChanged in interface Observablepublic java.util.Collection getObservers()
Observable
getObservers in interface Observablepublic void notifyObservers()
Observable
notifyObservers in interface ObservableObservable.setChanged()public void notifyObservers(java.lang.Object arg)
Observable
notifyObservers in interface Observablearg - additional argument to pass to the observers.Observable.setChanged()public Observable getObservable()
MDIComponent
getObservable in interface MDIComponentpublic void setObservable(Observable observable)
MDIComponent
setObservable in interface MDIComponentobservable - the observable to set for the mdi component.public void deleteObservers()
Observable
deleteObservers in interface Observablepublic void installEvList()
installEvList in interface EvaluableEvaluable.installEvList()public void applyEvList()
applyEvList in interface EvaluableEvaluable.applyEvList()public void setDocumentListener(DocumentListener documentlistener)
MDIComponent
setDocumentListener in interface MDIComponentdocumentlistener - the documentlistener to set.public void addDocumentListener(DocumentListener documentlistener)
MDIComponent
addDocumentListener in interface MDIComponentdocumentlistener - the documentlistener to add.public void removeDocumentListener(DocumentListener documentlistener)
MDIComponent
removeDocumentListener in interface MDIComponentdocumentlistener - the documentlistener to remove.public void fireDocumentDataChanged(Document document)
MDIComponent
fireDocumentDataChanged in interface MDIComponentdocument - the document whose data has changed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||