|
|||||||||||
| 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
com.tensegrity.gui.swt.dialog.SwtInputDialog
An SwtInputDialog is a dialog containing a text area for the
user input, one Ok button and one Cancel button.
The value entered by the user can be retrieved by means of the
method.
getValue()
Notice that the caller should dispose the dialog once it does not require it anymore.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
resourceClass, resourcePath |
| Constructor Summary | |
SwtInputDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
java.lang.String keyTitle,
java.lang.String keyDescription)
Creates and initializes the SwtInputDialog with a text field
for the user input and two buttons (Ok, Cancel).
|
|
SwtInputDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
java.lang.String keyTitle,
java.lang.String keyDescription)
Creates and initializes the SwtInputDialog with a text field
for the user input and two buttons (Ok, Cancel).
|
|
| Method Summary | |
java.lang.String |
getValue()
Returns the value of this input dialog. |
| Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
applyEvList, dispose, getDialog, getTextCompositeLayoutData, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText, show |
| 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 SwtInputDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
java.lang.String keyTitle,
java.lang.String keyDescription)
Creates and initializes the SwtInputDialog with a text field
for the user input and two buttons (Ok, Cancel).
uiManager - a UIManager for localized Stringsdisplay - a Display required for example to
create the logo used on the dialog, or to create Fonts.style - the style of the internal Shell
representing the dialog.keyTitle - the key used for the localized title of the dialogkeyDescription - the key used for the localized desciption of the dialog
public SwtInputDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
java.lang.String keyTitle,
java.lang.String keyDescription)
Creates and initializes the SwtInputDialog with a text field
for the user input and two buttons (Ok, Cancel).
Notice that with this constructor the style used is
SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL.
uiManager - a UIManager for localized Stringsdisplay - a Display required for example to
create the logo used on the dialog, or to create Fonts.keyTitle - the key used for the localized title of the dialogkeyDescription - the key used for the localized desciption of the dialog| Method Detail |
public final java.lang.String getValue()
Returns the value of this input dialog.
null if the user cancelled
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||