Package react4j.annotations
Enum Class View.Type
- All Implemented Interfaces:
Serializable
,Comparable<View.Type>
,Constable
- Enclosing class:
- View
Enum indicating type of view.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe view is aTRACKING
view but it will not generate an invariant failure if a render results in zero Arez dependencies.The view must not have a method annotated withRender
.The view can store state in fields, can declared lifecycle methods and may contain methods annotated by theScheduleRender
annotation.The view is aSTATEFUL
view and will re-render the view if any Arez dependencies change. -
Method Summary
-
Enum Constant Details
-
STATEFUL
The view can store state in fields, can declared lifecycle methods and may contain methods annotated by theScheduleRender
annotation. The view will be scheduled to re-render if the views container re-renders and any input has changed value from last render. A input is considered changed when the new value and the old value are passed toObjects.equals(Object, Object)
and that method returnsfalse
. A view will also be scheduled to re-render if the view invokes a method annotated by theScheduleRender
annotation. -
TRACKING
-
MAYBE_TRACKING
The view is aTRACKING
view but it will not generate an invariant failure if a render results in zero Arez dependencies. -
NO_RENDER
The view must not have a method annotated withRender
. This is useful for "view" instances that provide capabilities or interact with services and thus need not have a render method.
-
-
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
-