public class PBillinfoDetailsModel extends AbstractTreeTableModel implements TreeTableModel
Modifier and Type | Field and Description |
---|---|
protected String[] |
cNames |
protected Class[] |
cTypes |
listenerList
Constructor and Description |
---|
PBillinfoDetailsModel(TreeNode root)
Constructor for PBillinfoDetailsModel.
|
Modifier and Type | Method and Description |
---|---|
Object |
getChild(Object node,
int i)
Gets the child of the given node at given index.
|
int |
getChildCount(Object node)
Gets the child count of the given tree node
|
Class |
getColumnClass(int column)
Implementation for TreeTable model interface.
|
int |
getColumnCount()
Implementation of TreeTable model interface
|
String |
getColumnName(int column)
Returns the column name of the given column
|
Object |
getRoot()
Gets the root of this tree table model
|
Object |
getValueAt(Object node,
int column)
Returns the value to be displayed for node node, at column number column.
|
boolean |
isCellEditable(Object node,
int column)
Implementation for TreeTable model interface.
|
boolean |
isLeaf(Object node)
Default implmentation for method in the TreeModel interface.
|
void |
setValueAt(Object aValue,
Object node,
int row,
int column)
Sets the value for node node, at row number row and column number column
|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, removeTreeModelListener, valueForPathChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTreeModelListener, getIndexOfChild, removeTreeModelListener, valueForPathChanged
public PBillinfoDetailsModel(TreeNode root)
root
- root of the tree nodepublic Object getRoot()
getRoot
in interface TreeModel
getRoot
in class AbstractTreeTableModel
public int getChildCount(Object node)
getChildCount
in interface TreeModel
node
- tree node whose childcount is neededpublic Object getChild(Object node, int i)
public boolean isLeaf(Object node)
AbstractTreeTableModel
isLeaf
in interface TreeModel
isLeaf
in class AbstractTreeTableModel
public int getColumnCount()
getColumnCount
in interface TreeTableModel
public String getColumnName(int column)
getColumnName
in interface TreeTableModel
column
- numberpublic Class getColumnClass(int column)
getColumnClass
in interface TreeTableModel
getColumnClass
in class AbstractTreeTableModel
public boolean isCellEditable(Object node, int column)
isCellEditable
in interface TreeTableModel
isCellEditable
in class AbstractTreeTableModel
node
- node of the treecolumn
- coulmn numberpublic Object getValueAt(Object node, int column)
getValueAt
in interface TreeTableModel
node
- column
- public void setValueAt(Object aValue, Object node, int row, int column)
setValueAt
in interface TreeTableModel
setValueAt
in class AbstractTreeTableModel
aValue
- node
- row
- column
- Copyright © 2003, 2023, Oracle and/or its affiliates.