|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectComposite
org.spiffyui.client.login.LoginPanel
public class LoginPanel
A reusable login dialog.
The styles (css classes) that the panel uses are as follows:
Constructor Summary | |
---|---|
protected |
LoginPanel(java.lang.String title,
LoginStringHelper helper)
Create a new LoginPanel. |
Method Summary | |
---|---|
void |
doRequest()
perform login request |
LoginStringHelper |
getHelper()
|
static LoginPanel |
getLoginPanel()
|
TextBox |
getPwd()
|
TextBox |
getUsername()
|
boolean |
isInRequest()
|
boolean |
isRepeat()
|
void |
onKeyUp(KeyUpEvent event)
|
void |
setCallbackKey(java.lang.Object key)
|
void |
setInRequest(boolean inRequest)
|
void |
setIsRepeat(boolean isRepeat)
Check if this is login case or renew token case (after token has timed out) and show the login dialog differently |
static void |
setLoginPanel(LoginPanel loginPanel)
|
void |
setTokenServerUrl(java.lang.String url)
|
void |
setVisible(boolean visible)
|
void |
show()
show the login panel |
static void |
showLoginPanel(LoginStringHelper helper,
java.lang.String title,
java.lang.Object callbackKey,
java.lang.String tokenServerUrl,
java.lang.String code,
boolean isRepeat,
java.lang.String username)
Show the login panel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LoginPanel(java.lang.String title, LoginStringHelper helper)
title
- title of the login panelhelper
- string helper for getting strings used in login panelMethod Detail |
---|
public static void showLoginPanel(LoginStringHelper helper, java.lang.String title, java.lang.Object callbackKey, java.lang.String tokenServerUrl, java.lang.String code, boolean isRepeat, java.lang.String username)
helper
- the string helper for this login paneltitle
- the title of this login dialogcallbackKey
- the callback key used to replay the REST call that caused the need for logintokenServerUrl
- the url for the token server the user is logging in tocode
- the error codeisRepeat
- true if this login request is a repeat because of token time out, false otherwiseusername
- the username of the currently logged in user. This parameter is optional.public void setIsRepeat(boolean isRepeat)
isRepeat
- boolean indicating whether this is login or renew token casepublic void setCallbackKey(java.lang.Object key)
public void setTokenServerUrl(java.lang.String url)
public void doRequest()
public void setVisible(boolean visible)
public void show()
public void onKeyUp(KeyUpEvent event)
public TextBox getUsername()
public TextBox getPwd()
public boolean isInRequest()
public void setInRequest(boolean inRequest)
public boolean isRepeat()
public LoginStringHelper getHelper()
public static LoginPanel getLoginPanel()
public static void setLoginPanel(LoginPanel loginPanel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |