|
|||||||||||
| 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.SWTYesNoDialog
A SWTYesNoDialog dialog contains an image, a description,
optionally a "Do not show this dialog anymore" check box, a Yes
and a No buttons.
By default the dialog will be created without the "Do not show this dialog
anymore" check box unless it is created using the
constructor.
#SWTYesNoDialog(Shell, int, UIManager, String, String, boolean)
The method indicates whether
or not the check box (if displayed) has been selected.
In order to check which button has been pressed one can use the
displayAgainNextTime() method which returns either getResult()SWT.YES
or SWT.NO.
| Constructor Summary | |
SWTYesNoDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String title,
java.lang.String description,
int imageType)
Creates a basic SWTYesNoDialog without the check box asking the
user if he wants to display this dialog the next time.
|
|
SWTYesNoDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String title,
java.lang.String description,
int imageType,
boolean showSkipMessage)
Creates a SWTYesNoDialog with a check box asking the
user if he wants to display this dialog the next time.
|
|
| Method Summary | |
boolean |
displayAgainNextTime()
Indicates whether or not the user wants the dialog to be displayed the next time. |
int |
getResult()
This method indicates which button has been pressed on the dialog. |
int |
open()
This method open the dialog in a modal manner. |
| 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 |
| Constructor Detail |
public SWTYesNoDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String title,
java.lang.String description,
int imageType)
Creates a basic SWTYesNoDialog without the check box asking the
user if he wants to display this dialog the next time.
parent - a shell which will be the parent of the new instancestyle - the style of control to constructuiManager - the manager for localized stringstitle - the dialog titledescription - the confirmation textimageType - One of
SWT.ICON_ERROR
SWT.ICON_INFORMATION
SWT.ICON_QUESTION
SWT.ICON_WARNING
SWT.ICON_WORKING
public SWTYesNoDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager,
java.lang.String title,
java.lang.String description,
int imageType,
boolean showSkipMessage)
Creates a SWTYesNoDialog with a check box asking the
user if he wants to display this dialog the next time.
parent - a shell which will be the parent of the new instancestyle - the style of control to constructuiManager - the manager for localized stringstitle - the dialog titledescription - the confirmation textimageType - One of
SWT.ICON_ERROR
SWT.ICON_INFORMATION
SWT.ICON_QUESTION
SWT.ICON_WARNING
SWT.ICON_WORKING
showSkipMessage - if true a check box is displayed asking the user
whether or not the dialog should be displayed the next time.| Method Detail |
public int open()
This method open the dialog in a modal manner. It will be centered on top of its parent.
SWT.NO or SWT.YES depending on which button
has been pressedpublic boolean displayAgainNextTime()
Indicates whether or not the user wants the dialog to be displayed the next time.
true if the user wants the dialog to be displayed the
next time, false otherwise.public int getResult()
This method indicates which button has been pressed on the dialog. Notice that it only makes sense to call this method after the dialog has been displayed.
SWT.NO or SWT.YES depending on which button
has been pressed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||