final class LoginView extends Object
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 :
StandardDialog
, and just using a JFrame
instead.Constructor and Description |
---|
LoginView(LoginController aController)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(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.
|
LoginView(LoginController aController)
void showLoginScreen()
void tryAgain()
String getUserName()
String getPassword()
void close()
Copyright Hirondelle Systems - Generated 2013Sep20.11.16