Class TreeMapTreeTableModel
- java.lang.Object
-
- com.macrofocus.high_d.treetable.swing.AbstractTreeTableModel
-
- com.macrofocus.high_d.treetable.swing.TreeMapTreeTableModel
-
- All Implemented Interfaces:
TreeTableModel
,javax.swing.tree.TreeModel
public class TreeMapTreeTableModel extends AbstractTreeTableModel
Created by luc on 28/05/15.
-
-
Field Summary
-
Fields inherited from class com.macrofocus.high_d.treetable.swing.AbstractTreeTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TreeMapTreeTableModel(com.macrofocus.treemap.DefaultTreeMapModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getChild(java.lang.Object p, int index)
int
getChildCount(java.lang.Object p)
java.lang.Class<?>
getColumnClass(int columnIndex)
Returns the type (class) of a column.int
getColumnCount()
Returns the number of available columns.java.lang.String
getColumnName(int columnIndex)
Returns the column name.java.lang.Object
getRoot()
java.lang.Object
getValueAt(java.lang.Object n, int columnIndex)
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.-
Methods inherited from class com.macrofocus.high_d.treetable.swing.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, isLeaf, removeTreeModelListener, valueForPathChanged
-
-
-
-
Method Detail
-
getRoot
public java.lang.Object getRoot()
-
getColumnCount
public int getColumnCount()
Description copied from interface:TreeTableModel
Returns the number of available columns.- Returns:
- Number of Columns
-
getColumnName
public java.lang.String getColumnName(int columnIndex)
Description copied from interface:TreeTableModel
Returns the column name.- Parameters:
columnIndex
- Column number- Returns:
- Column name
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
Description copied from interface:TreeTableModel
Returns the type (class) of a column.- Parameters:
columnIndex
- Column number- Returns:
- Class
-
getValueAt
public java.lang.Object getValueAt(java.lang.Object n, int columnIndex)
Description copied from interface:TreeTableModel
Returns the value of a node in a column.- Parameters:
n
- NodecolumnIndex
- Column number- Returns:
- Value of the node in the column
-
isCellEditable
public boolean isCellEditable(java.lang.Object node, int column)
Description copied from interface:TreeTableModel
Check if a cell of a node in one column is editable.- Parameters:
node
- Nodecolumn
- Column number- Returns:
- true/false
-
setValueAt
public void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
Description copied from interface:TreeTableModel
Sets a value for a node in one column.- Parameters:
aValue
- New valuenode
- Nodecolumn
- Column number
-
getChild
public java.lang.Object getChild(java.lang.Object p, int index)
-
getChildCount
public int getChildCount(java.lang.Object p)
-
-