KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > tree > RowMapper


1 /*
2  * @(#)RowMapper.java 1.13 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing.tree;
9
10 import javax.swing.tree.TreePath JavaDoc;
11
12 /**
13  * Defines the requirements for an object that translates paths in
14  * the tree into display rows.
15  *
16  * @version 1.13 12/19/03
17  * @author Scott Violet
18  */

19 public interface RowMapper
20 {
21     /**
22      * Returns the rows that the TreePath instances in <code>path</code>
23      * are being displayed at. The receiver should return an array of
24      * the same length as that passed in, and if one of the TreePaths
25      * in <code>path</code> is not valid its entry in the array should
26      * be set to -1.
27      */

28     int[] getRowsForPaths(TreePath JavaDoc[] path);
29 }
30
Popular Tags