My Movies 1.0.0

hirondelle.movies.login
Class LoginView

Object
  extended by LoginView

final class LoginView
extends Object

Show a screen asking the user for their user name and password.

This class wires its actions to call the LoginController when a button is clicked.

This implementation of a login screen can be improved. Currently, it uses StandardDialog, in order to demonstrate reuse of a standard dialog class. However, a login screen should be a JFrame, not a dialog. This results in some issues :

You can fix these issues by not using StandardDialog, and just using a JFrame instead.


Constructor Summary
LoginView(LoginController aController)
          Constructor.
 
Method Summary
(package private)  void close()
          Remove the login screen.
(package private)  String getPassword()
          Return the password entered by the user.
(package private)  String getUserName()
          Return the user name entered by the user.
(package private)  void showLoginScreen()
          Show the login screen.
(package private)  void tryAgain()
          Allow the user to attempt to log in again.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginView

LoginView(LoginController aController)
Constructor.

Method Detail

showLoginScreen

void showLoginScreen()
Show the login screen.


tryAgain

void tryAgain()
Allow the user to attempt to log in again.


getUserName

String getUserName()
Return the user name entered by the user.


getPassword

String getPassword()
Return the password entered by the user.


close

void close()
Remove the login screen.


My Movies 1.0.0

Copyright Hirondelle Systems - Generated 2008Dec30.15.53