public static class TableScrollableModelExample.ExampleScrollableModel extends SimpleBeanBoundTableModel implements WTable.ScrollableTableModel
SimpleBeanBoundTableModel.LevelDetailsCOMPARABLE_COMPARATOR| Constructor and Description |
|---|
TableScrollableModelExample.ExampleScrollableModel(WTable table,
String[] columnBeanProperties,
String levelBeanProperty) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRowCount()
Call a service to determine the total number of rows.
|
protected Object |
getTopRowBean(List<Integer> row)
Override to allow for page offset.
|
void |
setCurrentRows(int start,
int end)
Call a service to retrieve the rows for this page and set the rows as the bean on the table.
|
buildBeanUtilString, getBeanList, getBeanPropertyValue, getChildCount, getLevelIndex, getMaxIterations, getRendererClass, getRowBean, getRowKey, getSize, getValueAt, isCellEditable, isEditable, isExpandable, isIterateFirstLevel, isSelectable, isSortable, setBeanPropertyValue, setComparator, setEditable, setIterateFirstLevel, setMaxIterations, setSelectable, setValueAt, sortgetBean, getBeanId, getBeanProperty, getBeanValue, setBeanId, setBeanProperty, setBeanProviderhasChildren, isDisabled, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildCount, getRendererClass, getRowKey, getValueAt, hasChildren, isCellEditable, isDisabled, isExpandable, isSelectable, isSortable, setValueAt, sortpublic TableScrollableModelExample.ExampleScrollableModel(WTable table, String[] columnBeanProperties, String levelBeanProperty)
table - the table instancecolumnBeanProperties - the column bean propertieslevelBeanProperty - the level propertypublic int getRowCount()
Hold the answer so the service is not called multiple times.
getRowCount in interface WTable.TableModelgetRowCount in class SimpleBeanBoundTableModelpublic void setCurrentRows(int start,
int end)
setCurrentRows in interface WTable.ScrollableTableModelstart - the start index of the current pageend - the end index of the current pageprotected Object getTopRowBean(List<Integer> row)
getTopRowBean in class SimpleBeanBoundTableModelrow - the row indexCopyright © 2017. All rights reserved.