Class EntitiesPagedList<T>
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.list.EntitiesList<T>
-
- org.uberfire.ext.security.management.client.widgets.management.list.EntitiesPagedList<T>
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
GroupsList,RolesList
@Dependent @Alternative public class EntitiesPagedList<T> extends EntitiesList<T>
Presenter class for listing entities, with automatic pagination feature management.
Notes:
-
By default the
onChangePagecallback method is not fired, it's handled by this class itself.
- Since:
- 0.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.uberfire.ext.security.management.client.widgets.management.list.EntitiesList
EntitiesList.Callback<T>, EntitiesList.PaginationConstraints, EntitiesList.View
-
-
Field Summary
Fields Modifier and Type Field Description protected EntitiesList.Callback<T>callbackprotected intcurrentPageprotected Collection<T>entities-
Fields inherited from class org.uberfire.ext.security.management.client.widgets.management.list.EntitiesList
DEFAULT_PAGE_SIZE, view
-
-
Constructor Summary
Constructors Constructor Description EntitiesPagedList(LoadingBox loadingBox, EntitiesList.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<T>buildPageEntities(int start, int end)protected EntitiesList.PaginationConstraintsbuildPaginationConstraints(int size)voidclear()protected Collection<T>getEntities()protected booleanhasMorePages()protected voidshow()voidshow(Collection<T> entities, EntitiesList.Callback<T> callback)-
Methods inherited from class org.uberfire.ext.security.management.client.widgets.management.list.EntitiesList
asWidget, createPaginationCallback, hideLoadingView, init, select, setEmptyEntitiesText, setEntityTitleSize, setPageSize, show, show, showLoadingView, unselect
-
-
-
-
Field Detail
-
entities
protected Collection<T> entities
-
callback
protected EntitiesList.Callback<T> callback
-
currentPage
protected int currentPage
-
-
Constructor Detail
-
EntitiesPagedList
@Inject public EntitiesPagedList(LoadingBox loadingBox, EntitiesList.View view)
-
-
Method Detail
-
show
public void show(Collection<T> entities, EntitiesList.Callback<T> callback)
-
show
protected void show()
-
clear
public void clear()
- Overrides:
clearin classEntitiesList<T>
-
getEntities
protected Collection<T> getEntities()
-
buildPaginationConstraints
protected EntitiesList.PaginationConstraints buildPaginationConstraints(int size)
-
hasMorePages
protected boolean hasMorePages()
-
-