Interface TreeTableModel
-
- All Superinterfaces:
javax.swing.tree.TreeModel
- All Known Implementing Classes:
AbstractTreeTableModel
,TreeMapTreeTableModel
public interface TreeTableModel extends javax.swing.tree.TreeModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int column)
Returns the type (class) of a column.int
getColumnCount()
Returns the number of available columns.java.lang.String
getColumnName(int column)
Returns the column name.java.lang.Object
getValueAt(java.lang.Object node, int column)
Returns the value of a node in a column.boolean
isCellEditable(java.lang.Object node, int column)
Check if a cell of a node in one column is editable.void
setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
Sets a value for a node in one column.
-
-
-
Method Detail
-
getColumnCount
int getColumnCount()
Returns the number of available columns.- Returns:
- Number of Columns
-
getColumnName
java.lang.String getColumnName(int column)
Returns the column name.- Parameters:
column
- Column number- Returns:
- Column name
-
getColumnClass
java.lang.Class<?> getColumnClass(int column)
Returns the type (class) of a column.- Parameters:
column
- Column number- Returns:
- Class
-
getValueAt
java.lang.Object getValueAt(java.lang.Object node, int column)
Returns the value of a node in a column.- Parameters:
node
- Nodecolumn
- Column number- Returns:
- Value of the node in the column
-
isCellEditable
boolean isCellEditable(java.lang.Object node, int column)
Check if a cell of a node in one column is editable.- Parameters:
node
- Nodecolumn
- Column number- Returns:
- true/false
-
setValueAt
void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
Sets a value for a node in one column.- Parameters:
aValue
- New valuenode
- Nodecolumn
- Column number
-
-