com.tssap.util.ui.dialog
Class LogonDialog

com.tssap.util.ui.dialog.LogonDialog

public class LogonDialog

Class provides basic functionality in order to show a logon information popup to the user.
NOTE: the password information is always masked by '*' and is therfore not displayed.


Method Summary
 boolean close()
           
static ILogonInformation getPasswordForUser(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message, java.lang.String userName)
          Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
static ILogonInformation getPasswordForUser(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message, java.lang.String userName, java.lang.String defaultPassword)
          Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
static ILogonInformation getPasswordForUser(java.lang.String title, java.lang.String message, java.lang.String userName)
          Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
static ILogonInformation getPasswordForUser(java.lang.String title, java.lang.String message, java.lang.String userName, java.lang.String defaultPassword)
          Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
static ILogonInformation getPasswordOnly(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
          Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
static ILogonInformation getPasswordOnly(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message, java.lang.String defaultPassword)
          Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
static ILogonInformation getPasswordOnly(java.lang.String title, java.lang.String message)
          Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
static ILogonInformation getPasswordOnly(java.lang.String title, java.lang.String message, java.lang.String defaultPassword)
          Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
          Convenience methode to display a dialog in order to obtain user name and password.
static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message, java.lang.String defaultUser)
          Convenience methode to display a dialog in order to obtain user name and password.
static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message, java.lang.String defaultUserName, java.lang.String defaultPassword)
          Convenience methode to display a dialog in order to obtain user name and password.
static ILogonInformation getUserAndPassword(java.lang.String title, java.lang.String message)
          Convenience methode to display a dialog in order to obtain user name and password.
static ILogonInformation getUserAndPassword(java.lang.String title, java.lang.String message, java.lang.String defaultUser)
          Convenience methode to display a dialog in order to obtain user name and password.
static ILogonInformation getUserAndPassword(java.lang.String title, java.lang.String message, java.lang.String defaultUserName, java.lang.String defaultPassword)
          Convenience methode to display a dialog in order to obtain user name and password.
 

Method Detail

getUserAndPassword

public static ILogonInformation getUserAndPassword(java.lang.String title,
                                                   java.lang.String message)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
title - of dialog
message - to display
Returns:
the logon information or null if user pressed cancel

getUserAndPassword

public static ILogonInformation getUserAndPassword(java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String defaultUser)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
title - of dialog
message - to display
defaultUser - to fill into the user text field
Returns:
the logon information or null if user pressed cancel

getUserAndPassword

public static ILogonInformation getUserAndPassword(java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String defaultUserName,
                                                   java.lang.String defaultPassword)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
title - of dialog
message - to display
defaultUser - to fill into the user text field
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

getPasswordForUser

public static ILogonInformation getPasswordForUser(java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String userName)
Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
Parameters:
title - of dialog
message - to display
userName - of the user
Returns:
the logon information or null if user pressed cancel

getPasswordForUser

public static ILogonInformation getPasswordForUser(java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String userName,
                                                   java.lang.String defaultPassword)
Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
Parameters:
title - of dialog
message - to display
userName - of the user
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

getPasswordOnly

public static ILogonInformation getPasswordOnly(java.lang.String title,
                                                java.lang.String message)
Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
Parameters:
title - of dialog
message - to display
Returns:
the logon information or null if user pressed cancel

getPasswordOnly

public static ILogonInformation getPasswordOnly(java.lang.String title,
                                                java.lang.String message,
                                                java.lang.String defaultPassword)
Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
Parameters:
title - of dialog
message - to display
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

getUserAndPassword

public static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent,
                                                   java.lang.String title,
                                                   java.lang.String message)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
Returns:
the logon information or null if user pressed cancel

getUserAndPassword

public static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent,
                                                   java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String defaultUser)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
defaultUser - to fill into the user text field
Returns:
the logon information or null if user pressed cancel

getUserAndPassword

public static ILogonInformation getUserAndPassword(org.eclipse.swt.widgets.Shell parent,
                                                   java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String defaultUserName,
                                                   java.lang.String defaultPassword)
Convenience methode to display a dialog in order to obtain user name and password.
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
defaultUser - to fill into the user text field
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

getPasswordForUser

public static ILogonInformation getPasswordForUser(org.eclipse.swt.widgets.Shell parent,
                                                   java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String userName)
Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
userName - of the user
Returns:
the logon information or null if user pressed cancel

getPasswordForUser

public static ILogonInformation getPasswordForUser(org.eclipse.swt.widgets.Shell parent,
                                                   java.lang.String title,
                                                   java.lang.String message,
                                                   java.lang.String userName,
                                                   java.lang.String defaultPassword)
Convenience methode to diaplay a dialog in order to obtain the password for a specific pre-defined user.
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
userName - of the user
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

getPasswordOnly

public static ILogonInformation getPasswordOnly(org.eclipse.swt.widgets.Shell parent,
                                                java.lang.String title,
                                                java.lang.String message)
Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
Returns:
the logon information or null if user pressed cancel

getPasswordOnly

public static ILogonInformation getPasswordOnly(org.eclipse.swt.widgets.Shell parent,
                                                java.lang.String title,
                                                java.lang.String message,
                                                java.lang.String defaultPassword)
Convenience methode to diaplay a dialog in order to obtain only a password (e.g. for a fixed user).
Parameters:
parent - the parent shell of the dialog, or null if none
title - of dialog
message - to display
defaultPassword - to fill into the password text field
Returns:
the logon information or null if user pressed cancel

close

public boolean close()
See Also:
org.eclipse.jface.window.Window#close()


Copyright © 2005 SAP AG. All Rights Reserved.