]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/iCheckBoxList/ICheckBoxListItem.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / iCheckBoxList / ICheckBoxListItem.java
CommitLineData
a13899c5 1/** @file\r
2 \r
3 The file is used to create list item for CheckBox list\r
4 \r
5 Copyright (c) 2006, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13 \r
14 **/\r
15package org.tianocore.frameworkwizard.common.ui.iCheckBoxList;\r
16\r
17public class ICheckBoxListItem {\r
18\r
19 //\r
20 // Define Class Members\r
21 //\r
22 protected String text;\r
23\r
24 protected boolean checked;\r
25\r
26 /**\r
27 This is the default constructor to set check box item string\r
28 \r
29 @param text\r
30 \r
31 **/\r
32 public ICheckBoxListItem(String text) {\r
33 this.text = text;\r
34 }\r
35\r
36 /**\r
37 This is the override constructor to set check box item string and checked status\r
38 \r
39 @param text\r
40 @param checked\r
41 \r
42 **/\r
43 public ICheckBoxListItem(String text, boolean checked) {\r
44 this.text = text;\r
45 this.checked = checked;\r
46 }\r
47\r
48 /**\r
49 set the checked status\r
50 if true, set false\r
51 if false, set true\r
52 \r
53 **/\r
54 public void invertChecked() {\r
55 checked = !checked;\r
56 }\r
57\r
58 public boolean isChecked() {\r
59 return checked;\r
60 }\r
61\r
62 public void setChecked(boolean checked) {\r
63 this.checked = checked;\r
64 }\r
65\r
66 public String getText() {\r
67 return text;\r
68 }\r
69\r
70 public void setText(String text) {\r
71 this.text = text;\r
72 }\r
73\r
74}\r