Enum Class View.Type

java.lang.Object
java.lang.Enum<View.Type>
react4j.annotations.View.Type
All Implemented Interfaces:
Serializable, Comparable<View.Type>, Constable
Enclosing class:
View

public static enum View.Type extends Enum<View.Type>
Enum indicating type of view.
  • Enum Constant Details

    • STATEFUL

      public static final View.Type STATEFUL
      The view can store state in fields, can declared lifecycle methods and may contain methods annotated by the ScheduleRender 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 to Objects.equals(Object, Object) and that method returns false. A view will also be scheduled to re-render if the view invokes a method annotated by the ScheduleRender annotation.
    • TRACKING

      public static final View.Type TRACKING
      The view is a STATEFUL view and will re-render the view if any Arez dependencies change. The framework uses the Observe annotation to track Arez dependencies.
    • MAYBE_TRACKING

      public static final View.Type MAYBE_TRACKING
      The view is a TRACKING view but it will not generate an invariant failure if a render results in zero Arez dependencies.
    • NO_RENDER

      public static final View.Type NO_RENDER
      The view must not have a method annotated with Render. This is useful for "view" instances that provide capabilities or interact with services and thus need not have a render method.
  • Method Details

    • values

      public static View.Type[] 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

      public static View.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null