T
- the type of data in the root nodepublic static class CellBrowser.Builder<T>
extends java.lang.Object
Constructor and Description |
---|
Builder(TreeViewModel viewModel,
T rootValue)
Construct a new
CellBrowser.Builder . |
Modifier and Type | Method and Description |
---|---|
CellBrowser |
build()
Creates a new
CellBrowser . |
CellBrowser.Builder<T> |
loadingIndicator(Widget widget)
Set the widget to display when the data is loading.
|
CellBrowser.Builder<T> |
pagerFactory(CellBrowser.PagerFactory factory)
Set the pager factory used to create pagers for each
CellList . |
CellBrowser.Builder<T> |
pageSize(int pageSize)
Set the pager size for each
CellList . |
CellBrowser.Builder<T> |
resources(CellBrowser.Resources resources)
Set resources used for images.
|
public Builder(TreeViewModel viewModel, T rootValue)
CellBrowser.Builder
.viewModel
- the TreeViewModel
that backs the treerootValue
- the hidden root value of the treepublic CellBrowser build()
CellBrowser
.CellBrowser
public CellBrowser.Builder<T> loadingIndicator(Widget widget)
widget
- the loading indicatorpublic CellBrowser.Builder<T> pagerFactory(CellBrowser.PagerFactory factory)
CellList
.
Defaults to PageSizePagerFactory
if not set.
Can be set to null if no pager should be used. You should also set pageSize
big enough to hold all your data then.factory
- the pager factorypublic CellBrowser.Builder<T> pageSize(int pageSize)
CellList
.pageSize
- the page sizepublic CellBrowser.Builder<T> resources(CellBrowser.Resources resources)
resources
- the CellBrowser.Resources
used for images