@Dependent @Alternative public class EntitiesList<T> extends Object implements com.google.gwt.user.client.ui.IsWidget
Presenter class for listing entities.
Modifier and Type | Class and Description |
---|---|
static interface |
EntitiesList.Callback<T>
Callback methods for view's user actions.
|
static interface |
EntitiesList.PaginationConstraints
The pagination constraints for view's pager component.
|
static interface |
EntitiesList.View |
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_PAGE_SIZE |
EntitiesList.View |
view |
Constructor and Description |
---|
EntitiesList(LoadingBox loadingBox,
EntitiesList.View view) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clear() |
protected EntitiesList.PaginationConstraints |
createPaginationCallback(AbstractEntityManager.SearchResponse searchResponse) |
protected void |
hideLoadingView() |
protected void |
init() |
void |
select(String identifier) |
void |
setEmptyEntitiesText(String emptyEntitiesText) |
void |
setEntityTitleSize(org.gwtbootstrap3.client.ui.constants.HeadingSize headingSize) |
void |
setPageSize(int pageSize) |
void |
show(AbstractEntityManager.SearchResponse<T> response,
EntitiesList.Callback<T> callback) |
protected void |
show(Collection<T> entities,
EntitiesList.PaginationConstraints paginationConstraints,
EntitiesList.Callback<T> callback) |
protected void |
showLoadingView() |
void |
unselect(String identifier) |
protected static final int DEFAULT_PAGE_SIZE
public EntitiesList.View view
@Inject public EntitiesList(LoadingBox loadingBox, EntitiesList.View view)
@PostConstruct protected void init()
public void show(AbstractEntityManager.SearchResponse<T> response, EntitiesList.Callback<T> callback)
public void select(String identifier)
public void unselect(String identifier)
public void clear()
public void setPageSize(int pageSize)
public void setEmptyEntitiesText(String emptyEntitiesText)
public void setEntityTitleSize(org.gwtbootstrap3.client.ui.constants.HeadingSize headingSize)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
protected void show(Collection<T> entities, EntitiesList.PaginationConstraints paginationConstraints, EntitiesList.Callback<T> callback)
protected EntitiesList.PaginationConstraints createPaginationCallback(AbstractEntityManager.SearchResponse searchResponse)
protected void showLoadingView()
protected void hideLoadingView()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.