public enum PageAction extends Enum<PageAction>
Enum Constant and Description |
---|
FIRST
First page is requested
|
LAST
Last page is requested
|
NEXT
Next page is requested
|
PREV
Previous page is requested
|
TO_PAGE
A specified page is requested
|
TO_ROW
A specified row is requested
|
Modifier and Type | Method and Description |
---|---|
String |
getToken() |
static PageAction |
parse(String name) |
static PageAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageAction FIRST
public static final PageAction NEXT
public static final PageAction PREV
public static final PageAction LAST
public static final PageAction TO_ROW
public static final PageAction TO_PAGE
public static PageAction[] values()
for (PageAction c : PageAction.values()) System.out.println(c);
public static PageAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getToken()
public static PageAction parse(String name) throws IllegalArgumentException
name
- Name of the PageActionIllegalArgumentException
- When the name doesn't match any PageAction.Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.