P
- The presenter's type.public class ProxyImpl<P extends Presenter<?,?>> extends Object implements Proxy<P>
Modifier and Type | Field and Description |
---|---|
protected EventBus |
eventBus |
protected IndirectProvider<P> |
presenter |
Constructor and Description |
---|
ProxyImpl()
Creates a Proxy class for a specific presenter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bind(PlaceManager placeManager,
EventBus eventBus)
Injects the various resources and performs other bindings.
|
void |
fireEvent(GwtEvent<?> event) |
EventBus |
getEventBus()
Makes it possible to access the
EventBus object associated with
that proxy. |
void |
getPresenter(NotifyingAsyncCallback<P> callback)
Get the associated
Presenter . |
void |
getRawPresenter(NotifyingAsyncCallback<Presenter<?,?>> callback)
Get the associated
Presenter . |
protected IndirectProvider<P extends Presenter<?,?>> presenter
protected EventBus eventBus
public void getPresenter(NotifyingAsyncCallback<P> callback)
Proxy
Presenter
. The presenter can only be obtained in
an asynchronous manner to support code splitting when needed. To access the
presenter, pass a callback.getPresenter
in interface Proxy<P extends Presenter<?,?>>
callback
- The callback in which the Presenter
will be passed
as a parameter.public void getRawPresenter(NotifyingAsyncCallback<Presenter<?,?>> callback)
ProxyRaw
Presenter
. The presenter can only be obtained in
an asynchronous manner to support code splitting when needed. To access the
presenter, pass a callback.
The difference between this method and
Proxy.getPresenter(com.gwtplatform.mvp.client.proxy.NotifyingAsyncCallback<P>)
is that the latter one gets the specific parameterised Presenter
type.getRawPresenter
in interface ProxyRaw
callback
- The callback in which the Presenter
will be passed
as a parameter.@Inject protected void bind(PlaceManager placeManager, EventBus eventBus)
placeManager
- The PlaceManager
. Ignored.eventBus
- The EventBus
.public void fireEvent(GwtEvent<?> event)
fireEvent
in interface HasHandlers
Copyright © 2010–2014 Arcbees. All rights reserved.