public class Pager<T> extends Object implements Display<T>, org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>
DataProvider (which in turn updates its displays e.g. a list
view):
DataProvider dataProvider = ...; ListView listView = ...; Pager pager = ...; dataProvider.addDisplay(listView); dataProvider.addDisplay(pager); ... dataProvider.update(items);
Please note that the pager uses its own <div class="row"/> element. This is important if you add the
toolbar using the methods from LayoutBuilder:
Pager pager = ...;
elements()
.add(row()
.add(column()
.add(...)))
.add(pager)
| Constructor and Description |
|---|
Pager(DataProvider<T> dataProvider) |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
void |
showItems(Iterable<T> items,
PageInfo pageInfo) |
void |
updateSelection(SelectionInfo selectionInfo) |
public Pager(DataProvider<T> dataProvider)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>public void updateSelection(SelectionInfo selectionInfo)
updateSelection in interface Display<T>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.