[mobility] How doe the LoginScreen component "knows" that login is successful?

  • From: "Amry" < >
  • To:
  • Subject: [mobility] How doe the LoginScreen component "knows" that login is successful?
  • Date: Fri, 28 Dec 2012 11:24:25 -0500

Hello all,

I've been using the following tutorial in trying to create a login screen for 
my app: http://netbeans.org/kb/71/javame/loginscreen.html#javadoc-loginscreen

However, I found out something strange: in this page, if you examine the flow 
diagram, you'll see that if the login is successful, the app will next go to 
SUCCESS_COMMAND and then alertSuccess; otherwise, it will follow the 
FAILURE_COMMAND - alertFailure route. 

My question though, is this: how does the program "knows" if the login 
process failed or not? Early on, the login variable is declared as boolean, 
but this is rather arbitrary - will the LoginScreen component automatically 
identify a variable known as "login" for this purpose? I tried on my own 
program and it doesn't seem to be so.

I tried reading the javadoc for the LoginScreen class, but there are no 
functions along the lines of getLoginSuccess or something in the same vein. 
Can anyone more knowledgeable shed some light into this mystery?

Your help will be very much appreciated.






[mobility] How doe the LoginScreen component "knows" that login is successful?

Amry 12/28/2012

Project Features

About this Project

Mobility was started in November 2009, is owned by dstrupl, and has 37 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close