|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LoginForm.LoginMode>
com.vaadin.ui.LoginForm.LoginMode
public static enum LoginForm.LoginMode
Determines the way in which the login form reacts to a login on the
server side. The login mode is set by calling
LoginForm.setLoginMode(LoginMode).
| Enum Constant Summary | |
|---|---|
DEFERRED
Deferred mode means that LoginForm#login(String, String) will
be called after the dummy form submission that triggers the password
manager has completed. |
|
DIRECT
Direct mode means that LoginForm#login(String, String) will
be called as soon as the user clicks on the login button or presses
the enter key in the user name or password text fields. |
|
| Method Summary | |
|---|---|
static LoginForm.LoginMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LoginForm.LoginMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LoginForm.LoginMode DIRECT
LoginForm#login(String, String) will
be called as soon as the user clicks on the login button or presses
the enter key in the user name or password text fields. In direct
mode, you cannot change the URL in the
LoginForm#login(String, String) method, otherwise the
password manager will not be triggered.
This is the default mode for a new login form instance.
public static final LoginForm.LoginMode DEFERRED
LoginForm#login(String, String) will
be called after the dummy form submission that triggers the password
manager has completed. In deferred mode, it is possible to change the
URL in the LoginForm#login(String, String) method. The
drawbacks with resepect to deferred mode are the following:
| Method Detail |
|---|
public static LoginForm.LoginMode[] values()
for (LoginForm.LoginMode c : LoginForm.LoginMode.values()) System.out.println(c);
public static LoginForm.LoginMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||