Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.viewer.xml
Class NodeTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.bounce.viewer.xml.NodeTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
CommentTreeNode, ElementEndTreeNode, ElementTreeNode, RootTreeNode

public abstract class NodeTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

The node for the XML tree, containing an XML element.

Author:
Edwin Dankert
See Also:
Serialized Form

Field Summary
protected static int MAX_LINE_LENGTH
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
NodeTreeNode(org.w3c.dom.Node node)
          Constructs the node for the XML element.
 
Method Summary
(package private) abstract  void format()
           
(package private)  Line getCurrent()
           
(package private)  java.util.List<Line> getLines()
          Returns the formatted lines for this element.
 org.w3c.dom.Node getNode()
          Constructs the node for the XML element.
(package private)  void setCurrent(Line current)
           
(package private)  void update()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LINE_LENGTH

protected static final int MAX_LINE_LENGTH
See Also:
Constant Field Values
Constructor Detail

NodeTreeNode

NodeTreeNode(org.w3c.dom.Node node)
Constructs the node for the XML element.

Parameters:
element - the XML element.
Method Detail

update

void update()

getLines

java.util.List<Line> getLines()
Returns the formatted lines for this element.

Returns:
the formatted Lines.

getNode

public org.w3c.dom.Node getNode()
Constructs the node for the XML element.

Parameters:
element - the XML element.

format

abstract void format()

setCurrent

void setCurrent(Line current)

getCurrent

Line getCurrent()

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.