| Constructor and Description |
|---|
DataProvider(Function<T,String> identifier,
boolean multiSelect) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDisplay(Display<T> display) |
void |
addFilter(String name,
FilterValue<T> filter) |
void |
clearAllSelection()
Clears the selection for all items
|
void |
clearFilters() |
void |
clearVisibleSelection()
Clears the selection for all visible items
|
boolean |
contains(T item) |
Iterable<T> |
getAllItems() |
Comparator<T> |
getComparator() |
FilterValue<T> |
getFilter(String name) |
Iterable<T> |
getFilteredItems() |
String |
getId(T item) |
PageInfo |
getPageInfo() |
SelectionInfo<T> |
getSelectionInfo() |
Iterable<T> |
getVisibleItems() |
void |
gotoFirstPage() |
void |
gotoLastPage() |
void |
gotoNextPage() |
void |
gotoPage(int page) |
void |
gotoPreviousPage() |
boolean |
hasFilters() |
boolean |
isVisible(T item) |
void |
onSelect(SelectHandler<T> selectHandler) |
void |
removeFilter(String name) |
void |
select(T item,
boolean select)
(De)selects the specified item and fires a selection event if
select == true |
void |
selectAll()
Selects all items if .
|
void |
selectVisible()
Selects all visible items if .
|
void |
setComparator(Comparator<T> comparator) |
void |
setPageSize(int pageSize) |
void |
update(Iterable<T> items)
Replaces the items, resets the paging and selection and applies the current filter and sort order.
|
public void update(Iterable<T> items)
public boolean contains(T item)
public boolean isVisible(T item)
public void onSelect(SelectHandler<T> selectHandler)
public void selectAll()
public void selectVisible()
public void clearAllSelection()
public void clearVisibleSelection()
public void select(T item, boolean select)
select == truepublic SelectionInfo<T> getSelectionInfo()
public void addFilter(String name, FilterValue<T> filter)
public void removeFilter(String name)
public void clearFilters()
public FilterValue<T> getFilter(String name)
public boolean hasFilters()
public void setComparator(Comparator<T> comparator)
public Comparator<T> getComparator()
public void setPageSize(int pageSize)
public void gotoFirstPage()
public void gotoPreviousPage()
public void gotoNextPage()
public void gotoLastPage()
public void gotoPage(int page)
public PageInfo getPageInfo()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.