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