net.trajano.twiff.sample.web
Class Guess

java.lang.Object
  extended by net.trajano.twiff.sample.web.Guess
All Implemented Interfaces:
Serializable

public class Guess
extends Object
implements Serializable

Page bean that handles the guess application.

Author:
Archimedes Trajano
See Also:
Serialized Form

Constructor Summary
Guess(NumberToGuess numberToGuess)
          Constructs the page bean.
 
Method Summary
 int getGuess()
           
 String getHint()
           
 NumberToGuess getNumberToGuess()
           
 Object play()
          Performs the action logic.
 void setGuess(int guess)
          Sets the guess from the POST parameters.
 void setHint(String hint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Guess

public Guess(NumberToGuess numberToGuess)
Constructs the page bean.

Parameters:
numberToGuess - the number to guess stored in the session.
Method Detail

getGuess

public final int getGuess()
Returns:
Returns the guess.

getHint

public final String getHint()
Returns:
Returns the hint.

getNumberToGuess

public final NumberToGuess getNumberToGuess()
Returns:
Returns the numberToGuess.

play

public final Object play()
                  throws MalformedURLException
Performs the action logic.

Returns:
action result.
Throws:
MalformedURLException

setGuess

public final void setGuess(int guess)
Sets the guess from the POST parameters.

Parameters:
guess - The guess to set.

setHint

public final void setHint(String hint)
Parameters:
hint - The hint to set.


Copyright © 2004-2005 trajano.net. All Rights Reserved.