Enum Class ViewLifeCycle

java.lang.Object
java.lang.Enum<ViewLifeCycle>
io.jmix.flowui.monitoring.ViewLifeCycle
All Implemented Interfaces:
Serializable, Comparable<ViewLifeCycle>, Constable

public enum ViewLifeCycle extends Enum<ViewLifeCycle>
Enum representing the lifecycle phases of a View.
  • Enum Constant Details

    • CREATE

      public static final ViewLifeCycle CREATE
      Phase when the View instance is created
    • LOAD

      public static final ViewLifeCycle LOAD
      Phase when the View data is being loaded from XML
    • INIT

      public static final ViewLifeCycle INIT
      Phase when the View is being initialized
    • BEFORE_SHOW

      public static final ViewLifeCycle BEFORE_SHOW
      Phase immediately before the View is shown to the user
    • READY

      public static final ViewLifeCycle READY
      Phase when the View is fully initialized and ready for interaction
    • INJECT

      public static final ViewLifeCycle INJECT
      Phase when dependencies are being injected into the View
    • BEFORE_CLOSE

      public static final ViewLifeCycle BEFORE_CLOSE
      Phase immediately before the View is closed
    • AFTER_CLOSE

      public static final ViewLifeCycle AFTER_CLOSE
      Phase after the View has been closed
  • Method Details

    • values

      public static ViewLifeCycle[] 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 ViewLifeCycle 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ViewLifeCycle>
    • getName

      public String getName()
      Gets the string name representation of the lifecycle phase.
      Returns:
      the name of the lifecycle phase