Package org.zkoss.bind.annotation
Enum ContextType
- java.lang.Object
-
- java.lang.Enum<ContextType>
-
- org.zkoss.bind.annotation.ContextType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ContextType>
public enum ContextType extends java.lang.Enum<ContextType>
To define the context object type forContextParam- Since:
- 6.0.0
- Author:
- dennis
- See Also:
ContextParam
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATIONThe web application, the type isWebAppBIND_CONTEXTThe current bind context, the type isBindContextBINDERThe current binder, the type isBinderCOMMAND_NAMEThe command nameCOMPONENTThe current component, the type is subclass of theComponentDESKTOPThe desktop of the current component, the type isDesktopEXECUTIONThe current execution, the type isExecutionPAGEThe page of the current component, the type isPageSESSIONThe session, the type isSessionSPACE_OWNERThe space owner of the current component, the type isIdSpaceTRIGGER_EVENTThe trigger event of a commandVIEWThe view of binder, the type isComponent
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContextType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIND_CONTEXT
public static final ContextType BIND_CONTEXT
The current bind context, the type isBindContext
-
BINDER
public static final ContextType BINDER
The current binder, the type isBinder
-
EXECUTION
public static final ContextType EXECUTION
The current execution, the type isExecution
-
COMPONENT
public static final ContextType COMPONENT
The current component, the type is subclass of theComponent
-
SPACE_OWNER
public static final ContextType SPACE_OWNER
The space owner of the current component, the type isIdSpace
-
VIEW
public static final ContextType VIEW
The view of binder, the type isComponent
-
PAGE
public static final ContextType PAGE
The page of the current component, the type isPage
-
DESKTOP
public static final ContextType DESKTOP
The desktop of the current component, the type isDesktop
-
SESSION
public static final ContextType SESSION
The session, the type isSession
-
APPLICATION
public static final ContextType APPLICATION
The web application, the type isWebApp
-
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 Detail
-
values
public static ContextType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContextType c : ContextType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContextType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-