com.sibvisions.rad.ui.swing.ext
Class JVxTree.DataPageNode

java.lang.Object
  extended by com.sibvisions.rad.ui.swing.ext.JVxTree.DataPageNode
All Implemented Interfaces:
MutableTreeNode, TreeNode
Enclosing class:
JVxTree

public static class JVxTree.DataPageNode
extends Object
implements MutableTreeNode

DataPageNode implements MutableTreeNode.


Constructor Summary
JVxTree.DataPageNode(JVxTree pTree, IDataBook[] pDataBooks)
          Constructs a new root DataPageNode.
 
Method Summary
 Enumeration children()
          
 boolean equals(Object pObject)
          
 boolean getAllowsChildren()
          
 TreeNode getChildAt(int pChildIndex)
          
 int getChildCount()
          
 IChangeableDataRow getDataRow()
          Gets the current IDataRow.
 int getIndex(TreeNode pNode)
          
 TreeNode getParent()
          
 IDataRow getPrimaryKey(IDataRow pDataRow)
          Gets the primary key part of the given datarow.
 int hashCode()
          
 void insert(MutableTreeNode pChild, int pIndex)
          
 boolean isLeaf()
          
 boolean isValidNode()
          Checks, if this node is still valid.
 void remove(int pIndex)
          
 void remove(MutableTreeNode pNode)
          
 void removeFromParent()
          
 void setParent(MutableTreeNode pNewParent)
          
 void setUserObject(Object pObject)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JVxTree.DataPageNode

public JVxTree.DataPageNode(JVxTree pTree,
                            IDataBook[] pDataBooks)
Constructs a new root DataPageNode.

Parameters:
pTree - the Tree.
pDataBooks - the IDataBook's.
Method Detail

getDataRow

public IChangeableDataRow getDataRow()
Gets the current IDataRow.

Returns:
the current IDataRow.

getPrimaryKey

public IDataRow getPrimaryKey(IDataRow pDataRow)
Gets the primary key part of the given datarow.

Parameters:
pDataRow - the given datarow.
Returns:
the primary key part of the given datarow.

isValidNode

public boolean isValidNode()
Checks, if this node is still valid.

Returns:
if this node is still valid.

getChildAt

public TreeNode getChildAt(int pChildIndex)

Specified by:
getChildAt in interface TreeNode

getChildCount

public int getChildCount()

Specified by:
getChildCount in interface TreeNode

getParent

public TreeNode getParent()

Specified by:
getParent in interface TreeNode

getIndex

public int getIndex(TreeNode pNode)

Specified by:
getIndex in interface TreeNode

getAllowsChildren

public boolean getAllowsChildren()

Specified by:
getAllowsChildren in interface TreeNode

isLeaf

public boolean isLeaf()

Specified by:
isLeaf in interface TreeNode

children

public Enumeration children()

Specified by:
children in interface TreeNode

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

insert

public void insert(MutableTreeNode pChild,
                   int pIndex)

Specified by:
insert in interface MutableTreeNode

remove

public void remove(int pIndex)

Specified by:
remove in interface MutableTreeNode

remove

public void remove(MutableTreeNode pNode)

Specified by:
remove in interface MutableTreeNode

removeFromParent

public void removeFromParent()

Specified by:
removeFromParent in interface MutableTreeNode

setParent

public void setParent(MutableTreeNode pNewParent)

Specified by:
setParent in interface MutableTreeNode

setUserObject

public void setUserObject(Object pObject)

Specified by:
setUserObject in interface MutableTreeNode


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.