|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.SwtBaseDialog
The SwtBaseDialog is a base class for good looking dialogs in
the SWT context.
The dialog displays a title string and a description paragraph. The
setDefaultResourceClassAndURL() method can be used in order to
display the standard Tensegrity Icon on the top right corner of the dialog.
This icon can be modified by means of the
setResourceClassAndURL(Class, String) method.
Subclasses of this dialog that implement the interface
Evaluable must invoke
super.applyEvList()in their
t()implementation.
| Field Summary | |
protected static java.lang.Class |
resourceClass
This is the base class to load the common image from |
protected static java.lang.String |
resourcePath
This is the path to the the common image, relative to resourceClass |
| Constructor Summary | |
SwtBaseDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String keyTitle,
java.lang.String keyDescription)
Creates a new AbstractOkCancelDialog |
|
| Method Summary | |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
void |
dispose()
Use this method in order to dispose the SWT resources held by instance of classes implementing the interface.
|
org.eclipse.swt.widgets.Shell |
getDialog()
|
protected org.eclipse.swt.layout.GridData |
getTextCompositeLayoutData()
Subclasses should override this method in order to set the Layout Data Use for the text composite of the base dialog. |
UIManager |
getUIManager()
|
void |
installEvList()
Tells the component to setup its internal state. |
void |
keyPressed(org.eclipse.swt.events.KeyEvent e)
|
void |
keyReleased(org.eclipse.swt.events.KeyEvent e)
|
static void |
setDefaultResourceClassAndURL()
Sets the Tensegrity default resource-class and resource url for loading the common image displayed in all derived dialogs. |
void |
setDescriptionText(java.lang.String text)
Sets the text to display in the description label. |
static void |
setResourceClassAndURL(java.lang.Class resourceClass,
java.lang.String resourcePath)
Sets the resource-class and resource url for loading the common image displayed in all derived dialogs. |
void |
setTitleText(java.lang.String text)
Sets the text to display in the title label. |
void |
show()
Method used in order to actually create and display the dialog. |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.Class resourceClass
protected static java.lang.String resourcePath
resourceClass
| Constructor Detail |
public SwtBaseDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String keyTitle,
java.lang.String keyDescription)
AbstractOkCancelDialog
parent - the parent Composite to add this dialog tostyle - SWT style bitsuiManager - the UIManager instance to use for localization| Method Detail |
public static final void setResourceClassAndURL(java.lang.Class resourceClass,
java.lang.String resourcePath)
resourceClass - the base class to load the common image from.resourcePath - the resource path to load the common image from.public static final void setDefaultResourceClassAndURL()
public void show()
Method used in order to actually create and display the dialog.
public final org.eclipse.swt.widgets.Shell getDialog()
public final UIManager getUIManager()
public void installEvList()
Evaluable
installEvList in interface Evaluablepublic void applyEvList()
EvaluableUIItemEvaluationList.
applyEvList in interface Evaluablepublic void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed in interface org.eclipse.swt.events.KeyListenerpublic void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased in interface org.eclipse.swt.events.KeyListenerpublic 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 void setDescriptionText(java.lang.String text)
text - the text to display in the description label.public void setTitleText(java.lang.String text)
text - the text to display in the title label.protected org.eclipse.swt.layout.GridData getTextCompositeLayoutData()
Subclasses should override this method in order to set the Layout Data
Use for the text composite of the base dialog. The text composite is a
containing both the title and
description of the dialog. It is especially usefull to override this
method when the description has to be wrapped.
Composite
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||