java.lang.Object
javax.swing.table.AbstractTableModel
com.iamsoft.util.ui.swing.TableSelectionSummaryTableModel
- All Implemented Interfaces:
Serializable,TableModel
Summarizes selected rows in specified table. $Modtime: 6/23/07 10:06ap $
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionTableSelectionSummaryTableModel(TableModel pTableModel, ListSelectionModel pSelectionModel) -
Method Summary
Modifier and TypeMethodDescriptionintTwo.getColumnName(int pIdx) Class<?>getRowClass(int pRow) intNumber of columns in underlying table model.getValueAt(int pRow, int pCol) booleanisCellEditable(int pRow, int pCol) True if column is editable or if all cells from underlying table are editable.protected BooleanisColumnEditable(int pIdx) Override this method to forego checking every cell when testing for editability.voidsetValueAt(Object pVal, int pRow, int pCol) Update all selected rows in underlying model.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
TableSelectionSummaryTableModel
-
-
Method Details
-
getColumnCount
public int getColumnCount()Two. -
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowCount
public int getRowCount()Number of columns in underlying table model. -
getValueAt
- Returns:
- Column name if pCol is zero and set of values otherwise.
-
getRowClass
-
isColumnEditable
Override this method to forego checking every cell when testing for editability. -
isCellEditable
public boolean isCellEditable(int pRow, int pCol) True if column is editable or if all cells from underlying table are editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel- See Also:
-
setValueAt
Update all selected rows in underlying model.- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-