public class TableSelectionModel extends ListTableMapperBase
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TableSelectionModel.Mapping
Small helper class to describe the attribut/column mapping. 
 | 
ListTableMapperBase.IdentityIndexConvertermSelectionInList| Constructor and Description | 
|---|
TableSelectionModel(JTable pTable,
                   SelectionInList pValueModel,
                   Class pListEntry,
                   List<TableSelectionModel.Mapping> pMapping)
Create a new adaption object between a JTable and a SelectionInList value model. 
 | 
TableSelectionModel(JTable pTable,
                   SelectionInList pValueModel,
                   Class pListEntry,
                   List<TableSelectionModel.Mapping> pMapping,
                   boolean pSortable)
Create a new adaption object between a JTable and a SelectionInList value model. 
 | 
TableSelectionModel(JTable pTable,
                   SelectionInList pValueModel,
                   Class pListEntry,
                   List<TableSelectionModel.Mapping> pMapping,
                   boolean pSortable,
                   TableFilterPlugin pTableFilterPlugin)
Create a new adaption object between a JTable and a SelectionInList value model. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Class | 
getColumnClass(int pColumnIndex)  | 
int | 
getColumnCount()  | 
String | 
getColumnName(int pColumnIndex)  | 
TableFilterPlugin | 
getTableFilterPlugin()
Getter for TableFilterPlugin 
 | 
Object | 
getValueAt(int pRowIndex,
          int pColumnIndex)  | 
boolean | 
isCellEditable(int pRowIndex,
              int pColumnIndex)  | 
void | 
setValueAt(Object pValue,
          int pRowIndex,
          int pColumnIndex)  | 
addTableModelListener, fireTableChanged, getRowCount, init, removeTableModelListener, setIndexConverter, valueChanged, vmDataChanged, vmSelectionChangedpublic TableSelectionModel(JTable pTable, SelectionInList pValueModel, Class pListEntry, List<TableSelectionModel.Mapping> pMapping)
pTable - the table for which we provide TableModel and ListSelectionModel behaviourpValueModel - the value model that drives the table (data, selection)
                    and gets updated by the table (selection only)pListEntry - the class of a list entry in the value modelpMapping - non-null List containing Mapping objectsIllegalArgumentException - if a parameter is boguspublic TableSelectionModel(JTable pTable, SelectionInList pValueModel, Class pListEntry, List<TableSelectionModel.Mapping> pMapping, boolean pSortable)
pTable - the table for which we provide TableModel and ListSelectionModel behaviourpValueModel - the value model that drives the table (data, selection)
                    and gets updated by the table (selection only)pListEntry - the class of a list entry in the value modelpMapping - non-null List containing Mapping objectspSortable - true if table is sortableIllegalArgumentException - if a parameter is boguspublic TableSelectionModel(JTable pTable, SelectionInList pValueModel, Class pListEntry, List<TableSelectionModel.Mapping> pMapping, boolean pSortable, TableFilterPlugin pTableFilterPlugin)
pTable - the table for which we provide TableModel and ListSelectionModel behaviourpValueModel - the value model that drives the table (data, selection)
                    and gets updated by the table (selection only)pListEntry - the class of a list entry in the value modelpMapping - non-null List containing Mapping objectspSortable - true if table is sortablepTableFilterPlugin - our table filter plugin, may be null
 * @throws IllegalArgumentException if a parameter is boguspublic TableFilterPlugin getTableFilterPlugin()
public int getColumnCount()
public String getColumnName(int pColumnIndex)
public Class getColumnClass(int pColumnIndex)
public Object getValueAt(int pRowIndex, int pColumnIndex)
public boolean isCellEditable(int pRowIndex,
                     int pColumnIndex)
isCellEditable in interface TableModelisCellEditable in class ListTableMapperBasepublic void setValueAt(Object pValue, int pRowIndex, int pColumnIndex)
setValueAt in interface TableModelsetValueAt in class ListTableMapperBaseCopyright © 2017 Jürgen Zeller (privat). All rights reserved.