Enum Class UIUpdateStrategy
- All Implemented Interfaces:
Serializable,Comparable<UIUpdateStrategy>,Constable
This enum defines how the browser UI should respond when classes or resources are hot-swapped during development. The strategy determines whether a partial refresh or a full page reload is needed.
Note that RELOAD has higher priority than REFRESH. Once a
RELOAD strategy is set, it cannot be downgraded to REFRESH.
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic UIUpdateStrategyReturns the enum constant of this class with the specified name.static UIUpdateStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REFRESH
Performs a partial UI refresh without reloading the entire page.This strategy attempts to update only the affected UI components, preserving the current application state and providing a faster update experience during development.
-
RELOAD
Performs a full browser page reload.This strategy forces the browser to reload the entire page, which is necessary when changes cannot be applied through a partial refresh (e.g., structural changes, route modifications, or critical component updates).
This strategy has higher priority than
REFRESHand cannot be downgraded once set.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-