Package com.vaadin.flow.shared.ui
Enum LoadMode
- java.lang.Object
-
- java.lang.Enum<LoadMode>
-
- com.vaadin.flow.shared.ui.LoadMode
-
- All Implemented Interfaces:
Serializable
,Comparable<LoadMode>
public enum LoadMode extends Enum<LoadMode>
Determines a way that dependency is loaded. This mode can be specified when importing dependency either via annotations: or viaPage
methods:- Since:
- 1.0.
- Author:
- Vaadin Ltd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EAGER
Forces the dependency being loaded before the initial page load.INLINE
Forced the dependency to be inlined in the body of the html page, removing the requirement to have additional roundtrips to fetch the script.LAZY
Allows the dependency being loaded independent of the initial page load.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoadMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static LoadMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static LoadMode[] 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 (LoadMode c : LoadMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoadMode 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
-
-