Module com.gluonhq.charm.glisten
Enum RefreshIndicator.Mode
- java.lang.Object
-
- java.lang.Enum<RefreshIndicator.Mode>
-
- com.gluonhq.impl.charm.glisten.control.RefreshIndicator.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<RefreshIndicator.Mode>
- Enclosing class:
- RefreshIndicator
public static enum RefreshIndicator.Mode extends Enum<RefreshIndicator.Mode>
Enumeration that specifies the current mode of the RefreshIndicator.- Since:
- 2.3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PULLING
The user is currently swiping the screen to initiate the sync process.REFRESHING
The data is currently syncing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RefreshIndicator.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RefreshIndicator.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PULLING
public static final RefreshIndicator.Mode PULLING
The user is currently swiping the screen to initiate the sync process. This is shown by an arc with an arrow.
-
REFRESHING
public static final RefreshIndicator.Mode REFRESHING
The data is currently syncing. This is shown by aProgressIndicator
.
-
-
Method Detail
-
values
public static RefreshIndicator.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RefreshIndicator.Mode c : RefreshIndicator.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RefreshIndicator.Mode valueOf(String name)
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
-
-