org.eclipse.emf.emfstore.internal.client.ui.dialogs
Class AbstractLoginDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.jface.dialogs.TitleAreaDialog
                  extended by org.eclipse.emf.emfstore.internal.client.ui.dialogs.AbstractLoginDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
LoginDialog

public abstract class AbstractLoginDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog

Author:
emueller

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
AbstractLoginDialog(org.eclipse.swt.widgets.Shell parentShell, ILoginDialogController controller)
          Constructor.
 
Method Summary
 ILoginDialogController getController()
           
 String getPassword()
          Returns the password.
 Usersession getSelectedUsersession()
          Returns the selected session.
 boolean isPasswordModified()
          Whether the password has been modified.
 boolean isSavePassword()
          Whether the password should be saved.
 void setPassword(String password)
          Set the password.
 void setPasswordModified(boolean passwordModified)
          Sets whether the password has been modified.
 void setPasswordSaved(boolean shouldSave)
          Whether the password should be saved.
 void setSelectedSession(Usersession selectedSession)
          Sets the selected Usersession.
 
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
getErrorMessage, getMessage, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLoginDialog

public AbstractLoginDialog(org.eclipse.swt.widgets.Shell parentShell,
                           ILoginDialogController controller)
Constructor.

Parameters:
parentShell - the parent shell
controller - the login dialog controller responsible for opening up the login dialog
Method Detail

getSelectedUsersession

public Usersession getSelectedUsersession()
Returns the selected session.

Returns:
the selected session

setSelectedSession

public void setSelectedSession(Usersession selectedSession)
Sets the selected Usersession.

Parameters:
selectedSession - the selected Usersession

getPassword

public String getPassword()
Returns the password.

Returns:
the password

setPassword

public void setPassword(String password)
Set the password.

Parameters:
password - the password to be set

isSavePassword

public boolean isSavePassword()
Whether the password should be saved.

Returns:
true, if the password is saved, false otherwise

setPasswordSaved

public void setPasswordSaved(boolean shouldSave)
Whether the password should be saved.

Parameters:
shouldSave - true, if the password should be saved, false otherwise

isPasswordModified

public boolean isPasswordModified()
Whether the password has been modified.

Returns:
true, if the password has been modified, false otherwise

setPasswordModified

public void setPasswordModified(boolean passwordModified)
Sets whether the password has been modified.

Parameters:
passwordModified - true if the password has been modified, false otherwise

getController

public ILoginDialogController getController()
Returns:
the controller


Copyright © 2016. All Rights Reserved.