Enum Class ContextType

java.lang.Object
java.lang.Enum<ContextType>
org.zkoss.bind.annotation.ContextType
All Implemented Interfaces:
Serializable, Comparable<ContextType>, Constable

public enum ContextType extends Enum<ContextType>
To define the context object type for ContextParam
Since:
6.0.0
Author:
dennis
See Also:
  • Enum Constant Details

    • BIND_CONTEXT

      public static final ContextType BIND_CONTEXT
      The current bind context, the type is BindContext
    • BINDER

      public static final ContextType BINDER
      The current binder, the type is Binder
    • EXECUTION

      public static final ContextType EXECUTION
      The current execution, the type is Execution
    • COMPONENT

      public static final ContextType COMPONENT
      The current component, the type is subclass of the Component
    • SPACE_OWNER

      public static final ContextType SPACE_OWNER
      The space owner of the current component, the type is IdSpace
    • VIEW

      public static final ContextType VIEW
      The view of binder, the type is Component
    • PAGE

      public static final ContextType PAGE
      The page of the current component, the type is Page
    • DESKTOP

      public static final ContextType DESKTOP
      The desktop of the current component, the type is Desktop
    • SESSION

      public static final ContextType SESSION
      The session, the type is Session
    • APPLICATION

      public static final ContextType APPLICATION
      The web application, the type is WebApp
    • TRIGGER_EVENT

      public static final ContextType TRIGGER_EVENT
      The trigger event of a command
      Since:
      6.0.1
    • COMMAND_NAME

      public static final ContextType COMMAND_NAME
      The command name
      Since:
      6.0.1
  • Method Details

    • values

      public static ContextType[] 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 ContextType 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