|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
GWTApplication.client.FaultDBForm
GWTApplication.client.LoginPanel
class LoginPanel
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.
| 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 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 |
|---|
private com.google.gwt.user.client.ui.CheckBox StoreLoginCredentialsCheckBox
private AuthenticationDetails UserAuthentication
private final com.google.gwt.user.client.ui.Button LoginButton
private final com.google.gwt.user.client.ui.Button LoginNoIdButton
private final FaultServiceAsync svc
private final com.google.gwt.user.client.ui.FlexTable LoginTable
private final com.google.gwt.user.client.ui.VerticalPanel UserLoginPanel
private final com.google.gwt.user.client.ui.DockPanel MainPanel
com.google.gwt.user.client.ui.TextBox UserIdentifierWidget
com.google.gwt.user.client.ui.PasswordTextBox PasswordWidget
FDBLoginListener LoginListener
private FaultUpdateMonitor faultUpdateMonitor
| Constructor Detail |
|---|
LoginPanel(FaultServiceAsync svc,
FDBLoginListener LoginListener)
| Method Detail |
|---|
private void resetUserCredentialFields()
public void onClick(com.google.gwt.user.client.ui.Widget sender)
onClick in interface com.google.gwt.user.client.ui.ClickListenersender - The widget that was clicked.
public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
char keyCode,
int modifiers)
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener
public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
char keyCode,
int modifiers)
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener
public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
char keyCode,
int modifiers)
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||