|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectLoginController
public final class LoginController
Allow only authenticated users to log in to the application.
This implementation is only a toy. It doesn't perform realistic validation of user name and password. For your own applications, you will need to supply your own implementation.
| Field Summary | |
|---|---|
(package private) static String |
CANCEL
Action command string. |
(package private) static String |
LOGIN
Action command string. |
| Constructor Summary | |
|---|---|
LoginController()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent aEvent)
Listen for button clicks on the LoginView screen - LOGIN or CANCEL. |
void |
askUserForCredentials()
Ask the end user for their user name and password. |
(package private) void |
validateUserCredentials()
Validate the user name and password entered by the user. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final String LOGIN
static final String CANCEL
| Constructor Detail |
|---|
public LoginController()
| Method Detail |
|---|
public void actionPerformed(ActionEvent aEvent)
LoginView screen - LOGIN or CANCEL.
actionPerformed in interface ActionListenerpublic void askUserForCredentials()
This is the first screen displayed to the user upon startup.
void validateUserCredentials()
If the validation succeeds, close the login screen and display the MainWindow.
If the validation fails, allow the user to make a few more attempts at login.
If the validation fails repeatedly, close the application.
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||