Enum WDataTable.PaginationMode
- java.lang.Object
-
- java.lang.Enum<WDataTable.PaginationMode>
-
- com.github.bordertech.wcomponents.WDataTable.PaginationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<WDataTable.PaginationMode>
- Enclosing class:
- WDataTable
public static enum WDataTable.PaginationMode extends Enum<WDataTable.PaginationMode>
This is used to control how pagination should work.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT
Indicates that pagination occurs on the client.DYNAMIC
Indicates that pagination occurs via AJAX calls to the server.NONE
Indicates that pagination is not supported, all data will be displayed in the one page.SERVER
Deprecated.use PaginationMode.DYNAMIC instead.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WDataTable.PaginationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static WDataTable.PaginationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final WDataTable.PaginationMode NONE
Indicates that pagination is not supported, all data will be displayed in the one page.
-
SERVER
public static final WDataTable.PaginationMode SERVER
Deprecated.use PaginationMode.DYNAMIC instead.Indicates that pagination occurs using a round-trip to the server (no longer implemented). NOTE: no longer supported in theme as it causes an a11y failure. Setting this mode will, in effect, set PaginationMode.DYNAMIC.
-
CLIENT
public static final WDataTable.PaginationMode CLIENT
Indicates that pagination occurs on the client. All data will be sent at once.
-
DYNAMIC
public static final WDataTable.PaginationMode DYNAMIC
Indicates that pagination occurs via AJAX calls to the server.
-
-
Method Detail
-
values
public static WDataTable.PaginationMode[] 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 (WDataTable.PaginationMode c : WDataTable.PaginationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WDataTable.PaginationMode 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
-
-