org.openbp.swing.components.treetable
Interface TreeTableNode

All Superinterfaces:
javax.swing.tree.TreeNode
All Known Implementing Classes:
DefaultTreeTableNode

public interface TreeTableNode
extends javax.swing.tree.TreeNode

The TreeTableNode is an extension of the javax.swing.tree.TreeNode, and is specifically used by the tree contained in the JTreeTable It provides some extra methods required by the JTreeTable to determine the variable heights of components that may be contained in a cell. The setLastHeight(int) and getLastHeight() are exclusively used by the JTreeTable

Author:
Erich Lauterbach

Method Summary
 java.lang.Object getColumnValue(int columnIndex)
          Returns the column value for specified column index.
 int getLastHeight()
          Gets the height used last by the JTreeTable for this node.
 java.lang.String getNodeText()
          Gets the text field to be displayed for the node.
 java.awt.Dimension getPreferredSize()
          Gets the preferred height of the node in the tree.
 void setLastHeight(int height)
          Sets the current height being used by the JTreeTable for later use.
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

getNodeText

java.lang.String getNodeText()
Gets the text field to be displayed for the node.

Returns:
The string value of the text

getPreferredSize

java.awt.Dimension getPreferredSize()
Gets the preferred height of the node in the tree.

Returns:
The height as an int in pixels

getColumnValue

java.lang.Object getColumnValue(int columnIndex)
Returns the column value for specified column index.

Parameters:
columnIndex - The of the column object to be returned
Returns:
The column value as an object

getLastHeight

int getLastHeight()
Gets the height used last by the JTreeTable for this node.

Returns:
The last height used

setLastHeight

void setLastHeight(int height)
Sets the current height being used by the JTreeTable for later use.

Parameters:
height - The height being used


Copyright © 2011. All Rights Reserved.