KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > field > ajax > select > Option


1 package fr.improve.struts.taglib.layout.field.ajax.select;
2
3 /**
4  * <p>An <strong>Option</strong> is a JavaBean associated with an instance of
5  * <code>fr.improve.struts.taglib.layout.field.ajax.select.SelectOptionAction</code>.
6  * It holds value and label of an Option element.
7  *
8  * @author nsoule
9  */

10 public class Option {
11     
12     private String JavaDoc value;
13     private String JavaDoc label;
14     
15     //---------------------------------------------------- getters / setters
16
/**
17      * @return Returns the label.
18      */

19     public String JavaDoc getLabel() {
20         return label;
21     }
22     /**
23      * @param label The label to set.
24      */

25     public void setLabel(String JavaDoc label) {
26         this.label = label;
27     }
28     /**
29      * @return Returns the value.
30      */

31     public String JavaDoc getValue() {
32         return value;
33     }
34     /**
35      * @param value The value to set.
36      */

37     public void setValue(String JavaDoc value) {
38         this.value = value;
39     }
40
41 }
42
Popular Tags