Class CellBrowser.Builder<T>
java.lang.Object
com.google.gwt.user.cellview.client.CellBrowser.Builder<T>
- Type Parameters:
T
- the type of data in the root node
- Enclosing class:
CellBrowser
Builder object to create CellBrowser.
-
Constructor Summary
ConstructorDescriptionBuilder
(TreeViewModel viewModel, T rootValue) Construct a newCellBrowser.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newCellBrowser
.loadingIndicator
(Widget widget) Set the widget to display when the data is loading.pagerFactory
(CellBrowser.PagerFactory factory) Set the pager factory used to create pagers for eachCellList
.pageSize
(int pageSize) Set the pager size for eachCellList
.resources
(CellBrowser.Resources resources) Set resources used for images.
-
Constructor Details
-
Builder
Construct a newCellBrowser.Builder
.- Parameters:
viewModel
- theTreeViewModel
that backs the treerootValue
- the hidden root value of the tree
-
-
Method Details
-
build
Creates a newCellBrowser
.- Returns:
- new
CellBrowser
-
loadingIndicator
Set the widget to display when the data is loading.- Parameters:
widget
- the loading indicator- Returns:
- this
-
pagerFactory
Set the pager factory used to create pagers for eachCellList
. Defaults toCellBrowser.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.- Parameters:
factory
- the pager factory- Returns:
- this
-
pageSize
Set the pager size for eachCellList
.- Parameters:
pageSize
- the page size- Returns:
- this
-
resources
Set resources used for images.- Parameters:
resources
- theCellBrowser.Resources
used for images- Returns:
- this
-