|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.util.PageManager
public class PageManager
This class is a validator for page numbers.
| Constructor Summary | |
|---|---|
PageManager()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
addPages(java.lang.CharSequence spec)
Add some pages to be accepted. |
boolean |
isSelected(int page)
Check whether the given page number is in a selected range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageManager()
| Method Detail |
|---|
public void addPages(java.lang.CharSequence spec)
throws java.lang.IllegalArgumentException
Examples
2 2-5 -12 12- 2-4,7-12 2-4,12,28-
spec - the comma separated list of page ranges
java.lang.IllegalArgumentException - in case of a parse errorpublic boolean isSelected(int page)
page - the page number to check
true iff the page is in a selected range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||