public class LoginView extends com.gwtplatform.mvp.client.ViewWithUiHandlers<LoginUiHandlers> implements LoginPresenter.MyView
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
LoginView.Binder
GWT binder.
|
Modifier and Type | Field and Description |
---|---|
(package private) org.gwtbootstrap3.client.ui.TextBox |
pwd
Widget
|
(package private) org.gwtbootstrap3.client.ui.Button |
submit
Widget
|
(package private) org.gwtbootstrap3.client.ui.TextBox |
userid
Widget
|
Constructor and Description |
---|
LoginView(LoginView.Binder binder)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clears the password input box.
|
private void |
login()
Proceeds with login.
|
protected void |
onAttach()
Method called after the view is attached to the DOM.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent e)
Click event handler.
|
void |
pwdKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
Key press event handler.
|
void |
reportFailure()
Report unspecified login failure to the user.
|
void |
reportLoginError(int code)
Displays login error to the user.
|
void |
useridKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
Key press event handler.
|
getUiHandlers, setUiHandlers
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, onDetach, removeFromSlot, setInSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@UiField org.gwtbootstrap3.client.ui.TextBox userid
@UiField(provided=true) org.gwtbootstrap3.client.ui.TextBox pwd
@UiField org.gwtbootstrap3.client.ui.Button submit
@Inject public LoginView(LoginView.Binder binder)
binder
- GWT binder.public void reportLoginError(int code)
reportLoginError
in interface LoginPresenter.MyView
code
- The error code.public void reportFailure()
reportFailure
in interface LoginPresenter.MyView
public void clearPassword()
clearPassword
in interface LoginPresenter.MyView
@UiHandler(value="submit") public void onClick(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click event.@UiHandler(value="userid") public void useridKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
event
- Key press event.@UiHandler(value="pwd") public void pwdKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
event
- Key press event.protected void onAttach()
onAttach
in class com.gwtplatform.mvp.client.ViewImpl
private void login()