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.intgetChildCount(Object node) Gets the child count of the given tree nodegetColumnClass(int column) Implementation for TreeTable model interface.intImplementation 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.booleanisCellEditable(Object node, int column) Implementation for TreeTable model interface.booleanDefault implmentation for method in the TreeModel interface.voidsetValueAt(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, valueForPathChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRootin interfaceTreeModel- Overrides:
getRootin classAbstractTreeTableModel- Returns:
- root of this tree table model
-
getChildCount
Gets the child count of the given tree node- Specified by:
getChildCountin 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:AbstractTreeTableModelDefault implmentation for method in the TreeModel interface.- Specified by:
isLeafin interfaceTreeModel- Overrides:
isLeafin classAbstractTreeTableModel
-
getColumnCount
public int getColumnCount()Implementation of TreeTable model interface- Specified by:
getColumnCountin interfaceTreeTableModel- Returns:
- column count in the table
-
getColumnName
Returns the column name of the given column- Specified by:
getColumnNamein 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:
getColumnClassin interfaceTreeTableModel- Overrides:
getColumnClassin 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:
isCellEditablein interfaceTreeTableModel- Overrides:
isCellEditablein 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:
getValueAtin interfaceTreeTableModel- Parameters:
node-column-- Returns:
-
setValueAt
Sets the value for node node, at row number row and column number column- Specified by:
setValueAtin interfaceTreeTableModel- Overrides:
setValueAtin classAbstractTreeTableModel- Parameters:
aValue-node-row-column-
-