|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Duration> org.apache.tapestry5.alerts.Duration
public enum Duration
Controls how long an Alert
is displayed to the end user.
Enum Constant Summary | |
---|---|
SINGLE
The default duration; displayed to the user a single time; once the page updates, the alert will not be presented to the user. |
|
TRANSIENT
Transient alerts are displayed to the user, then automatically clear themselves after a few seconds. |
|
UNTIL_DISMISSED
For most important alerts; the alert will continue to be presented to the user until it is dismissed by the user (either by clicking on the individual alert to dismiss it, or by clicking the UI control for dismissing all alerts). |
Field Summary | |
---|---|
boolean |
persistent
True if the alert type should persist between requests. |
Method Summary | |
---|---|
static Duration |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Duration[] |
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 Duration TRANSIENT
AlertStorage
.
public static final Duration SINGLE
AlertStorage
.
public static final Duration UNTIL_DISMISSED
AlertStorage
.
Field Detail |
---|
public final boolean persistent
UNTIL_DISMISSED
.
Method Detail |
---|
public static Duration[] values()
for (Duration c : Duration.values()) System.out.println(c);
public static Duration valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |