public class LoginPresenter extends Presenter<LoginPresenter.MyView,LoginPresenter.MyProxy> implements LoginUiHandlers
Modifier and Type | Class and Description |
---|---|
static interface |
LoginPresenter.MyProxy |
static interface |
LoginPresenter.MyView |
Presenter.RevealType
Modifier and Type | Field and Description |
---|---|
static String |
LOGIN_COOKIE_NAME |
Modifier and Type | Method and Description |
---|---|
void |
login(String username,
String password) |
protected void |
onReveal()
Lifecycle method called whenever this presenter is about to be
revealed.
|
protected void |
revealInParent()
Requests that the presenter reveal itself in its parent presenter.
|
bind, forceReveal, getProxy, getRevealType, getSlot, prepareFromRequest, setRevealType, setSlot, unbind, useManualReveal
addHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, fireEvent, getEventBus, getView, getWidget, isVisible, onHide, onReset, removeFromPopupSlot, removeFromSlot, setInSlot, setInSlot
isBound, onBind, onUnbind, registerHandler
public static final String LOGIN_COOKIE_NAME
public void login(String username, String password)
login
in interface LoginUiHandlers
protected void revealInParent()
Presenter
RevealContentEvent
,
a RevealRootContentEvent
or a RevealRootLayoutContentEvent
.revealInParent
in class Presenter<LoginPresenter.MyView,LoginPresenter.MyProxy>
protected void onReveal()
PresenterWidget
PresenterWidget.onReveal()
if
you override. Also, do not call directly, see PresenterWidget
for more details on lifecycle methods.
You should override this method to perform any action or initialisation
that needs to be done when the presenter is revealed. Any initialisation
you perform here should be taken down in PresenterWidget.onHide()
.
Information that needs to be updated whenever the user navigates should
be refreshed in PresenterWidget.onReset()
.
In a presenter hierarchy, this method is called top-down: first on the
parent presenters, then on the children.onReveal
in class PresenterWidget<LoginPresenter.MyView>
Copyright © 2010-2014 ArcBees. All Rights Reserved.