public class DataSourcePresenter extends ApplicationFinderPresenter<DataSourcePresenter.MyView,DataSourcePresenter.MyProxy> implements SupportsExpertMode
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataSourcePresenter.MyProxy |
static interface |
DataSourcePresenter.MyView |
| Constructor and Description |
|---|
DataSourcePresenter(com.google.web.bindery.event.shared.EventBus eventBus,
DataSourcePresenter.MyView view,
DataSourcePresenter.MyProxy proxy,
Finder finder,
CrudOperations crud,
FinderPathFactory finderPathFactory,
MetadataRegistry metadataRegistry,
StatementContext statementContext) |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
Iterable<elemental2.dom.HTMLElement> |
asElements() |
FinderPath |
finderPath()
Application presenters need to provide information about their path in the finder.
|
protected void |
onBind() |
protected void |
onHide() |
protected void |
onReset()
Updates the breadcrumb by taking the information from
HasFinderPath.finderPath() and fires a FinderContextEvent. |
void |
prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request) |
protected void |
reload()
Override this method to
load the data from the backend and
update the view
It's called as part of the
ApplicationFinderPresenter.onReset() method. |
ResourceAddress |
resourceAddress() |
headerMode, isExternal, onRevealbind, forceReveal, getProxy, getRevealType, getSlot, revealInParent, setRevealType, setSlot, unbind, useManualRevealaddHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, clearSlot, equals, fireEvent, fireEvent, getChild, getChildren, getChildren, getEventBus, getView, hashCode, isVisible, registerVisibleHandler, removeFromParentSlot, removeFromPopupSlot, removeFromSlot, removeFromSlot, setInSlot, setInSlot, setInSlot, setInSlot@Inject
public DataSourcePresenter(com.google.web.bindery.event.shared.EventBus eventBus,
DataSourcePresenter.MyView view,
DataSourcePresenter.MyProxy proxy,
Finder finder,
CrudOperations crud,
FinderPathFactory finderPathFactory,
MetadataRegistry metadataRegistry,
StatementContext statementContext)
protected void onBind()
onBind in class com.gwtplatform.mvp.client.HandlerContainerImplpublic void prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
prepareFromRequest in class ApplicationPresenter<DataSourcePresenter.MyView,DataSourcePresenter.MyProxy>public ResourceAddress resourceAddress()
resourceAddress in interface SupportsExpertModeprotected void onReset()
ApplicationFinderPresenterHasFinderPath.finderPath() and fires a FinderContextEvent. Finally calls reload().onReset in class ApplicationFinderPresenter<DataSourcePresenter.MyView,DataSourcePresenter.MyProxy>public FinderPath finderPath()
HasFinderPath
Please make sure that the IDs for selected items in the finder path match to the IDs returned by ItemDisplay.getId()
If this method returns null the path in the finder context is not touched.
finderPath in interface HasFinderPathprotected void reload()
ApplicationFinderPresenterApplicationFinderPresenter.onReset() method.reload in class ApplicationFinderPresenter<DataSourcePresenter.MyView,DataSourcePresenter.MyProxy>protected void onHide()
onHide in class com.gwtplatform.mvp.client.PresenterWidget<V extends HalView>public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElementpublic Iterable<elemental2.dom.HTMLElement> asElements()
asElements in interface org.jboss.gwt.elemento.core.HasElementsCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.