public abstract class PDOutlineNode extends PDDictionaryWrapper
Constructor and Description |
---|
PDOutlineNode()
Default Constructor.
|
PDOutlineNode(COSDictionary dict) |
Modifier and Type | Method and Description |
---|---|
void |
addFirst(PDOutlineItem newChild)
Adds the given node to the top of the children list.
|
void |
addLast(PDOutlineItem newChild)
Adds the given node to the bottom of the children list.
|
Iterable<PDOutlineItem> |
children() |
void |
closeNode()
Close this node.
|
PDOutlineItem |
getFirstChild() |
PDOutlineItem |
getLastChild() |
int |
getOpenCount()
Get the number of open nodes or a negative number if this node is closed.
|
boolean |
hasChildren() |
boolean |
isNodeOpen() |
void |
openNode()
This will set this node to be open when it is shown in the viewer.
|
equals, getCOSObject, hashCode
public PDOutlineNode()
public PDOutlineNode(COSDictionary dict)
dict
- The dictionary storage.public void addLast(PDOutlineItem newChild)
newChild
- The node to add.IllegalArgumentException
- if the given node is part of a list (i.e. if it has a previous or a next
sibling)public void addFirst(PDOutlineItem newChild)
newChild
- The node to add.IllegalArgumentException
- if the given node is part of a list (i.e. if it has a previous or a next
sibling)public boolean hasChildren()
public PDOutlineItem getFirstChild()
public PDOutlineItem getLastChild()
public int getOpenCount()
public void openNode()
public void closeNode()
public boolean isNodeOpen()
public Iterable<PDOutlineItem> children()
Iterable
view of the items childrenCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.