public class BalanceGroupsModel extends DefaultTreeModel implements TreeTableModel
asksAllowsChildren, listenerList, root| Constructor and Description |
|---|
BalanceGroupsModel(BalanceGroupsNode root) |
BalanceGroupsModel(BalanceGroupsNode root,
long parentAccNo) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getChild(Object node,
int i)
Returns the child of
node at index i. |
int |
getChildCount(Object node)
Returns the number of children of
node. |
protected Object[] |
getChildren(Object node)
returns array of children.
|
Class |
getColumnClass(int column)
Returns the class for the particular column
|
int |
getColumnCount()
Returns the number of columns.
|
String |
getColumnName(int column)
Returns the name for a particular column.
|
Object |
getValueAt(Object node,
int column)
Returns the value of the particular column.
|
boolean |
isCellEditable(int row,
int col) |
boolean |
isCellEditable(Object node,
int column)
Returns true if there is a setter method name for column
column. |
boolean |
isLeaf(Object node)
Returns true if the passed in object represents a leaf
|
void |
setValueAt(Object aValue,
Object node,
int column)
Sets the value for 'node' at 'column'.
|
void |
setValueAt(Object value,
Object node,
int row,
int column)
Sets the value for node
node,
at row number row. |
void |
valueForPathChanged(TreePath path,
Object newValue)
Messaged when user altered the item identified by 'path' to 'newValue'
|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTreeModelListener, getIndexOfChild, getRoot, removeTreeModelListenerpublic BalanceGroupsModel(BalanceGroupsNode root)
BalanceGroupsNode - rootpublic BalanceGroupsModel(BalanceGroupsNode root, long parentAccNo)
public Object getChild(Object node, int i)
node at index i.getChild in interface TreeModelgetChild in class DefaultTreeModelpublic int getChildCount(Object node)
node.getChildCount in interface TreeModelgetChildCount in class DefaultTreeModelpublic boolean isLeaf(Object node)
isLeaf in interface TreeModelisLeaf in class DefaultTreeModelpublic int getColumnCount()
getColumnCount in interface TreeTableModelpublic String getColumnName(int column)
getColumnName in interface TreeTableModelpublic Class getColumnClass(int column)
getColumnClass in interface TreeTableModelpublic Object getValueAt(Object node, int column)
getValueAt in interface TreeTableModelpublic boolean isCellEditable(int row,
int col)
public void setValueAt(Object aValue, Object node, int column)
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelvalueForPathChanged in class DefaultTreeModelpublic boolean isCellEditable(Object node, int column)
column. This is set in the constructor.isCellEditable in interface TreeTableModelpublic void setValueAt(Object value, Object node, int row, int column)
TreeTableModelnode,
at row number row.
at column number column.setValueAt in interface TreeTableModelCopyright © 2003, 2023, Oracle and/or its affiliates.