net.sourceforge.helpgui.page
Class PageList

java.lang.Object
  extended by net.sourceforge.helpgui.page.PageList

public class PageList
extends java.lang.Object

List of page for the help topic

Author:
Alexandre THOMAS

Constructor Summary
PageList()
          Constructor.
 
Method Summary
 void add(Page page)
          Add a new page on the list.
 void clear()
          Removes all the pages from this list.
 Page get(int pageIndex)
          Return a page by its index.
 int getIndex(Page page)
          Returns the index of the specified task.
 int indexOf(Page page)
          Returns the index of the specified page.
 boolean isEmpty()
          Tells if the list is empty or not.
 boolean isInList(Page page)
          Tells if a page is or not in this list.
 java.util.Iterator iterator()
          Returns a list iterator on this list.
 void remove(int pageIndex)
          Removes the specified page form the list.
 void remove(Page page)
          Removes the specified page form the list.
 int size()
          Returns the number of pages in this list.
 java.lang.String toString()
          Returns a string that describes current instance content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageList

public PageList()
Constructor.

Method Detail

add

public void add(Page page)
Add a new page on the list.


get

public Page get(int pageIndex)
         throws java.lang.IndexOutOfBoundsException
Return a page by its index.

Throws:
java.lang.IndexOutOfBoundsException

getIndex

public int getIndex(Page page)
Returns the index of the specified task.


iterator

public java.util.Iterator iterator()
Returns a list iterator on this list.


indexOf

public int indexOf(Page page)
Returns the index of the specified page.


isEmpty

public boolean isEmpty()
Tells if the list is empty or not.


remove

public void remove(int pageIndex)
Removes the specified page form the list.


remove

public void remove(Page page)
Removes the specified page form the list.


size

public int size()
Returns the number of pages in this list.


clear

public void clear()
Removes all the pages from this list.


isInList

public boolean isInList(Page page)
Tells if a page is or not in this list.


toString

public java.lang.String toString()
Returns a string that describes current instance content.

Overrides:
toString in class java.lang.Object