Class EntitiesList<T>
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.list.EntitiesList<T>
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
EntitiesPagedList,UsersList
@Dependent @Alternative public class EntitiesList<T> extends Object implements com.google.gwt.user.client.ui.IsWidget
Presenter class for listing entities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEntitiesList.Callback<T>Callback methods for view's user actions.static interfaceEntitiesList.PaginationConstraintsThe pagination constraints for view's pager component.static interfaceEntitiesList.View
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_PAGE_SIZEEntitiesList.Viewview
-
Constructor Summary
Constructors Constructor Description EntitiesList(LoadingBox loadingBox, EntitiesList.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()voidclear()protected EntitiesList.PaginationConstraintscreatePaginationCallback(org.uberfire.ext.security.management.api.AbstractEntityManager.SearchResponse searchResponse)protected voidhideLoadingView()protected voidinit()voidselect(String identifier)voidsetEmptyEntitiesText(String emptyEntitiesText)voidsetEntityTitleSize(org.gwtbootstrap3.client.ui.constants.HeadingSize headingSize)voidsetPageSize(int pageSize)protected voidshow(Collection<T> entities, EntitiesList.PaginationConstraints paginationConstraints, EntitiesList.Callback<T> callback)voidshow(org.uberfire.ext.security.management.api.AbstractEntityManager.SearchResponse<T> response, EntitiesList.Callback<T> callback)protected voidshowLoadingView()voidunselect(String identifier)
-
-
-
Field Detail
-
DEFAULT_PAGE_SIZE
protected static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
view
public EntitiesList.View view
-
-
Constructor Detail
-
EntitiesList
@Inject public EntitiesList(LoadingBox loadingBox, EntitiesList.View view)
-
-
Method Detail
-
init
@PostConstruct protected void init()
-
show
public void show(org.uberfire.ext.security.management.api.AbstractEntityManager.SearchResponse<T> response, EntitiesList.Callback<T> callback)
-
select
public void select(String identifier)
-
unselect
public void unselect(String identifier)
-
clear
public void clear()
-
setPageSize
public void setPageSize(int pageSize)
-
setEmptyEntitiesText
public void setEmptyEntitiesText(String emptyEntitiesText)
-
setEntityTitleSize
public void setEntityTitleSize(org.gwtbootstrap3.client.ui.constants.HeadingSize headingSize)
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
show
protected void show(Collection<T> entities, EntitiesList.PaginationConstraints paginationConstraints, EntitiesList.Callback<T> callback)
-
createPaginationCallback
protected EntitiesList.PaginationConstraints createPaginationCallback(org.uberfire.ext.security.management.api.AbstractEntityManager.SearchResponse searchResponse)
-
showLoadingView
protected void showLoadingView()
-
hideLoadingView
protected void hideLoadingView()
-
-