|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface specifies the functionality of an MDI (Multiple Document
Interface) holder. This specialized aggregate manages Document
instances and displays them with a certain graphical style. Despite
the word "Component" in the interface name and the behavioral aspect
of containing documents, this interface represents neither a
BasicComponent nor a Container as specified in the
API. The interface name predates the API overhaul and is maintained for
historical reasons.
The Document metaphor is used to describe single data views that
can be loaded and saved separately. In a typical MDI windows application, a
Document is shown in an internal frame of the application window
(and cannot extend beyond it). This is a typical style of an
MDIComponent. This interface, therefore, specifies the general
functionality that all MDI components must have.
A particular implementation of this interface might display a Document
as a window in an internal frame, while another might choose to display it
as a page in a tabbed dialog. Common MDI styles include:
| Method Summary | |
void |
addDocument(Document document)
Adds the given Document to the container. |
void |
addDocumentListener(DocumentListener documentlistener)
Adds a document listener. |
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. |
Observable |
getObservable()
Returns the Observable instance. |
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 |
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 |
setDocumentListener(DocumentListener documentlistener)
Sets a single document listener. |
void |
setObservable(Observable observable)
Sets an observable. |
| Methods inherited from interface com.tensegrity.generic.util.Observable |
addObserver, clearChanged, deleteObserver, deleteObservers, getObservers, notifyObservers, notifyObservers, setChanged |
| Methods inherited from interface com.tensegrity.gui.Evaluable |
applyEvList, installEvList |
| Method Detail |
public void setDocumentListener(DocumentListener documentlistener)
documentlistener - the documentlistener to set.public void addDocumentListener(DocumentListener documentlistener)
documentlistener - the documentlistener to add.public void removeDocumentListener(DocumentListener documentlistener)
documentlistener - the documentlistener to remove.public int getDocumentCount()
public java.util.List getDocuments()
List containing all active documents.
public void addDocument(Document document)
Document to the container.
document - the document to add to the container.public void removeDocument(Document document)
document - the document to close and remove.public Document getActiveDocument()
public void setActiveDocument(Document document)
document - the document to activate.public void removeActiveDocument()
public void renameDocument(Document document,
java.lang.String name)
document - the document to rename.name - the new name for the document.public void indicateModifiedDocument(Document document)
document - the modified document.public void indicateUnmodifiedDocument(Document document)
document - the unmodified document.public void postValidate()
public Observable getObservable()
public void setObservable(Observable observable)
observable - the observable to set for the mdi component.public void fireDocumentDataChanged(Document document)
document - the document whose data has changed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||