01: package org.swingml.treetablebrowser.ext;
02:
03: import java.util.*;
04: import javax.swing.tree.*;
05:
06: public interface TreeTableBrowserModelInterface extends TreeModel {
07: void applyFilters();
08:
09: void collapse(String s);
10:
11: void expand(String s);
12:
13: TreeTableBrowser getBrowser();
14:
15: /**
16: * Returns the type for column number <code>column</code>.
17: */
18: Class getColumnClass(int column);
19:
20: /**
21: * Returns the number of availible columns.
22: */
23: int getColumnCount();
24:
25: /**
26: * Returns the name for column number <code>column</code>.
27: */
28: String getColumnName(int column);
29:
30: List getExpanded();
31:
32: /**
33: * Returns the value to be displayed for node <code>node</code>,
34: * at column number <code>column</code>.
35: */
36: Object getValueAt(Object node, int column);
37:
38: /**
39: * Indicates whether the the value for node <code>node</code>,
40: * at column number <code>column</code> is editable.
41: */
42: boolean isCellEditable(Object node, int column);
43:
44: void setBrowser(TreeTableBrowser browser);
45:
46: /**
47: * Sets the value for node <code>node</code>,
48: * at column number <code>column</code>.
49: */
50: void setValueAt(Object aValue, Object node, int column);
51:
52: void sort();
53: }
|