screens
Class StartScreen

java.lang.Object
  extended by Form
      extended by screens.StartScreen

public class StartScreen
extends Form

The initial screen used for BadCoffee. When the screen is first set, it checks if the user has logged in already or not. If they have logged in, it moves them to the "Home" section of this screen.

Author:
John Van Enk

Constructor Summary
StartScreen(java.lang.String formTitle, BadCoffeeFinal p, User u)
          Constructor.
 
Method Summary
 void commandAction(Command command, Item item)
           
 void setupLogin()
          Sets up the screen for a login.
 void setupScreen()
          Sets up the home screen once the user has been authenticated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartScreen

public StartScreen(java.lang.String formTitle,
                   BadCoffeeFinal p,
                   User u)
Constructor.

Parameters:
formTitle - - The title of the form.
p - - The main link.
u - - The user object to use.
Method Detail

setupLogin

public void setupLogin()
Sets up the screen for a login. This includes loading all the necessary form elements and initializing them to their default values.


setupScreen

public void setupScreen()
Sets up the home screen once the user has been authenticated. If the user has not been authenticated, this creates the authentication screen.


commandAction

public void commandAction(Command command,
                          Item item)