public class PResourceTableModel extends PAbstractMonitorTableModel
listenerList
Constructor and Description |
---|
PResourceTableModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
formatTable(PFCTable table)
Customizing the table
|
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int col)
Returns the name of the column at
col . |
protected Object |
getValueForColumn(Object element,
int columnIndex)
Returns the cell value from the passed row data structure
at
columnIndex . |
boolean |
isCellEditable(int row,
int col)
Returns
true only for the credit limit and the credit floor column. |
void |
setData(ArrayList l)
Sets the data to the model.
|
void |
setValueAt(Object value,
int row,
int column)
This method updates the balance monitor object with the credit limit and the credit floor
|
formatHandCursor, getRowAt, getRowCount, getSelectedData, getTable, getValueAt, informSorterOfModelChange, setData
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
protected Object getValueForColumn(Object element, int columnIndex)
columnIndex
.getValueForColumn
in class PAbstractMonitorTableModel
e
- Object the row objectcolumnIndex
- int the column whose value is to be queriedpublic String getColumnName(int col)
col
.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
col
- intpublic int getColumnCount()
public void setData(ArrayList l)
l
- ArrayListprotected void formatTable(PFCTable table)
formatTable
in class PAbstractMonitorTableModel
table
- PFCTablepublic boolean isCellEditable(int row, int col)
true
only for the credit limit and the credit floor column.isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
row
- intcol
- intpublic void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
value
- Objectrow
- intcolumn
- intCopyright © 2003, 2023, Oracle and/or its affiliates.