|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.document.AbstractDocument
com.tensegrity.gui.swt.document.SwtDocument
This class represents a SWT-based Document.
The class SwtDocument holds a
instance to ease
the integration of ControlDocuments in a SWT context.
As an observer, this class delegates each update invocation to a call to the
redraw() method of the internal .
Control
Note that the internal
is not set by default. It is therefore the responsibility of the caller
or subclass to set it.
Control
| Field Summary |
| Fields inherited from interface com.tensegrity.gui.document.Document |
GLUE_LEFTBOTTOM, GLUE_LEFTCENTEREXTEND, GLUE_LEFTTOP, GLUE_RIGHTBOTTOM, GLUE_RIGHTCENTEREXTEND, GLUE_RIGHTTOP, TYPE_FIXED_SIZE, TYPE_PACK_IS_OK, TYPE_TOOLDOCUMENT |
| Constructor Summary | |
SwtDocument(java.lang.String name,
ApplicationFrame appFrame)
Constructor for a basic Document in the
context of SWT applications. |
|
| Method Summary | |
void |
dispose()
Use this method in order to dispose the SWT resources held by instance of classes implementing the interface.
|
ApplicationFrame |
getApplicationFrame()
Returns the enclosing ApplicationFrame of this
Container. |
org.eclipse.swt.widgets.Control |
getControl()
Returns the reference to the internal . |
void |
setControl(org.eclipse.swt.widgets.Control control)
Sets the internal .
|
void |
update(Observable o,
java.lang.Object arg)
Triggers a repaint. |
| Methods inherited from class com.tensegrity.gui.document.AbstractDocument |
closeHandler, getCopyCounter, getDocumentDataProvider, getDocumentSetting, getDocumentSettings, getFile, getFlags, getName, isModified, setDocumentSetting, setDocumentSettings, setFile, setModified, setName, setSelected, setUnmodified |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtDocument(java.lang.String name,
ApplicationFrame appFrame)
Document in the
context of SWT applications.
name - The document nameappFrame - application context giving access to application
specific information to instances of SwtDocument.| Method Detail |
public org.eclipse.swt.widgets.Control getControl()
Control.
Control.
public void update(Observable o,
java.lang.Object arg)
AbstractDocument
update in interface Observerupdate in class AbstractDocumentpublic void dispose()
Disposable
Use this method in order to dispose the SWT resources held by instance of
classes implementing the interface.
Disposable
dispose in interface Disposablepublic ApplicationFrame getApplicationFrame()
ContainerApplicationFrame of this
Container.
getApplicationFrame in interface ContainerApplicationFrame.public void setControl(org.eclipse.swt.widgets.Control control)
Sets the internal .
Control
control - the Control representing this Document.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||