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
public static class CellBrowser.Builder<T> extends java.lang.Object
Builder object to create CellBrowser.
-
-
Constructor Summary
Constructors Constructor Description Builder(TreeViewModel viewModel, T rootValue)
Construct a newCellBrowser.Builder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellBrowser
build()
Creates a newCellBrowser
.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 eachCellList
.CellBrowser.Builder<T>
pageSize(int pageSize)
Set the pager size for eachCellList
.CellBrowser.Builder<T>
resources(CellBrowser.Resources resources)
Set resources used for images.
-
-
-
Constructor Detail
-
Builder
public Builder(TreeViewModel viewModel, T rootValue)
Construct a newCellBrowser.Builder
.- Parameters:
viewModel
- theTreeViewModel
that backs the treerootValue
- the hidden root value of the tree
-
-
Method Detail
-
build
public CellBrowser build()
Creates a newCellBrowser
.- Returns:
- new
CellBrowser
-
loadingIndicator
public CellBrowser.Builder<T> loadingIndicator(Widget widget)
Set the widget to display when the data is loading.- Parameters:
widget
- the loading indicator- Returns:
- this
-
pagerFactory
public CellBrowser.Builder<T> pagerFactory(CellBrowser.PagerFactory factory)
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
public CellBrowser.Builder<T> pageSize(int pageSize)
Set the pager size for eachCellList
.- Parameters:
pageSize
- the page size- Returns:
- this
-
resources
public CellBrowser.Builder<T> resources(CellBrowser.Resources resources)
Set resources used for images.- Parameters:
resources
- theCellBrowser.Resources
used for images- Returns:
- this
-
-