org.basex.gui.layout
Class TreeLeaf

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.basex.gui.layout.TreeNode
          extended by org.basex.gui.layout.TreeLeaf
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.event.TreeWillExpandListener, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public final class TreeLeaf
extends TreeNode

JTree node which represents a leaf (which represents either a raw file or a document).

Author:
BaseX Team 2005-12, BSD License, Lukas Kircher
See Also:
Serialized Form

Field Summary
 boolean abbr
          This leaf is a dummy node displaying that node listing is abbreviated.
 boolean raw
          Represents raw file (true) or document (false).
 
Fields inherited from class org.basex.gui.layout.TreeNode
name
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
TreeLeaf(byte[] nm, byte[] pth, boolean rw, boolean ab, BaseXTree bxt, Data d)
          Constructor.
 
Method Summary
 boolean isLeaf()
           
 
Methods inherited from class org.basex.gui.layout.TreeNode
path, preparePath, toString, treeWillCollapse, treeWillExpand
 
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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

raw

public final boolean raw
Represents raw file (true) or document (false).


abbr

public final boolean abbr
This leaf is a dummy node displaying that node listing is abbreviated.

Constructor Detail

TreeLeaf

public TreeLeaf(byte[] nm,
                byte[] pth,
                boolean rw,
                boolean ab,
                BaseXTree bxt,
                Data d)
Constructor.

Parameters:
nm - name of content node
pth - node path
rw - represented node is raw file
ab - abbreviated node listing
bxt - tree reference
d - data reference
Method Detail

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode