public class TableSelectionSummaryTableModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
TableSelectionSummaryTableModel(TableModel pTableModel,
ListSelectionModel pSelectionModel) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Two.
|
String |
getColumnName(int pIdx) |
Class<?> |
getRowClass(int pRow) |
int |
getRowCount()
Number of columns in underlying table model.
|
Object |
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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public TableSelectionSummaryTableModel(TableModel pTableModel, ListSelectionModel pSelectionModel)
public int getColumnCount()
public String getColumnName(int pIdx)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getRowCount()
public Object getValueAt(int pRow, int pCol)
public Class<?> getRowClass(int pRow)
protected Boolean isColumnEditable(int pIdx)
public boolean isCellEditable(int pRow, int pCol)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
isColumnEditable(int)
public void setValueAt(Object pVal, int pRow, int pCol)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
Copyright © 2023. All rights reserved.