public class CPDFOutline
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CPDFAction |
getAction()
Gets the action performed when users click the outline, more:
CPDFAction |
CPDFOutline |
getChildAt(int index)
Gets the TPDFOutline object at the specified index.
|
CPDFOutline[] |
getChildList()
Gets all the items within an outline hierarchy, more:
CPDFOutline |
CPDFDestination |
getDestination()
Gets the destination associated with the outline, more:
CPDFDestination |
int |
getLevel()
Gets outline level.
|
CPDFOutline |
getParent()
Gets the parent outline object of the outline.
|
java.lang.String |
getTag()
Gets outline tag, which will not be saved in file and just for temporary use
|
java.lang.String |
getTitle()
Gets outline title.
|
CPDFOutline |
insertChildAtIndex(int index)
Create an outline object and inserts the outline object at the specified index.
|
boolean |
moveOutline(CPDFOutline move,
int index)
Move an outline object and inserts the outline object to this outline object at the specified index.
|
boolean |
moveTo(CPDFOutline newParent,
int index)
Move outline to other place.
|
boolean |
removeFromParent()
Removes the outline object from its parent.
|
boolean |
setAction(CPDFAction action)
Sets the action performed when users click the outline, more:
CPDFAction |
boolean |
setDestination(CPDFDestination destination)
Sets the destination associated with the outline, more:
CPDFDestination |
void |
setTag(java.lang.String tag)
Sets outline tag, which will not be saved in file and just for temporary use
|
boolean |
setTitle(java.lang.String title)
Sets outline title.
|
java.lang.String |
toString() |
public CPDFOutline[] getChildList()
CPDFOutline
public CPDFOutline getChildAt(int index)
index
- the index of specifiedpublic int getLevel()
public java.lang.String getTitle()
public boolean setTitle(java.lang.String title)
title
- Outline title.public CPDFDestination getDestination()
CPDFDestination
public boolean setDestination(CPDFDestination destination)
CPDFDestination
destination
- Destination associated with the outlinepublic CPDFAction getAction()
CPDFAction
public boolean setAction(CPDFAction action)
CPDFAction
action
- The action performed when users click the outline.public CPDFOutline getParent()
public boolean removeFromParent()
public CPDFOutline insertChildAtIndex(int index)
index
- Child item index of outlinepublic boolean moveOutline(CPDFOutline move, int index)
move
- The outline object to move.index
- The index to insert at.public boolean moveTo(CPDFOutline newParent, int index)
newParent
- The new parent of the outline after moved.index
- The index of the outline in new parent.public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- Outline tagpublic java.lang.String toString()
toString
in class java.lang.Object