Enum DefaultProgressBarType
- java.lang.Object
-
- java.lang.Enum<DefaultProgressBarType>
-
- org.pepstock.charba.client.utils.toast.enums.DefaultProgressBarType
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultProgressBarType>
,Key
,IsProgressBarType
public enum DefaultProgressBarType extends Enum<DefaultProgressBarType> implements IsProgressBarType
Enumerates the list of progress bar type for toasting.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gradient
getBackgroundAsGradient()
Returns the backgroundGradient
of the toast.IsColor
getBackgroundColor()
Returns the backgroundIsColor
of the progress bar.String
value()
Returns the name value of propertystatic DefaultProgressBarType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultProgressBarType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final DefaultProgressBarType DEFAULT
Default toast type -
-
SUCCESS
public static final DefaultProgressBarType SUCCESS
Success toast type -
-
WARNING
public static final DefaultProgressBarType WARNING
Warning toast type -
-
ERROR
public static final DefaultProgressBarType ERROR
Error toast type -
-
INFO
public static final DefaultProgressBarType INFO
Info toast type -
-
RAINBOW
public static final DefaultProgressBarType RAINBOW
Rainbow toast type -
-
-
Method Detail
-
values
public static DefaultProgressBarType[] 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 (DefaultProgressBarType c : DefaultProgressBarType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultProgressBarType 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
-
value
public String value()
Description copied from interface:Key
Returns the name value of property
-
getBackgroundColor
public IsColor getBackgroundColor()
Description copied from interface:IsProgressBarType
Returns the backgroundIsColor
of the progress bar.- Specified by:
getBackgroundColor
in interfaceIsProgressBarType
- Returns:
- the background
IsColor
of the progress bar
-
getBackgroundAsGradient
public Gradient getBackgroundAsGradient()
Description copied from interface:IsProgressBarType
Returns the backgroundGradient
of the toast.- Specified by:
getBackgroundAsGradient
in interfaceIsProgressBarType
- Returns:
- the background
Gradient
of the toast
-
-