EchoPoint
1.0

echopoint
Class Tree.TreeRowMapper

java.lang.Object
  extended byechopoint.Tree.TreeRowMapper
All Implemented Interfaces:
RowMapper, java.io.Serializable
Enclosing class:
Tree

protected class Tree.TreeRowMapper
extends java.lang.Object
implements java.io.Serializable, RowMapper

Handles the RowMapper interface for the tree

See Also:
Serialized Form

Constructor Summary
protected Tree.TreeRowMapper()
           
 
Method Summary
 int getRowForPath(TreePath path)
          Returns the row that the TreePath path is being displayed at.
 int[] getRowsForPaths(TreePath[] paths)
          Returns the rows that the TreePath instances in path are being displayed at.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree.TreeRowMapper

protected Tree.TreeRowMapper()
Method Detail

getRowForPath

public int getRowForPath(TreePath path)
Returns the row that the TreePath path is being displayed at. If the TreePath in path is not valid it will be set to -1.


getRowsForPaths

public int[] getRowsForPaths(TreePath[] paths)
Returns the rows that the TreePath instances in path are being displayed at. The receiver should return an array of the same length as that passed in, and if one of the TreePaths in path is not valid its entry in the array should be set to -1.

Specified by:
getRowsForPaths in interface RowMapper

EchoPoint
1.0