com.icesoft.pdf.ri.common
Class OutlineItemTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.icesoft.pdf.ri.common.OutlineItemTreeNode
- All Implemented Interfaces:
- Cloneable, MutableTreeNode, Serializable, TreeNode
- public class OutlineItemTreeNode
- extends DefaultMutableTreeNode
A PDF document may optionally display a document outline on the screen,
allowing the user to navigate interactively from one part of the document to
another. The outline consists of a tree-structured hierarchy of outline
items (sometimes called bookmarks), which serve as a “visual table of
contents” to display the document’s structure to the user. The user can
interactively open and close individual items by clicking them with the
mouse. When an item is open, its immediate children in the hierarchy become
visible on the screen; each child may in turn be open or closed, selectively
revealing or hiding further parts of the hierarchy. When an item is closed,
all of its descendants in the hierarchy are hidden. Clicking the text of any
visible item with the mouse activates the item, causing the viewer
application to jump to a destination or trigger an action associated with
the item.
An OutlineItemTreeNode object represents the bookmarks or leaves which makes up
the actual Outline JTree.
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
OutlineItemTreeNode
public OutlineItemTreeNode(OutlineItem item)
- Creates a new instance of an OutlineItemTreeNode
- Parameters:
item - Contains PDF Outline item data
getOutlineItem
public OutlineItem getOutlineItem()
recursivelyClearOutlineItems
public void recursivelyClearOutlineItems()
getChildCount
public int getChildCount()