GWTApplication.client
Class LoginPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by GWTApplication.client.FaultDBForm
                  extended by GWTApplication.client.LoginPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener

 class LoginPanel
extends FaultDBForm
implements com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener

This class will be used to permit the user to authenticate himself with the new system. It presents an interface which the user can use to input the details of his userid and password. The credentials will then be authenticated by the servlet and his priviledges will be returned.

Version:
$Id: LoginPanel.java,v 1.10 2008/01/15 11:08:16 cb Exp $
Author:
Craige Bevil

Field Summary
private  FaultUpdateMonitor faultUpdateMonitor
          Used to check the database intermittingly and report back to listeners which faults they are displaying have changed so that they may update their view accordingly.
private  com.google.gwt.user.client.ui.Button LoginButton
          This is the button which the user will use to log onto the system.
(package private)  FDBLoginListener LoginListener
          This is an object which implements the FDBLoginListener interface which will be informed when the user has authenticated himself with the system and what the level of the priviledge is
private  com.google.gwt.user.client.ui.Button LoginNoIdButton
          The user can press this button to log into the system if he does not have a user id or password
private  com.google.gwt.user.client.ui.FlexTable LoginTable
          This will contain all of the fields in which the user will enter his log on credentials
private  com.google.gwt.user.client.ui.DockPanel MainPanel
          This is the dock panel which will be used for holding all of elements in the display
(package private)  com.google.gwt.user.client.ui.PasswordTextBox PasswordWidget
          This is the text box widget which the user will use to enter his password
private  com.google.gwt.user.client.ui.CheckBox StoreLoginCredentialsCheckBox
          Widget which is used to allow the user to store the details of his logon id as a cookie on his machine
private  FaultServiceAsync svc
          This is the service which will be used to access the database.
private  AuthenticationDetails UserAuthentication
          This is the authentication data which is associated with the user which will be returned by the sevlet once the user has authenticated himself.
(package private)  com.google.gwt.user.client.ui.TextBox UserIdentifierWidget
          This is the text box widget which the user will use to enter his user name
private  com.google.gwt.user.client.ui.VerticalPanel UserLoginPanel
          This is the main panel into which we will pack everything
 
Fields inherited from class GWTApplication.client.FaultDBForm
busyIndicator, internationalizationConstants, NOLENGTHCHECK, PrinterList
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Constructor Summary
LoginPanel(FaultServiceAsync svc, FDBLoginListener LoginListener)
          Constructor which will create a panel into which the user enter the details of his username and password.
 
Method Summary
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          Implements the interface which is associated with the ClickListener interface and is called when the user presses buttons in the Login panel interface
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          An obligation to the KeyboardListener interface.
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          Called when the user presses the return key in the login panel.
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          An obligation to the KeyboardListener interface.
private  void resetUserCredentialFields()
           
 
Methods inherited from class GWTApplication.client.FaultDBForm
createEmailLink, fillListBoxWithCurrentInstruments, fillListBoxWithDutyTechnicians, fillListBoxWithFaultType, fillListBoxWithInstruments, fillListBoxWithSeverity, fillListBoxWithSites, fillListBoxWithStaffMembers, fillListBoxWithStates, fillListBoxWithSupportAstronomers, fillListBoxWithSystems, fillListBoxWithTelescopeOperators, getCurrentDate, getCurrentTime, getFullUserNameFromEmailAddress, selectDefaultListOption, setSelectedItemInListbox, stringContainsText, verifyDateFormat, verifyDateNotInFuture, verifyText, verifyTimeFormat
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

StoreLoginCredentialsCheckBox

private com.google.gwt.user.client.ui.CheckBox StoreLoginCredentialsCheckBox
Widget which is used to allow the user to store the details of his logon id as a cookie on his machine


UserAuthentication

private AuthenticationDetails UserAuthentication
This is the authentication data which is associated with the user which will be returned by the sevlet once the user has authenticated himself.


LoginButton

private final com.google.gwt.user.client.ui.Button LoginButton
This is the button which the user will use to log onto the system.


LoginNoIdButton

private final com.google.gwt.user.client.ui.Button LoginNoIdButton
The user can press this button to log into the system if he does not have a user id or password


svc

private final FaultServiceAsync svc
This is the service which will be used to access the database.


LoginTable

private final com.google.gwt.user.client.ui.FlexTable LoginTable
This will contain all of the fields in which the user will enter his log on credentials


UserLoginPanel

private final com.google.gwt.user.client.ui.VerticalPanel UserLoginPanel
This is the main panel into which we will pack everything


MainPanel

private final com.google.gwt.user.client.ui.DockPanel MainPanel
This is the dock panel which will be used for holding all of elements in the display


UserIdentifierWidget

com.google.gwt.user.client.ui.TextBox UserIdentifierWidget
This is the text box widget which the user will use to enter his user name


PasswordWidget

com.google.gwt.user.client.ui.PasswordTextBox PasswordWidget
This is the text box widget which the user will use to enter his password


LoginListener

FDBLoginListener LoginListener
This is an object which implements the FDBLoginListener interface which will be informed when the user has authenticated himself with the system and what the level of the priviledge is


faultUpdateMonitor

private FaultUpdateMonitor faultUpdateMonitor
Used to check the database intermittingly and report back to listeners which faults they are displaying have changed so that they may update their view accordingly.

Constructor Detail

LoginPanel

LoginPanel(FaultServiceAsync svc,
           FDBLoginListener LoginListener)
Constructor which will create a panel into which the user enter the details of his username and password.

Method Detail

resetUserCredentialFields

private void resetUserCredentialFields()

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
Implements the interface which is associated with the ClickListener interface and is called when the user presses buttons in the Login panel interface

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener
Parameters:
sender - The widget that was clicked.

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifiers)
An obligation to the KeyboardListener interface. Not Used.

Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifiers)
Called when the user presses the return key in the login panel. We automatically attempt to log the user on if he presses the return key

Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifiers)
An obligation to the KeyboardListener interface. Not Used.

Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener