Package com.portal.app.cc.tailormadeplan
Class CustomizeResourcesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.portal.app.cc.sharing.PAbstractSortingTableModel
com.portal.app.cc.tailormadeplan.CustomizeResourcesTableModel
- All Implemented Interfaces:
Serializable
,TableModel
This class serves as a TableModel for the CustomizeResources Table in the Rate screen
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass
(int columnNo) gets the Class for the Columnint
returns the column Count of the modelgetColumnName
(int col) returns the column Name of the specifiedgetValueForColumn
(Object o, int colIndex) getValueForColumn returns the Value for the cellboolean
isCellEditable
(int row, int col) This determines whether cell is editable.void
setValueAt
(Object value, int row, int col) sets the value for the table cell at the specified row and columnprotected void
sortOnColumn
(int sortColumn) This will sort the object array on the column indexsortColumn
and fire the model to update the view.Methods inherited from class com.portal.app.cc.sharing.PAbstractSortingTableModel
formatTable, getLastClickedColumn, getRowAt, getRowCount, getSelectedData, getSelectedDataArray, getTable, getValueAt, setAscending, setData, sortOnColumnOfRange
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
CustomizeResourcesTableModel
public CustomizeResourcesTableModel()constructor for the tabelModel
-
-
Method Details
-
getValueForColumn
getValueForColumn returns the Value for the cell- Specified by:
getValueForColumn
in classPAbstractSortingTableModel
- Parameters:
o
- ObjectcolIndex
- int- Returns:
- Object
-
getColumnClass
gets the Class for the Column- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col) This determines whether cell is editable.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
sortOnColumn
protected void sortOnColumn(int sortColumn) Description copied from class:PAbstractSortingTableModel
This will sort the object array on the column indexsortColumn
and fire the model to update the view. Subclasses should override this, but also call super.sortOnColumn(sortColumn) for simple sorring- Overrides:
sortOnColumn
in classPAbstractSortingTableModel
- Parameters:
sortColumn
- int the column index on which sorting should happen.
-
setValueAt
sets the value for the table cell at the specified row and column- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getColumnName
returns the column Name of the specified- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
col
- int- Returns:
- String
-
getColumnCount
public int getColumnCount()returns the column Count of the model- Returns:
- int
-