DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class PageList

java.lang.Object
  |
  +--com.cete.dynamicpdf.PageList

public class PageList
extends java.lang.Object

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

PageList

public PageList()
Initializes a new instance of the PageList class.

Method Detail

getPage

public Page getPage(int index)
Gets the page at the given index.

Parameters:
index - the integer specifying the index value of the Page stored in the ArrayList.
Returns:
the Page at the given index.
See Also:
ArrayList

getSize

public int getSize()
Gets the number of pages in the collection.

Returns:
the int value specifying the number of pages in the ArrayList.

add

public int add(Page page)
Adds a Page to the end of the PageList.

Parameters:
page - The Page to be added to the end of the PageList.
Returns:
The PageList index at which the page has been added.
See Also:
Page, PageList

append

public void append(PageList pages)
Append a PageList to the end of the PageList.

Parameters:
pages - The PageList to be appended to the end of the PageList.

add

public void add(int index,
                Page page)
Inserts a Page into the PageList at the specified index.

Parameters:
index - The zero-based index value at which Page should be inserted.
page - The Page to insert.
See Also:
Page, PageList

remove

public void remove(Page page)
Removes the first occurrence of the given Page from the PageList.

Parameters:
page - The Page to remove form the PageList.
See Also:
Page, PageList

remove

public void remove(int index)
Removes the page at the specified index of the PageList.

Parameters:
index - The zero-based index of the page to remove.
See Also:
Page, PageList

getIterator

public java.util.Iterator getIterator()
Returns an iterator that can iterate through the PageList.

Returns:
An Iterator for the entire PageList.
See Also:
PageList, Iterator

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software