Package com.portal.app.cc
Class PBillinfoDetailsModel
java.lang.Object
com.portal.pfc.ui.AbstractTreeTableModel
com.portal.app.cc.PBillinfoDetailsModel
- All Implemented Interfaces:
TreeTableModel
,TreeModel
TreeTableModel for BillInfo table.
-
Field Summary
FieldsFields inherited from class com.portal.pfc.ui.AbstractTreeTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the child of the given node at given index.int
getChildCount
(Object node) Gets the child count of the given tree nodegetColumnClass
(int column) Implementation for TreeTable model interface.int
Implementation of TreeTable model interfacegetColumnName
(int column) Returns the column name of the given columngetRoot()
Gets the root of this tree table modelgetValueAt
(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
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 columnMethods inherited from class com.portal.pfc.ui.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, removeTreeModelListener, valueForPathChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getIndexOfChild, removeTreeModelListener, valueForPathChanged
-
Field Details
-
cNames
-
cTypes
-
-
Constructor Details
-
PBillinfoDetailsModel
Constructor for PBillinfoDetailsModel.- Parameters:
root
- root of the tree node
-
-
Method Details
-
getRoot
Gets the root of this tree table model- Specified by:
getRoot
in interfaceTreeModel
- Overrides:
getRoot
in classAbstractTreeTableModel
- Returns:
- root of this tree table model
-
getChildCount
Gets the child count of the given tree node- Specified by:
getChildCount
in interfaceTreeModel
- Parameters:
node
- tree node whose childcount is needed- Returns:
- number of children of given node
-
getChild
Gets the child of the given node at given index. -
isLeaf
Description copied from class:AbstractTreeTableModel
Default implmentation for method in the TreeModel interface.- Specified by:
isLeaf
in interfaceTreeModel
- Overrides:
isLeaf
in classAbstractTreeTableModel
-
getColumnCount
public int getColumnCount()Implementation of TreeTable model interface- Specified by:
getColumnCount
in interfaceTreeTableModel
- Returns:
- column count in the table
-
getColumnName
Returns the column name of the given column- Specified by:
getColumnName
in interfaceTreeTableModel
- Parameters:
column
- number- Returns:
- the column name of the given column
-
getColumnClass
Implementation for TreeTable model interface. Returns the type for column number- Specified by:
getColumnClass
in interfaceTreeTableModel
- Overrides:
getColumnClass
in classAbstractTreeTableModel
- Returns:
- the type for column number
-
isCellEditable
Implementation for TreeTable model interface. Indicates whether the value for node at column number is editable.- Specified by:
isCellEditable
in interfaceTreeTableModel
- Overrides:
isCellEditable
in classAbstractTreeTableModel
- Parameters:
node
- node of the treecolumn
- coulmn number- Returns:
- boolean indicating whether the value for node at column number is editable.
-
getValueAt
Returns the value to be displayed for node node, at column number column.- Specified by:
getValueAt
in interfaceTreeTableModel
- Parameters:
node
-column
-- Returns:
-
setValueAt
Sets the value for node node, at row number row and column number column- Specified by:
setValueAt
in interfaceTreeTableModel
- Overrides:
setValueAt
in classAbstractTreeTableModel
- Parameters:
aValue
-node
-row
-column
-
-