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, removeTableModelListenerpublic TableSelectionSummaryTableModel(TableModel pTableModel, ListSelectionModel pSelectionModel)
public int getColumnCount()
public String getColumnName(int pIdx)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic 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 TableModelisCellEditable in class AbstractTableModelisColumnEditable(int)public void setValueAt(Object pVal, int pRow, int pCol)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2023. All rights reserved.