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 TypeMethodDescriptionint
Two.getColumnName
(int pIdx) Class<?>
getRowClass
(int pRow) int
Number of columns in underlying table model.getValueAt
(int pRow, int pCol) boolean
isCellEditable
(int pRow, int pCol) True if column is editable or if all cells from underlying table are editable.protected Boolean
isColumnEditable
(int pIdx) Override this method to forego checking every cell when testing for editability.void
setValueAt
(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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- See Also:
-
setValueAt
Update all selected rows in underlying model.- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-