public class VarModel extends AbstractTreeTableModel implements TreeTableModel
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String[] |
cNames |
protected static java.lang.Class<?>[] |
cTypes |
root
Constructor and Description |
---|
VarModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getChild(java.lang.Object node,
int i) |
int |
getChildCount(java.lang.Object node) |
java.lang.Class<?> |
getColumnClass(int column)
Returns the type for column number
column . |
int |
getColumnCount()
Returns the number ofs available columns.
|
java.lang.String |
getColumnName(int column)
Returns the name for column number
column . |
VarNode |
getRoot() |
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Returns the value to be displayed for node
node , at column number column . |
addTreeModelListener, getIndexOfChild, isCellEditable, isLeaf, removeTreeModelListener, setValueAt, valueForPathChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCellEditable, setValueAt
protected static java.lang.String[] cNames
protected static java.lang.Class<?>[] cTypes
public VarNode getRoot()
getRoot
in interface javax.swing.tree.TreeModel
getRoot
in class AbstractTreeTableModel
public int getChildCount(java.lang.Object node)
getChildCount
in interface javax.swing.tree.TreeModel
public java.lang.Object getChild(java.lang.Object node, int i)
getChild
in interface javax.swing.tree.TreeModel
public int getColumnCount()
TreeTableModel
getColumnCount
in interface TreeTableModel
public java.lang.String getColumnName(int column)
TreeTableModel
column
.getColumnName
in interface TreeTableModel
column
- the column numberpublic java.lang.Class<?> getColumnClass(int column)
TreeTableModel
column
.getColumnClass
in interface TreeTableModel
getColumnClass
in class AbstractTreeTableModel
column
- the column numberpublic java.lang.Object getValueAt(java.lang.Object node, int column)
TreeTableModel
node
, at column number column
.getValueAt
in interface TreeTableModel
node
- the nodecolumn
- the column numberCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence