|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDialog
eu.geclipse.ui.dialogs.PasswordDialog
public class PasswordDialog
A simple password dialog for soliciting a password string from the user.
This concrete dialog class can be instantiated as is, or further subclassed as required.
NOTE: This is a modified version of org.eclipse.jface.dialogs.InputDialog which was changed to have a password entry text widget.
| Constructor Summary | |
|---|---|
PasswordDialog(Shell parentShell,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
java.lang.String initialValue,
IInputValidator validator)
Creates an input dialog with OK and Cancel buttons. |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
Returns the string typed into this input dialog. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets or clears the error message. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordDialog(Shell parentShell,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
java.lang.String initialValue,
IInputValidator validator)
Note that the open method blocks for input dialogs.
parentShell - the parent shell, or null to create a top-level
shelldialogTitle - the dialog title, or null if nonedialogMessage - the dialog message, or null if noneinitialValue - the initial input value, or null if none
(equivalent to the empty string)validator - an input validator, or null if none| Method Detail |
|---|
public java.lang.String getValue()
public void setErrorMessage(java.lang.String errorMessage)
null, the OK button is disabled.
errorMessage - the error message, or null to clear
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||