01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
05: * (C) 2001, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.gui.swing.tree;
18:
19: /**
20: * Defines the requirements for an object that can be used as a tree node in a
21: * {@link javax.swing.JTree}. This interface add the {@code getUserObject()} to
22: * Swing's interface, which seems to have been forgotten in J2SE.
23: *
24: * @since 2.0
25: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/widgets-swing/src/main/java/org/geotools/gui/swing/tree/TreeNode.java $
26: * @version $Id: TreeNode.java 20883 2006-08-07 13:48:09Z jgarnett $
27: * @author Martin Desruisseaux
28: */
29: public interface TreeNode extends javax.swing.tree.TreeNode {
30: /**
31: * Returns this node's user object.
32: *
33: * @return the Object stored at this node by the user
34: */
35: public abstract Object getUserObject();
36: }
|