|
||||||||||
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.ManageSystem
class ManageSystem
This class will be used to add to a tab panel, a form which may be used by a privileged use it to administer the fault management system. It will allow the user to Update for example the list of uses of the system, reset passwords and add new components into the list which represents data within the systems.
The user in order to perform this role, must authenticate himself against the system before any changes that he makes will be accepted by the system.
Nested Class Summary | |
---|---|
(package private) class |
ManageSystem.InterfaceInputField
This will be used for collating together all of the information associated with an input field in the form |
Field Summary | |
---|---|
private com.google.gwt.user.client.ui.Button |
CreateNewUserButton
This is the button which will be pressed to generate a new user |
(package private) static int |
DUTYTECHNICIANIDX
|
(package private) static int |
INSTRUMENTIDX
|
(package private) ManageSystem.InterfaceInputField[] |
InterfaceInputFields
|
private com.google.gwt.user.client.ui.TextBox |
MailAddressOfNewUser
This is the text box which the user will use to enter the email address of the new user to the system |
private com.google.gwt.user.client.ui.HorizontalPanel |
mainPanel
This is the main panel into which we pack up all of the Widgets which comprise this form. |
private com.google.gwt.user.client.ui.TextBox |
NameOfNewUser
This is the text box which the user will use to enter the name of the new user to the system |
private com.google.gwt.user.client.ui.PasswordTextBox |
PasswordConfirmField
This is the field into which the user will use to confirm the password |
private com.google.gwt.user.client.ui.PasswordTextBox |
PasswordField
This is the field into which the user will enter the details of the new password for a user |
private com.google.gwt.user.client.ui.Button |
ResetPasswordButton
This is the button which is to be used for resetting the password of a user |
(package private) static int |
SUPPORTASTRONOMERIDX
|
private com.google.gwt.user.client.ui.TextBox |
SurnameOfNewUser
This is the text box which the user will use to enter the surname of the new user to the system |
(package private) static int |
SYSTEMIDX
|
(package private) static int |
TELESCOPEOPERATORIDX
|
private com.google.gwt.user.client.ui.ListBox |
UserToChangePwdList
This is the list of users from which the user can select the name of the person who he wants to change the password for. |
Fields inherited from class GWTApplication.client.FaultDBForm |
---|
busyIndicator, internationalizationConstants, NOLENGTHCHECK, PrinterList, svc, UserAuthentication |
Constructor Summary | |
---|---|
ManageSystem(com.google.gwt.user.client.ui.TabPanel MainTabPanel,
FaultServiceAsync svc,
AuthenticationDetails UserAuthentication)
This is used to create the panel which will be used by the manager of the system to manage the data |
Method Summary | |
---|---|
private void |
addNewInstrumentToSystem()
Creates a new instrument in the system after first ensuring that the user has filled in the field correctly. |
private void |
addNewSystemToSystem()
Creates a new system in the system after first ensuring that the user has filled in the field correctly. |
private void |
createNewRoleForUser(int WidgetIndex,
java.lang.Integer Role,
java.lang.String RoleDescription)
Creates a new role for a user. |
private void |
createNewUser()
This will add a new user to the system. |
void |
onClick(com.google.gwt.user.client.ui.Widget sender)
Called when the user presses one of the buttons on the interface and requests the business associated with that button to be performed. |
private void |
resetPasswordForUser()
This is a callback which is attached to the reset password button which will permit the manager to reset the password of a user |
private void |
setupDropDownList(java.lang.Integer GroupToExclude,
com.google.gwt.user.client.ui.ListBox listBox)
Used to fill the drop down menu which contains a list of all of the people who are not in the group which is specified in the GroupToExclude parameter |
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 |
---|
static final int INSTRUMENTIDX
static final int TELESCOPEOPERATORIDX
static final int DUTYTECHNICIANIDX
static final int SUPPORTASTRONOMERIDX
static final int SYSTEMIDX
final ManageSystem.InterfaceInputField[] InterfaceInputFields
private com.google.gwt.user.client.ui.Button ResetPasswordButton
private final com.google.gwt.user.client.ui.PasswordTextBox PasswordField
private final com.google.gwt.user.client.ui.PasswordTextBox PasswordConfirmField
private final com.google.gwt.user.client.ui.ListBox UserToChangePwdList
private com.google.gwt.user.client.ui.Button CreateNewUserButton
private final com.google.gwt.user.client.ui.TextBox NameOfNewUser
private final com.google.gwt.user.client.ui.TextBox SurnameOfNewUser
private com.google.gwt.user.client.ui.TextBox MailAddressOfNewUser
private final com.google.gwt.user.client.ui.HorizontalPanel mainPanel
Constructor Detail |
---|
ManageSystem(com.google.gwt.user.client.ui.TabPanel MainTabPanel, FaultServiceAsync svc, AuthenticationDetails UserAuthentication)
Method Detail |
---|
private void setupDropDownList(java.lang.Integer GroupToExclude, com.google.gwt.user.client.ui.ListBox listBox)
listBox
- This is the list into which we should put the staff memberspublic void onClick(com.google.gwt.user.client.ui.Widget sender)
onClick
in interface com.google.gwt.user.client.ui.ClickListener
sender
- This is the widget which is reponsible for the
click event and we will use this to establish exactly what the
user was trying to do with the interface.private void resetPasswordForUser()
private void createNewUser()
private void addNewInstrumentToSystem()
private void addNewSystemToSystem()
private void createNewRoleForUser(int WidgetIndex, java.lang.Integer Role, java.lang.String RoleDescription)
WidgetIndex
- This is the index into the array which contains the drop down listboxes with the names of the potential members of the roles.Role
- This is the role into which he will be placed i.e. Support astronomer, TO etc.RoleDescription
- This is the description of the role in
natural language expressed in the language of the current
locale.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |