org.odftoolkit.simple.common.field
Enum PageNumberField.DisplayType
java.lang.Object
java.lang.Enum<PageNumberField.DisplayType>
org.odftoolkit.simple.common.field.PageNumberField.DisplayType
- All Implemented Interfaces:
- Serializable, Comparable<PageNumberField.DisplayType>
- Enclosing class:
- PageNumberField
public static enum PageNumberField.DisplayType
- extends Enum<PageNumberField.DisplayType>
A DisplayType represents the selected page attribute of the
field. The page immediately preceding the current page, current page and
the page immediately following the current page are supported.
- Since:
- 0.5
PREVIOUS_PAGE
public static final PageNumberField.DisplayType PREVIOUS_PAGE
CURRENT_PAGE
public static final PageNumberField.DisplayType CURRENT_PAGE
NEXT_PAGE
public static final PageNumberField.DisplayType NEXT_PAGE
values
public static PageNumberField.DisplayType[] 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 (PageNumberField.DisplayType c : PageNumberField.DisplayType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PageNumberField.DisplayType 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 name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<PageNumberField.DisplayType>
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.