|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
com.tensegrity.skeleton.swt.launch.SwtInitGUILaunchTask
This launch task initializes the GUI for a given SwtApplicationFrame,
which means that it sets the positions of the
ToolBar,
MDIComponent and of all the
Containers used within the
SwtApplicationFrame passed to the
constructor.
Application developers willing to change the default organization of all
these GUI items on the application Shell
should override the following methods:
getApplicationShellLayout()
setToolBarLayoutData(SwtToolBar)
setMDIComponentLayoutData(SwtTabbedMDIComponent)
setContainerLayoutData(AbstractSwtToolContainer)
| Field Summary |
| Fields inherited from class com.tensegrity.gui.launch.LaunchTask |
lasterror, LAUNCHTASKSTATUS_FATAL, LAUNCHTASKSTATUS_FATAL_RETRY, LAUNCHTASKSTATUS_SERIOUS, LAUNCHTASKSTATUS_SERIOUS_RETRY, LAUNCHTASKSTATUS_SHUTDOWN, LAUNCHTASKSTATUS_SUCCESS, LAUNCHTASKSTATUS_WARNING |
| Constructor Summary | |
SwtInitGUILaunchTask(SwtApplicationFrame applicationFrame)
Creates the SwtInitGUILaunchTask which initializes
the GUI for a given SwtApplicationFrame. |
|
| Method Summary | |
protected org.eclipse.swt.widgets.Layout |
getApplicationShellLayout()
This method returns the Layout to be set on the Shell
where the application is displayed.
|
void |
postCreate(java.lang.Object object)
This method is invoked once the run() method is about to return.
|
int |
run()
The run method of this launch task. |
protected void |
setContainerLayoutData(AbstractSwtToolContainer container)
Subclasses can override this routine in order to change the layout data of the application's swt containers. |
protected void |
setMDIComponentLayoutData(SwtTabbedMDIComponent mdi)
Subclasses can override this routine in order to change the layout data of the application'S MDI component. |
protected void |
setToolBarLayoutData(SwtToolBar toolbar)
Subclasses can override this routine in order to change the layout data of the application's SwtToolBar. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask |
findResourceText, getApplicationFrame, getName, getStatusPrefix, getStatusPrefixResourceKey |
| Methods inherited from class com.tensegrity.gui.launch.LaunchTask |
getError, getStatusDetails |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtInitGUILaunchTask(SwtApplicationFrame applicationFrame)
SwtInitGUILaunchTask which initializes
the GUI for a given SwtApplicationFrame.
applicationFrame - Application context for this LaunchTask.| Method Detail |
public int run()
throws java.lang.Exception
LaunchTask
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exceptionpublic void postCreate(java.lang.Object object)
run() method is about to return.
The parameter is the SwtApplicationFrame .
postCreate in class AbstractLaunchTaskobject - the SwtApplicationFrame.AbstractLaunchTask.postCreate(Object)protected void setToolBarLayoutData(SwtToolBar toolbar)
Subclasses can override this routine in order to change the layout data
of the application's SwtToolBar.
Important:
The layout data set within this routine must be compatible with
the layout returned by getApplicationShellLayout().
toolbar - the application's SwtToolBar.getApplicationShellLayout()protected void setContainerLayoutData(AbstractSwtToolContainer container)
Subclasses can override this routine in order to change the layout data
of the application's swt containers.
Important:
The layout data set within this routine must be compatible with
the layout returned by getApplicationShellLayout().
container - an AbstractSwtToolContainer to which the
layout data is to be set.protected void setMDIComponentLayoutData(SwtTabbedMDIComponent mdi)
Subclasses can override this routine in order to change the layout data
of the application'S MDI component.
Important:
The layout data set within this routine must be compatible with
the layout returned by getApplicationShellLayout().
mdi - the SwtTabbedMDIComponentprotected org.eclipse.swt.widgets.Layout getApplicationShellLayout()
This method returns the Layout to be set on the Shell
where the application is displayed.
The default implementation returns a FormLayout instance.
Layout to be set on the application's Shell
(a FormLayout by default).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||