+++ /dev/null
-/** @file\r
- \r
- The file is used to create list item for CheckBox list\r
- \r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
- \r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
- \r
- **/\r
-package org.tianocore.frameworkwizard.common.ui.iCheckBoxList;\r
-\r
-public class ICheckBoxListItem {\r
-\r
- //\r
- // Define Class Members\r
- //\r
- protected String text;\r
-\r
- protected boolean checked;\r
-\r
- /**\r
- This is the default constructor to set check box item string\r
- \r
- @param text\r
- \r
- **/\r
- public ICheckBoxListItem(String text) {\r
- this.text = text;\r
- }\r
-\r
- /**\r
- This is the override constructor to set check box item string and checked status\r
- \r
- @param text\r
- @param checked\r
- \r
- **/\r
- public ICheckBoxListItem(String text, boolean checked) {\r
- this.text = text;\r
- this.checked = checked;\r
- }\r
-\r
- /**\r
- set the checked status\r
- if true, set false\r
- if false, set true\r
- \r
- **/\r
- public void invertChecked() {\r
- checked = !checked;\r
- }\r
-\r
- public boolean isChecked() {\r
- return checked;\r
- }\r
-\r
- public void setChecked(boolean checked) {\r
- this.checked = checked;\r
- }\r
-\r
- public String getText() {\r
- return text;\r
- }\r
-\r
- public void setText(String text) {\r
- this.text = text;\r
- }\r
-\r
-}\r