Class LoginDialog
java.lang.Object
org.eclipse.nebula.widgets.opal.loginDialog.LoginDialog
public class LoginDialog
extends java.lang.Object
Instances of this class are Login Dialog box, which is composed of
- A login
- A password
- An image
- (optional)
- A description
- (optional)
- A checkbox "remember the password"
- (optional)
-
Constructor Summary
Constructors Constructor Description LoginDialog()Constructor -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>getAutorizedLogin()java.lang.StringgetDescription()org.eclipse.swt.graphics.ImagegetImage()java.lang.StringgetLogin()java.lang.StringgetPassword()LoginDialogVerifiergetVerifier()booleanisDisplayRememberPassword()booleanisRememberPassword()booleanopen()Open the Login boxvoidsetAutorizedLogin(java.lang.String... autorizedLogin)voidsetAutorizedLogin(java.util.List<java.lang.String> autorizedLogin)voidsetDescription(java.lang.String description)voidsetDisplayRememberPassword(boolean displayRememberPassword)voidsetImage(org.eclipse.swt.graphics.Image image)voidsetLogin(java.lang.String login)voidsetPassword(java.lang.String password)voidsetRememberPassword(boolean rememberPassword)voidsetVerifier(LoginDialogVerifier verifier)
-
Constructor Details
-
LoginDialog
public LoginDialog()Constructor
-
-
Method Details
-
open
public boolean open()Open the Login box- Returns:
trueif the authentication is OK,falseif the user pressed on cancel.
-
getImage
public org.eclipse.swt.graphics.Image getImage()- Returns:
- the image
-
getDescription
public java.lang.String getDescription()- Returns:
- the description
-
getLogin
public java.lang.String getLogin()- Returns:
- the login
-
getPassword
public java.lang.String getPassword()- Returns:
- the password
-
getAutorizedLogin
public java.util.List<java.lang.String> getAutorizedLogin()- Returns:
- the list of autorized logins
-
isDisplayRememberPassword
public boolean isDisplayRememberPassword()- Returns:
trueif the checkbox "remember the password" is displayed,falseotherwise
-
isRememberPassword
public boolean isRememberPassword()- Returns:
trueif the checkbox "remember the password" is checked,falseotherwise
-
getVerifier
- Returns:
- the verifier associated to this box
-
setImage
public void setImage(org.eclipse.swt.graphics.Image image)- Parameters:
image- the image to set
-
setDescription
public void setDescription(java.lang.String description)- Parameters:
description- the description to set
-
setLogin
public void setLogin(java.lang.String login)- Parameters:
login- the login to set
-
setPassword
public void setPassword(java.lang.String password)- Parameters:
password- the password to set
-
setAutorizedLogin
public void setAutorizedLogin(java.util.List<java.lang.String> autorizedLogin)- Parameters:
autorizedLogin- the list of autorized logins to set
-
setAutorizedLogin
public void setAutorizedLogin(java.lang.String... autorizedLogin)- Parameters:
autorizedLogin- the list of autorized logins to set
-
setDisplayRememberPassword
public void setDisplayRememberPassword(boolean displayRememberPassword)- Parameters:
displayRememberPassword- iftrue, the checkbox "remember the password" is displayed
-
setRememberPassword
public void setRememberPassword(boolean rememberPassword)- Parameters:
rememberPassword- iftrue, the checkbox "remember the password" is selected
-
setVerifier
- Parameters:
verifier- the verifier to set
-