|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PushMode>
com.vaadin.shared.communication.PushMode
public enum PushMode
The mode of bidirectional ("push") communication that is in use.
com.vaadin.server.DeploymentConfiguration#getPushMode()| Enum Constant Summary | |
|---|---|
AUTOMATIC
Push is enabled. |
|
DISABLED
Push is disabled. |
|
MANUAL
Push is enabled. |
|
| Method Summary | |
|---|---|
boolean |
isEnabled()
Checks whether the push mode is using push functionality |
static PushMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PushMode[] |
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 PushMode DISABLED
ui.push() throws
IllegalStateException.
This is the default mode unless
configured otherwise.
public static final PushMode MANUAL
ui.push() must be explicitly called.
public static final PushMode AUTOMATIC
MANUAL, but asynchronous changes to the
server-side state are automatically pushed to the client once the session
lock is released.
| Method Detail |
|---|
public static PushMode[] values()
for (PushMode c : PushMode.values()) System.out.println(c);
public static PushMode 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 nullpublic boolean isEnabled()
true if this mode requires push functionality;
false if no push functionality is used for this
mode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||