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