1
2
3
4
5
6
7
8
9 package tsukuba_bunko.peko.canvas.select;
10
11
12 /***
13 * 選択肢です。
14 * @author $Author: ppoi $
15 * @version $Revision: 1.1 $
16 */
17 public class SelectItem {
18
19 /***
20 * 選択肢 ID
21 */
22 private String _id = null;
23
24 /***
25 * 表示するテキスト
26 */
27 private String _text = null;
28
29
30 /***
31 * <code>SelectItem</code> のインスタンスを作成します。
32 */
33 public SelectItem()
34 {
35 super();
36 }
37
38
39 /***
40 * 選択肢 ID を設定します。
41 * @param id 選択肢 ID
42 */
43 public void setID( String id )
44 {
45 _id = id;
46 }
47
48 /***
49 * 選択肢 ID を取得します。
50 * @return 選択肢 ID
51 */
52 public String getID()
53 {
54 return _id;
55 }
56
57 /***
58 * 表示する文字列を設定します。
59 * @param text 文字列
60 */
61 public void setText( String text )
62 {
63 _text = text;
64 }
65
66 /***
67 * 表示する文字列を取得します。
68 * @return 文字列
69 */
70 public String getText()
71 {
72 return _text;
73 }
74 }