public abstract class AbstractEntityExplorer<T> extends Object implements com.google.gwt.user.client.ui.IsWidget
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> |
errorCallback |
protected static int |
PAGE_SIZE |
protected static String |
SEARCH_PATTERN_ALL |
EntitiesExplorerView |
view |
protected EntitiesExplorerView.ViewCallback |
viewCallback |
| Constructor and Description |
|---|
AbstractEntityExplorer(ClientUserSystemManager userSystemManager,
javax.enterprise.event.Event<OnErrorEvent> errorEvent,
LoadingBox loadingBox,
EntitiesList<T> entitiesList,
EntitiesExplorerView view) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
protected abstract boolean |
canCreate() |
protected abstract boolean |
canRead() |
protected abstract boolean |
canSearch() |
void |
clear() |
protected EntitiesList.Callback<T> |
createCallback() |
protected EntitiesExplorerView.ViewContext |
createParentContext() |
protected void |
fireReadEvent(String identifier) |
protected abstract String |
getEmptyText() |
protected abstract String |
getEntityId(T entity) |
protected abstract String |
getEntityName(T entity) |
protected abstract String |
getEntityType() |
Set<String> |
getSelectedEntities() |
protected abstract String |
getTitle() |
protected void |
hideLoadingView() |
void |
init() |
protected Set<String> |
nullSafe(Set<String> set) |
void |
setPageSize(int pageSize) |
void |
show() |
void |
show(ExplorerViewContext context) |
protected abstract void |
showCreate() |
protected void |
showError(String message) |
protected void |
showError(Throwable throwable) |
protected void |
showLoadingView() |
protected abstract void |
showSearch() |
protected static final int PAGE_SIZE
protected static final String SEARCH_PATTERN_ALL
public EntitiesExplorerView view
protected final org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback
protected EntitiesExplorerView.ViewCallback viewCallback
@Inject public AbstractEntityExplorer(ClientUserSystemManager userSystemManager, javax.enterprise.event.Event<OnErrorEvent> errorEvent, LoadingBox loadingBox, EntitiesList<T> entitiesList, EntitiesExplorerView view)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetprotected abstract String getEmptyText()
protected abstract String getEntityType()
protected abstract String getTitle()
protected abstract boolean canSearch()
protected abstract boolean canCreate()
protected abstract boolean canRead()
protected abstract void showSearch()
protected abstract void showCreate()
@PostConstruct public void init()
public void show()
public void show(ExplorerViewContext context)
public void setPageSize(int pageSize)
protected EntitiesList.Callback<T> createCallback()
protected void fireReadEvent(String identifier)
protected EntitiesExplorerView.ViewContext createParentContext()
protected void showLoadingView()
protected void hideLoadingView()
protected void showError(Throwable throwable)
protected void showError(String message)
public void clear()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.