View Javadoc
1   package edu.jiangxin.apktoolbox.swing.treetable;
2   
3   import javax.swing.tree.TreeModel;
4   
5   public interface MyTreeTableModel extends TreeModel {
6   
7   
8       /**
9        * Returns the number of available columns.
10       * @return Number of Columns
11       */
12      public int getColumnCount();
13  
14      /**
15       * Returns the column name.
16       * @param column Column number
17       * @return Column name
18       */
19      public String getColumnName(int column);
20  
21  
22      /**
23       * Returns the type (class) of a column.
24       * @param column Column number
25       * @return Class
26       */
27      public Class<?> getColumnClass(int column);
28  
29      /**
30       * Returns the value of a node in a column.
31       * @param node Node
32       * @param column Column number
33       * @return Value of the node in the column
34       */
35      public Object getValueAt(Object node, int column);
36  
37  
38      /**
39       * Check if a cell of a node in one column is editable.
40       * @param node Node
41       * @param column Column number
42       * @return true/false
43       */
44      public boolean isCellEditable(Object node, int column);
45  
46      /**
47       * Sets a value for a node in one column.
48       * @param aValue New value
49       * @param node Node
50       * @param column Column number
51       */
52      public void setValueAt(Object aValue, Object node, int column);
53  }