public static final class ScrollableDataTableModelExample.MyTableDataModel extends AbstractTableDataModel implements ScrollableTableDataModel
| Constructor and Description |
|---|
MyTableDataModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
void |
setCurrentRows(int start,
int end)
This method will be called by the table to notify the TableDataModel of which rows are likely to be used in
the near future.
|
getFilterValues, getRowHeader, isCellEditable, isDisabled, isSelectable, isSortable, setValueAt, sort, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilterValues, getRowHeader, isCellEditable, isDisabled, isSelectable, isSortable, setValueAt, sortpublic void setCurrentRows(int start,
int end)
This method will be called by the table to notify the TableDataModel of which rows are likely to be used in the near future.
This example implementation asks the service to return a sub-set of data, for the current page being displayed.
setCurrentRows in interface ScrollableTableDataModelstart - the starting row index.end - the ending row index.public int getRowCount()
getRowCount in interface TableDataModelpublic Object getValueAt(int row, int col)
getValueAt in interface TableDataModelCopyright © 2024. All rights reserved.