Package org.jboss.hal.ballroom
Class Toolbar<T>
- java.lang.Object
-
- org.jboss.hal.ballroom.Toolbar<T>
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>,Attachable,Display<T>
public class Toolbar<T> extends Object implements Display<T>, org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>, Attachable
PatternFly toolbar. Should be connected to aDataProvider(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 fromLayoutBuilder:Toolbar toolbar = ...; elements() .add(toolbar) .add(row() .add(column() .add(...)))
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToolbar.Actionstatic classToolbar.Attribute<T>
-
Constructor Summary
Constructors Constructor Description Toolbar(DataProvider<T> dataProvider, List<Toolbar.Attribute<T>> attributes, List<Toolbar.Action> actions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()voidclearAllFilters()voiddetach()elemental2.dom.HTMLElementelement()voidshowItems(Iterable<T> items, PageInfo pageInfo)voidupdateSelection(SelectionInfo<T> selectionInfo)
-
-
-
Constructor Detail
-
Toolbar
public Toolbar(DataProvider<T> dataProvider, List<Toolbar.Attribute<T>> attributes, List<Toolbar.Action> actions)
-
-
Method Detail
-
element
public elemental2.dom.HTMLElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<T>
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
detach
public void detach()
- Specified by:
detachin interfaceAttachable
-
updateSelection
public void updateSelection(SelectionInfo<T> selectionInfo)
- Specified by:
updateSelectionin interfaceDisplay<T>
-
clearAllFilters
public void clearAllFilters()
-
-