com.mycompany.poll
Class PollBean

java.lang.Object
  extended bycom.mycompany.poll.PollBean

public class PollBean
extends java.lang.Object

This class is a simple bean used for the quick poll example. It just keep track of three alternative votes and the total of votes.

Version:
1.0
Author:
Hans Bergsten, Gefion Software

Field Summary
private  boolean showScore
           
private  int total
           
private  int vote1
           
private  int vote2
           
private  int vote3
           
 
Constructor Summary
PollBean()
           
 
Method Summary
 boolean getShowScore()
           
 int getTotal()
           
 double getVote1Score()
           
 double getVote2Score()
           
 double getVote3Score()
           
 java.lang.String vote1()
           
 java.lang.String vote2()
           
 java.lang.String vote3()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vote1

private int vote1

vote2

private int vote2

vote3

private int vote3

total

private int total

showScore

private boolean showScore
Constructor Detail

PollBean

public PollBean()
Method Detail

vote1

public java.lang.String vote1()

vote2

public java.lang.String vote2()

vote3

public java.lang.String vote3()

getShowScore

public boolean getShowScore()

getTotal

public int getTotal()

getVote1Score

public double getVote1Score()

getVote2Score

public double getVote2Score()

getVote3Score

public double getVote3Score()