public class ListTableMapper extends ListTableMapperBase
Modifier and Type | Class and Description |
---|---|
static class |
ListTableMapper.Mapping
Small helper class to describe the attribut/column mapping.
|
ListTableMapperBase.IdentityIndexConverter
mSelectionInList
Constructor and Description |
---|
ListTableMapper(JTable pTable,
SelectionInList pValueModel,
List<ListTableMapper.Mapping> pMapping,
boolean pSortable)
Create a new adaption object between a JTable and a SelectionInList value model.
|
ListTableMapper(JTable pTable,
SelectionInList pValueModel,
List<ListTableMapper.Mapping> pMapping,
boolean pSortable,
int pColumnForInitialSorting)
Create a new adaption object between a JTable and a SelectionInList value model.
|
ListTableMapper(JTable pTable,
SelectionInList pValueModel,
List<ListTableMapper.Mapping> pMapping,
boolean pSortable,
int pColumnForInitialSorting,
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) |
Object |
getRawValueAt(int pRowIndex,
int pColumnIndex) |
TableFilterPlugin |
getTableFilterPlugin()
Getter for TableFilterPlugin
|
Object |
getValueAt(int pRowIndex,
int pColumnIndex) |
Object |
getValueForSortingAt(int pRowIndex,
int pColumnIndex) |
boolean |
isColumnSortable(int pColumnIndex) |
addTableModelListener, fireTableChanged, getRowCount, init, isCellEditable, removeTableModelListener, setIndexConverter, setValueAt, valueChanged, vmDataChanged, vmSelectionChanged
public ListTableMapper(JTable pTable, SelectionInList pValueModel, List<ListTableMapper.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)pMapping
- non-null List containing Mapping objectspSortable
- true if table is sortableIllegalArgumentException
- if a parameter is boguspublic ListTableMapper(JTable pTable, SelectionInList pValueModel, List<ListTableMapper.Mapping> pMapping, boolean pSortable, int pColumnForInitialSorting)
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)pMapping
- non-null List containing Mapping objectspSortable
- true if table is sortablepColumnForInitialSorting
- -1 or the column index for initial sortingIllegalArgumentException
- if a parameter is boguspublic ListTableMapper(JTable pTable, SelectionInList pValueModel, List<ListTableMapper.Mapping> pMapping, boolean pSortable, int pColumnForInitialSorting, 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)pMapping
- non-null List containing Mapping objectspSortable
- true if table is sortablepColumnForInitialSorting
- -1 or the column index for initial sortingpTableFilterPlugin
- our table filter plugin, may be nullIllegalArgumentException
- 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 Object getRawValueAt(int pRowIndex, int pColumnIndex)
public Object getValueForSortingAt(int pRowIndex, int pColumnIndex)
public boolean isColumnSortable(int pColumnIndex)
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.