Enum WTabSet.TabMode
- java.lang.Object
-
- java.lang.Enum<WTabSet.TabMode>
-
- com.github.bordertech.wcomponents.WTabSet.TabMode
-
- All Implemented Interfaces:
Serializable
,Comparable<WTabSet.TabMode>
- Enclosing class:
- WTabSet
public static enum WTabSet.TabMode extends Enum<WTabSet.TabMode>
The available types of tab invocation.- Author:
- Yiannis Paschalidis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT
Indicates that the tab content is always sent to the client.DYNAMIC
Indicates that an ajax request should be made whenever the tab is selected.EAGER
Indicates that an ajax request should be made immediately after the page is loaded.LAZY
Indicates that an ajax request should be made the first time the tab is selected.SERVER
Deprecated.Use TabMode DYNAMIC instead as a like-for-like replacement or any other mode if it is more appropriate to the individual use case.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WTabSet.TabMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static WTabSet.TabMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final WTabSet.TabMode SERVER
Deprecated.Use TabMode DYNAMIC instead as a like-for-like replacement or any other mode if it is more appropriate to the individual use case.Synonym for DYNAMIC.
-
LAZY
public static final WTabSet.TabMode LAZY
Indicates that an ajax request should be made the first time the tab is selected.
-
CLIENT
public static final WTabSet.TabMode CLIENT
Indicates that the tab content is always sent to the client.
-
DYNAMIC
public static final WTabSet.TabMode DYNAMIC
Indicates that an ajax request should be made whenever the tab is selected.
-
EAGER
public static final WTabSet.TabMode EAGER
Indicates that an ajax request should be made immediately after the page is loaded.
-
-
Method Detail
-
values
public static WTabSet.TabMode[] 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 (WTabSet.TabMode c : WTabSet.TabMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WTabSet.TabMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-