Enum Constant and Description |
---|
EAGER
When loading="eager", changes to the src attribute will immediately navigate the element.
|
LAZY
When loading="lazy", changes to the src attribute will defer navigation until the element is visible in the viewport.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static java.util.Optional<Loading> |
of(java.lang.String str) |
java.lang.String |
toString() |
static Loading |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Loading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Loading EAGER
public static final Loading LAZY
public static Loading[] values()
for (Loading c : Loading.values()) System.out.println(c);
public static Loading valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NonNull public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<Loading>
@NonNull public static java.util.Optional<Loading> of(@Nullable java.lang.String str)