public abstract class AbstractTreeTableModel extends java.lang.Object implements TreeTableModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
root
The model root.
|
Constructor and Description |
---|
AbstractTreeTableModel(java.lang.Object root) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l) |
java.lang.Class |
getColumnClass(int column)
Returns the type for column number
column . |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child) |
java.lang.Object |
getRoot() |
boolean |
isCellEditable(java.lang.Object node,
int column)
By default, make the column with the Tree in it the only editable one.
|
boolean |
isLeaf(java.lang.Object node) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l) |
void |
setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
Sets the value for node
node , at column number column . |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnCount, getColumnName, getValueAt
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public java.lang.Class getColumnClass(int column)
TreeTableModel
column
.getColumnClass
in interface TreeTableModel
column
- the column numberpublic boolean isCellEditable(java.lang.Object node, int column)
isCellEditable
in interface TreeTableModel
node
- the nodecolumn
- the column numberpublic void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
TreeTableModel
node
, at column number column
.setValueAt
in interface TreeTableModel
aValue
- the valuenode
- the nodecolumn
- the column numberCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence