My Movies 1.0.0

hirondelle.movies.login
Class LoginController

Object
  extended by LoginController
All Implemented Interfaces:
ActionListener, EventListener

public final class LoginController
extends Object
implements ActionListener

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

LOGIN

static final String LOGIN
Action command string.

See Also:
Constant Field Values

CANCEL

static final String CANCEL
Action command string.

See Also:
Constant Field Values
Constructor Detail

LoginController

public LoginController()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent aEvent)
Listen for button clicks on the LoginView screen - LOGIN or CANCEL.

Specified by:
actionPerformed in interface ActionListener

askUserForCredentials

public void askUserForCredentials()
Ask the end user for their user name and password.

This is the first screen displayed to the user upon startup.


validateUserCredentials

void validateUserCredentials()
Validate the user name and password entered by the user.

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

Copyright Hirondelle Systems - Generated 2008Dec30.15.53