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 Columnintreturns 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 cellbooleanisCellEditable(int row, int col) This determines whether cell is editable.voidsetValueAt(Object value, int row, int col) sets the value for the table cell at the specified row and columnprotected voidsortOnColumn(int sortColumn) This will sort the object array on the column indexsortColumnand 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, sortOnColumnOfRangeMethods 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:
getValueForColumnin classPAbstractSortingTableModel- Parameters:
o- ObjectcolIndex- int- Returns:
- Object
-
getColumnClass
gets the Class for the Column- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col) This determines whether cell is editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
sortOnColumn
protected void sortOnColumn(int sortColumn) Description copied from class:PAbstractSortingTableModelThis will sort the object array on the column indexsortColumnand fire the model to update the view. Subclasses should override this, but also call super.sortOnColumn(sortColumn) for simple sorring- Overrides:
sortOnColumnin 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:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getColumnName
returns the column Name of the specified- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Parameters:
col- int- Returns:
- String
-
getColumnCount
public int getColumnCount()returns the column Count of the model- Returns:
- int
-