KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > javaee > blueprints > rating > RatingBean


1 package com.sun.javaee.blueprints.rating;
2 /*
3  * RatingBean.java
4  *
5  * Created on March 14, 2006, 4:05 PM
6  *
7  * To change this template, choose Tools | Template Manager
8  * and open the template in the editor.
9  */

10
11 /**
12  *
13  * @author basler
14  */

15 public class RatingBean {
16     
17     private int grade=0, grade2=0, grade3=0;
18     
19     /** Creates a new instance of RatingBean */
20     public RatingBean() {
21     }
22     
23     public String JavaDoc[] getRatingText() {
24         return new String JavaDoc[]{"Hate It", "Below Average", "Average", "Above Average", "Love It"};
25     }
26     
27     
28     public void setGrade(int grade) {
29         this.grade=grade;
30     }
31     public int getGrade() {
32         return grade;
33     }
34     
35     public void setGrade2(int grade) {
36         this.grade2=grade;
37     }
38     public int getGrade2() {
39         return grade2;
40     }
41     
42     public void setGrade3(int grade) {
43         this.grade3=grade;
44     }
45     public int getGrade3() {
46         return grade3;
47     }
48     
49 }
50
Popular Tags