org.openbp.swing.components.tree
Class TreeExpander.TreeRow

java.lang.Object
  extended by org.openbp.swing.components.tree.TreeExpander.TreeRow
Enclosing class:
TreeExpander

public static class TreeExpander.TreeRow
extends java.lang.Object

Wrapper for nodes that can be expanded.

Author:
Baumgartner Michael

Constructor Summary
TreeExpander.TreeRow()
           
 
Method Summary
 void addRow(TreeExpander.TreeRow row)
          Add an existing expander.
 void addRow(javax.swing.tree.TreeNode node)
          Add a new row to the expander.
 boolean containsNode(javax.swing.tree.TreeNode node)
          Check if the expander contains a node.
 javax.swing.tree.TreeNode[] getNodes()
          Get the nodes that can be expanded.
 int getRowSum()
          Get the number of rows that will be display, if the nodes are expanded.
 boolean hasNodes(javax.swing.tree.TreeNode[] nodes)
          Check if the expander contains a list of nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeExpander.TreeRow

public TreeExpander.TreeRow()
Method Detail

addRow

public void addRow(javax.swing.tree.TreeNode node)
Add a new row to the expander.

Parameters:
node - The node to add

addRow

public void addRow(TreeExpander.TreeRow row)
Add an existing expander.

Parameters:
row - The existing expander

getNodes

public javax.swing.tree.TreeNode[] getNodes()
Get the nodes that can be expanded.

Returns:
Array of TreeNode objects

getRowSum

public int getRowSum()
Get the number of rows that will be display, if the nodes are expanded.

Returns:
number of rows

containsNode

public boolean containsNode(javax.swing.tree.TreeNode node)
Check if the expander contains a node.

Parameters:
node - The node to check for
Returns:
true if the expander contains the node otherwise false

hasNodes

public boolean hasNodes(javax.swing.tree.TreeNode[] nodes)
Check if the expander contains a list of nodes

Parameters:
nodes - The nodes to check for
Returns:
true if all nodes are contained in the expander otherwise false


Copyright © 2011. All Rights Reserved.