com.vaadin.flow.component.avatar.
Enum AvatarVariant
- java.lang.Object
-
- java.lang.Enum<AvatarVariant>
-
- com.vaadin.flow.component.avatar.AvatarVariant
-
All Implemented Interfaces:
public enum AvatarVariant extends Enum<AvatarVariant>
Set of theme variants applicable for
vaadin-avatar
component.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LUMO_LARGE
LUMO_SMALL
LUMO_XLARGE
LUMO_XSMALL
-
Method Summary
All Methods Modifier and Type Method Description String
getVariantName()
Gets the variant name.
static AvatarVariant
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static AvatarVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LUMO_XLARGE
public static final AvatarVariant LUMO_XLARGE
-
LUMO_LARGE
public static final AvatarVariant LUMO_LARGE
-
LUMO_SMALL
public static final AvatarVariant LUMO_SMALL
-
LUMO_XSMALL
public static final AvatarVariant LUMO_XSMALL
-
-
Method Detail
-
values
public static AvatarVariant[] 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 (AvatarVariant c : AvatarVariant.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvatarVariant 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
-
getVariantName
public String getVariantName()
Gets the variant name.
Returns:
variant name
-
-