public enum PredefinedSetOfPages extends Enum<PredefinedSetOfPages> implements PagesSelection, FriendlyNamed
| Enum Constant and Description |
|---|
ALL_PAGES |
EVEN_PAGES |
NONE |
ODD_PAGES |
| Modifier and Type | Method and Description |
|---|---|
String |
getFriendlyName() |
abstract SortedSet<Integer> |
getPages(int totalNumberOfPage) |
static PredefinedSetOfPages |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PredefinedSetOfPages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredefinedSetOfPages ALL_PAGES
public static final PredefinedSetOfPages EVEN_PAGES
public static final PredefinedSetOfPages ODD_PAGES
public static final PredefinedSetOfPages NONE
public static PredefinedSetOfPages[] values()
for (PredefinedSetOfPages c : PredefinedSetOfPages.values()) System.out.println(c);
public static PredefinedSetOfPages 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 abstract SortedSet<Integer> getPages(int totalNumberOfPage)
getPages in interface PagesSelectiontotalNumberOfPage - the number of pages of the document (upper limit).PagesSelection.getPages(int)public String getFriendlyName()
getFriendlyName in interface FriendlyNamedCopyright © 2015. All Rights Reserved.