|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.document.SwtTabbedMDIComponent
TODO SGu (27.07.2005): Comment
| Field Summary | |
UIItemEvaluationList |
uiItemEvList
ItemList used to perform the language switch |
| Constructor Summary | |
SwtTabbedMDIComponent(java.util.List initialdocuments,
org.eclipse.swt.widgets.Shell shell,
UIManager uimanager)
Construct a tabbed-mdi pane with the given list of initial documents. |
|
| Method Summary | |
void |
addDocument(Document document)
Adds the given Document to the container. |
void |
addDocumentListener(DocumentListener listener)
Adds a document listener. |
void |
addObserver(Observer o)
Adds an observer to the internally managed list of observers of this observable. |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
void |
clearChanged()
Sets the state to unchanged. |
void |
deleteObserver(Observer o)
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. |
Observable |
getObservable()
Returns the Observable instance. |
java.util.Collection |
getObservers()
Returns a collection of the observers currently registered with this observable. |
org.eclipse.swt.widgets.Composite |
getSwtComposite()
Returns the Swt Composite subclass that is the MDI container. |
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()
Tells the component to setup its internal state. |
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 |
removeDocument(Document document,
boolean destroy)
Closes the given document and removes it from the mdi container. |
void |
removeDocumentListener(DocumentListener listener)
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 |
setLayoutData(java.lang.Object layoutData)
Sets the given layout data to the internal tab folder. |
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 |
| Field Detail |
public UIItemEvaluationList uiItemEvList
| Constructor Detail |
public SwtTabbedMDIComponent(java.util.List initialdocuments,
org.eclipse.swt.widgets.Shell shell,
UIManager uimanager)
initialdocuments - A listcontaining the documents to
display at startupshell - The shell to add the widgets touimanager - The UIManager for localized Strings| Method Detail |
public void setLayoutData(java.lang.Object layoutData)
Sets the given layout data to the internal tab folder.
layoutData - the layout data to set on the internal tab folder.public void addDocumentListener(DocumentListener listener)
MDIComponent
addDocumentListener in interface MDIComponentlistener - the documentlistener to add.public void removeDocumentListener(DocumentListener listener)
MDIComponent
removeDocumentListener in interface MDIComponentlistener - the documentlistener to remove.public 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 void removeDocument(Document document,
boolean destroy)
Closes the given document and removes it from the mdi container. If
destroy is
true is
called.
Document.closeHandler()
document - the Document to close and remove.destroy - if
true Document.closeHandler()
is called at the end of this method.public void setActiveDocument(Document document)
MDIComponent
setActiveDocument in interface MDIComponentdocument - the document to activate.public Document getActiveDocument()
MDIComponent
getActiveDocument in interface MDIComponentpublic 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 java.util.List getDocuments()
MDIComponentList containing all active documents.
getDocuments in interface MDIComponentpublic int getDocumentCount()
MDIComponent
getDocumentCount in interface MDIComponentpublic Observable getObservable()
MDIComponent
getObservable in interface MDIComponentpublic void addObserver(Observer o)
Observable
addObserver in interface Observableo - the observer to add to the internal list.public void deleteObserver(Observer o)
Observable
deleteObserver in interface Observableo - the observer to delete from the internal list.public 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 void setObservable(Observable observable)
MDIComponent
setObservable in interface MDIComponentobservable - the observable to set for the mdi component.public void setChanged()
Observable
setChanged in interface Observablepublic void clearChanged()
Observable
clearChanged in interface Observablepublic void deleteObservers()
Observable
deleteObservers in interface Observablepublic java.util.Collection getObservers()
Observable
getObservers in interface Observablepublic void applyEvList()
EvaluableUIItemEvaluationList.
applyEvList in interface Evaluablepublic void installEvList()
Evaluable
installEvList in interface Evaluablepublic org.eclipse.swt.widgets.Composite getSwtComposite()
SwtMDIComponent
getSwtComposite in interface SwtMDIComponentpublic void fireDocumentDataChanged(Document document)
MDIComponent
fireDocumentDataChanged in interface MDIComponentdocument - the document whose data has changed.public void setDocumentListener(DocumentListener documentlistener)
MDIComponent
setDocumentListener in interface MDIComponentdocumentlistener - the documentlistener to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||