KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > tree > TreeModel


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: TreeModel.java,v $
11    Revision 1.4 2003/12/14 09:13:39 bobintetley
12    Added CVS log to source headers
13
14 */

15
16 package swingwtx.swing.tree;
17
18 import swingwtx.swing.event.*;
19
20 public interface TreeModel
21 {
22
23     public Object JavaDoc getRoot();
24     public Object JavaDoc getChild(Object JavaDoc parent, int index);
25     public int getChildCount(Object JavaDoc parent);
26     public boolean isLeaf(Object JavaDoc node);
27     public void valueForPathChanged(TreePath path, Object JavaDoc newValue);
28     public int getIndexOfChild(Object JavaDoc parent, Object JavaDoc child);
29     void addTreeModelListener(TreeModelListener l);
30     void removeTreeModelListener(TreeModelListener l);
31
32 }
33
34
Popular Tags