The TreeWalkerviewView is an interactive UI sample that displays the DOM tree. It show the progress of the tree traversal by moving the selection within the DOM tree. Buttons act as a control panel, allowing the user to interactively traverse the tree, remove nodes, add nodes, and view the results immediately in the tree. The TreeWalkerviewView uses an example filter, NameNodeFilter, that can be controlled from the UI and a DOMTreeFull class that displays the full DOM tree with all the nodes. The controls are called through to to the corresponding TreeWalker function. If you are familiar with the DOM Level 2 Traversal specification, these controls are fairly easy to understand Document Order Traversal Group:
Walk Group: Parent, Previous Sibling, Next Sibling, First Child, Last Child - call the corresponding function in TreeWalker and show the result as a selected Node. Selected Node Group:
Filter Settings Group:
java dom.traversal.TreeWalkerView <fileName>
|