|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectLoginView
final class LoginView
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 :
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(LoginController aController)
| Method Detail |
|---|
void showLoginScreen()
void tryAgain()
String getUserName()
String getPassword()
void close()
|
My Movies 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||