]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/iCheckBoxList/ICheckBoxList.java
1. Restructure module description on main UI
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / iCheckBoxList / ICheckBoxList.java
index 5ad0533eec15aad9eba73865c79633cf2c79b397..2361c77e617b6fd1fa0af54a412d21d3c8e8fead 100644 (file)
@@ -86,6 +86,22 @@ public class ICheckBoxList extends JList {
         }\r
         return result;\r
     }\r
+    \r
+    /**\r
+    Get All Checked Items index of the CheckBoxList component.\r
+    \r
+    @return    All Checked Items index\r
+    **/\r
+   public Vector<Integer> getAllCheckedItemsIndex() {\r
+       Vector<Integer> result = new Vector<Integer>();\r
+\r
+       for (int i = 0; i < this.getModel().getSize(); i++) {\r
+           if (((ICheckBoxListItem) this.getModel().getElementAt(i)).isChecked()) {\r
+               result.addElement(i);\r
+           }\r
+       }\r
+       return result;\r
+   }\r
 \r
     /**\r
      Get All Checked Items String of the CheckBoxList component.\r