Class PGroupMembersTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.portal.app.cc.balanceMonitoring.PAbstractMonitorTableModel
com.portal.app.cc.balanceMonitoring.PGroupMembersTableModel
- All Implemented Interfaces:
Serializable
,TableModel
PGroupMembersTableModel is a model representing a balance monitor Members
details like name First Name ,Last Name, Company and Account Number in each
balance monitor the associated Balance monitor.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Renderer for the first column of a table. -
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
formatHandCursor
(PFCTable table) Shows Hand cursor when the mouse moved on to account number column.protected void
formatTable
(PFCTable table) Customizing the table according to derived class needs.Returns the poid of the account number that was selected.int
Returns the number of columns in the model.getColumnName
(int col) Returns the name of the column atcol
.protected Object
getValueForColumn
(Object element, int columnIndex) Returns the cell value from the passed row data structure atcolumnIndex
.void
Sets data to the model.Methods inherited from class com.portal.app.cc.balanceMonitoring.PAbstractMonitorTableModel
getRowAt, getRowCount, getSelectedData, getTable, getValueAt, informSorterOfModelChange, setData
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
PGroupMembersTableModel
public PGroupMembersTableModel()Constructs anPGroupMembersTableModel
model
-
-
Method Details
-
getValueForColumn
Returns the cell value from the passed row data structure atcolumnIndex
.- Specified by:
getValueForColumn
in classPAbstractMonitorTableModel
- Parameters:
element
- Object the row objectcolumnIndex
- int the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
getColumnName
Returns the name of the column atcol
. This is used to initialize the table's column header name.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
col
- the index of the column- Returns:
- the name of the column
-
getColumnCount
public int getColumnCount()Returns the number of columns in the model. Asize
uses this method to determine how many columns it Should create and display by default.- Returns:
- int the number of columns in the model
-
setData
Sets data to the model. As well resetting the row height of a table for the updated data.- Parameters:
l
- ArrayList the members group
-
formatTable
Customizing the table according to derived class needs.- Overrides:
formatTable
in classPAbstractMonitorTableModel
- Parameters:
table
- JTable Subclasses should override this, but also call super.formatTable(table)
-
formatHandCursor
Shows Hand cursor when the mouse moved on to account number column.- Overrides:
formatHandCursor
in classPAbstractMonitorTableModel
- Parameters:
table
- PFCTable
-
getAccountPoid
Returns the poid of the account number that was selected.getSelectedRow
uses this method to determine the selected row in the table.- Returns:
- Poid the account poid of the member selected
-