Package org.jboss.hal.core.mbui.listview
Class ModelNodeListView<T extends ModelNode>
- java.lang.Object
-
- org.jboss.hal.core.mbui.listview.ModelNodeListView<T>
-
- All Implemented Interfaces:
Iterable<elemental2.dom.HTMLElement>,Attachable,Display<T>
public class ModelNodeListView<T extends ModelNode> extends Object implements Display<T>, Iterable<elemental2.dom.HTMLElement>, Attachable
A list view for model nodes with a toolbar, pager and empty states. Actions are filtered according to their constraints.Please note that the
ModelNodeListViewuses its own<div class="row"/>element. This is important if you add the toolbar using the methods fromLayoutBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelNodeListView.Builder<T extends ModelNode>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()voiddetach()Iterator<elemental2.dom.HTMLElement>iterator()voidsetSurroundingHeight(int surroundingHeight)Use this method if you embed the list view into an application view and if you have additional elements before or after the list view.voidshowEmptyState(String name)voidshowItems(Iterable<T> items, PageInfo pageInfo)voidupdateSelection(SelectionInfo<T> selectionInfo)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
public Iterator<elemental2.dom.HTMLElement> iterator()
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
detach
public void detach()
- Specified by:
detachin interfaceAttachable
-
setSurroundingHeight
public void setSurroundingHeight(int surroundingHeight)
Use this method if you embed the list view into an application view and if you have additional elements before or after the list view. This method should be called before the list view is attached.- Parameters:
surroundingHeight- the sum of the height of all surrounding elements
-
updateSelection
public void updateSelection(SelectionInfo<T> selectionInfo)
- Specified by:
updateSelectionin interfaceDisplay<T extends ModelNode>
-
showEmptyState
public void showEmptyState(String name)
-
-