|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfObjectContainer
com.crionics.jpdf.outline.AbstractOutlineItem
public abstract class AbstractOutlineItem
This object contains the common methods for items which can be view in a PDF Viewer as a bookmark (equivalent to a table of Content). Theses Items are organized in a Tree List, and have differents information allowing to recover their childs, parent or next Items. Also note that each Items requires 2 valid attributes:
| Method Summary | |
|---|---|
void |
addAfter(AbstractOutlineItem prev)
Sets the current item after the specified one. |
void |
addBelow(AbstractOutlineItem parent)
Sets the current item below the specified one, thus starting an new Tree Branch. |
void |
addChild(AbstractOutlineItem child)
Adds the specified item below the current one, thus starting an new Tree Branch. |
void |
addNext(AbstractOutlineItem next)
Add the specified item after the current one. |
boolean |
equals(AbstractOutlineItem item)
|
boolean |
equals(java.lang.Object obj)
|
AbstractOutlineItem |
getChild()
Returns the First Child of the tree below this item. |
AbstractOutlineItem |
getFirst()
Returns the First item of the current branch. |
AbstractOutlineItem |
getLast()
Returns the Last item of the current branch. |
AbstractOutlineItem |
getNext()
Returns the Item following this one in the current branch of the tree. |
int |
getPageIndex()
Returns the index of the page associated with this Item. |
int |
getPageIndex(boolean searchLastIndex)
Returns the index of the page associated with this Item. |
AbstractOutlineItem |
getParent()
Returns the Parent Item of this one. |
AbstractOutlineItem |
getPrev()
Returns the Previous Item to this one. |
java.lang.String |
getTitle()
Returns the text to be displayed for this Item in a PDF Viewer. |
boolean |
hasChild()
Allows to detect if this Item starts a new branch. |
boolean |
hasNext()
Allows to detect if there is another item after the current one. |
void |
removeFromTree(boolean keepChilds)
This methods allows the removal the current items from the outline tree. |
void |
setTitle(java.lang.String title)
Sets the text to be displayed for this Item in a PDF Viewer. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addAfter(AbstractOutlineItem prev)
throws PdfException,
java.io.IOException
prev - The previous to be Item.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void addBelow(AbstractOutlineItem parent)
throws PdfException,
java.io.IOException
parent - The parent to be Item to set.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void addChild(AbstractOutlineItem child)
throws PdfException,
java.io.IOException
child - The parent to be Item to set.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void addNext(AbstractOutlineItem next)
throws PdfException,
java.io.IOException
next - The Item to be added.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.public boolean equals(AbstractOutlineItem item)
public boolean equals(java.lang.Object obj)
public AbstractOutlineItem getChild()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractOutlineItem getFirst()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractOutlineItem getLast()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractOutlineItem getNext()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public int getPageIndex()
throws PdfException,
java.io.IOException
getPageIndex(boolean)with the
parameter searchLastIndex set to false.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public int getPageIndex(boolean searchLastIndex)
throws PdfException,
java.io.IOException
searchLastIndex - Set to true to search for the last page index if the current
item do not have any reference to a page, or false otherwise.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractOutlineItem getParent()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public AbstractOutlineItem getPrev()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public java.lang.String getTitle()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.public boolean hasChild()
public boolean hasNext()
public void removeFromTree(boolean keepChilds)
throws PdfException,
java.io.IOException
keepChilds - true if the related childs should be kept, false otherwise.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setTitle(java.lang.String title)
throws PdfException,
java.io.IOException
title - The title to set.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||