public class LazyLoadingTableModel<T extends JTable & MasterDetailComponent<T>> extends AbstractTableModel implements VirtualTableWrapper
Modifier and Type | Field and Description |
---|---|
static XdevLogger |
log |
listenerList
Constructor and Description |
---|
LazyLoadingTableModel(T t) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
RowSorter |
createRowSorter(TableModel model) |
Class<?> |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int col) |
int[] |
getModelColumnIndices()
Returns the array of column indexes of the model.
|
DBPager |
getPager()
Returns the concerned pager.
|
int |
getRequestedFirst()
Returns the currently first requested row.
|
int |
getRequestedLast()
Returns the currently last requested row.
|
int |
getRowCount()
Returns the number of rows in the model.
|
SELECT |
getSelect()
Returns the lazy loading default select.
|
Object |
getValueAt(int row,
int col) |
VirtualTable |
getVirtualTable()
Returns the wrapped
VirtualTable . |
VirtualTable.VirtualTableRow |
getVirtualTableRow(int modelRow)
Returns the wrapped
VirtualTable.VirtualTableRow behind the index
modelRow . |
protected void |
handle(Throwable e) |
boolean |
isCellEditable(int row,
int col) |
void |
refresh() |
void |
setData(VirtualTable vt,
int[] columnIndices,
SELECT select,
Object[] params) |
void |
setValueAt(Object newValue,
int row,
int col) |
int |
viewToModelColumn(int col)
Return the index of the wrapped
VirtualTable corresponding to
Parameter col . |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final XdevLogger log
public LazyLoadingTableModel(T t)
public void setData(VirtualTable vt, int[] columnIndices, SELECT select, Object[] params)
public void clear()
public void refresh()
public RowSorter createRowSorter(TableModel model)
public int getRowCount()
getRowCount
in interface TableModel
getRowCount
in interface VirtualTableWrapper
public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public int[] getModelColumnIndices()
getModelColumnIndices
in interface VirtualTableWrapper
int
array of indexedpublic int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int col)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object newValue, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public VirtualTable getVirtualTable()
VirtualTable
.getVirtualTable
in interface VirtualTableWrapper
VirtualTable
public int viewToModelColumn(int col)
VirtualTable
corresponding to
Parameter col
.viewToModelColumn
in interface VirtualTableWrapper
col
- the model column indexVirtualTable
public VirtualTable.VirtualTableRow getVirtualTableRow(int modelRow)
VirtualTable.VirtualTableRow
behind the index
modelRow
.getVirtualTableRow
in interface VirtualTableWrapper
modelRow
- the index in the modelVirtualTable.VirtualTableRow
protected void handle(Throwable e)
public SELECT getSelect()
SELECT
public DBPager getPager()
DBPager
.public int getRequestedFirst()
public int getRequestedLast()
Copyright © 2003–2021 XDEV Software. All rights reserved.