|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.cete.dynamicpdf.PageList
Represents a collection of pages associated with a document.
| Constructor Summary | |
PageList()
Initializes a new instance of the PageList class. |
|
| Method Summary | |
void |
add(int index,
Page page)
Inserts a Page into the PageList
at the specified index. |
int |
add(Page page)
Adds a Page to the end of the PageList. |
void |
append(PageList pages)
Append a PageList to the end of the PageList. |
java.util.Iterator |
getIterator()
Returns an iterator that can iterate through the PageList. |
Page |
getPage(int index)
Gets the page at the given index. |
int |
getSize()
Gets the number of pages in the collection. |
void |
remove(int index)
Removes the page at the specified index of the PageList. |
void |
remove(Page page)
Removes the first occurrence of the given Page from the
PageList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PageList()
PageList class.
| Method Detail |
public Page getPage(int index)
index - the integer specifying the index value of the
Page stored in the ArrayList.
ArrayListpublic int getSize()
ArrayList.public int add(Page page)
Page to the end of the PageList.
page - The Page to be added to the end of
the PageList.
PageList index at which the
page has been added.Page,
PageListpublic void append(PageList pages)
PageList to the end of the PageList.
pages - The PageList to be appended to the end of the
PageList.
public void add(int index,
Page page)
Page into the PageList
at the specified index.
index - The zero-based index value at which Page
should be inserted.page - The Page to insert.Page,
PageListpublic void remove(Page page)
Page from the
PageList.
page - The Page to remove form the PageList.Page,
PageListpublic void remove(int index)
PageList.
index - The zero-based index of the page to remove.Page,
PageListpublic java.util.Iterator getIterator()
PageList.
PageList.PageList,
Iterator
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||