Package org.apache.tapestry5.alerts
Enum Duration
- All Implemented Interfaces:
Serializable
,Comparable<Duration>
,java.lang.constant.Constable
Controls how long an
Alert
is displayed to the end user.- Since:
- 5.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default duration; displayed to the user a single time; once the page updates, the alert will not be presented to the user.Transient alerts are displayed to the user, then automatically clear themselves after a few seconds.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
FieldsModifier and TypeFieldDescriptionfinal boolean
True if the alert type should persist between requests. -
Method Summary
-
Enum Constant Details
-
TRANSIENT
Transient alerts are displayed to the user, then automatically clear themselves after a few seconds. Transient alerts are not stored in theAlertStorage
. -
SINGLE
The default duration; displayed to the user a single time; once the page updates, the alert will not be presented to the user. Single duration alerts are not stored inAlertStorage
. -
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). Such alerts are stored persistently inAlertStorage
.
-
-
Field Details
-
persistent
True if the alert type should persist between requests. This is only true forUNTIL_DISMISSED
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-