]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/ArchCheckBox.java
Retiring the ANT/JAVA build and removing the older EDK II packages that required...
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / ArchCheckBox.java
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/ArchCheckBox.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/ArchCheckBox.java
deleted file mode 100644 (file)
index d02c121..0000000
+++ /dev/null
@@ -1,318 +0,0 @@
-/** @file\r
\r
- The file is used to provid 6 kinds of arch in one jpanel \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
-\r
-package org.tianocore.frameworkwizard.common.ui;\r
-\r
-import java.util.Vector;\r
-\r
-import javax.swing.JCheckBox;\r
-import javax.swing.JPanel;\r
-\r
-import org.tianocore.frameworkwizard.common.DataType;\r
-\r
-public class ArchCheckBox extends JPanel {\r
-\r
-    ///\r
-    /// Define class members\r
-    ///\r
-    private static final long serialVersionUID = 4792669775676953990L;\r
-\r
-    private JCheckBox jCheckBoxIa32 = null;\r
-\r
-    private JCheckBox jCheckBoxX64 = null;\r
-\r
-    private JCheckBox jCheckBoxIpf = null;\r
-\r
-    private JCheckBox jCheckBoxEbc = null;\r
-\r
-    private JCheckBox jCheckBoxArm = null;\r
-\r
-    private JCheckBox jCheckBoxPpc = null;\r
-\r
-    /**\r
-     * This method initializes jCheckBoxIa32   \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxIa32() {\r
-        if (jCheckBoxIa32 == null) {\r
-            jCheckBoxIa32 = new JCheckBox();\r
-            jCheckBoxIa32.setBounds(new java.awt.Rectangle(0, 0, 55, 20));\r
-            jCheckBoxIa32.setText("IA32");\r
-            jCheckBoxIa32.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxIa32;\r
-    }\r
-\r
-    /**\r
-     * This method initializes jCheckBoxX64    \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxX64() {\r
-        if (jCheckBoxX64 == null) {\r
-            jCheckBoxX64 = new JCheckBox();\r
-            jCheckBoxX64.setBounds(new java.awt.Rectangle(55, 0, 53, 20));\r
-            jCheckBoxX64.setText("X64");\r
-            jCheckBoxX64.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxX64;\r
-    }\r
-\r
-    /**\r
-     * This method initializes jCheckBoxIpf    \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxIpf() {\r
-        if (jCheckBoxIpf == null) {\r
-            jCheckBoxIpf = new JCheckBox();\r
-            jCheckBoxIpf.setBounds(new java.awt.Rectangle(108, 0, 52, 20));\r
-            jCheckBoxIpf.setText("IPF");\r
-            jCheckBoxIpf.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxIpf;\r
-    }\r
-\r
-    /**\r
-     * This method initializes jCheckBoxEbc    \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxEbc() {\r
-        if (jCheckBoxEbc == null) {\r
-            jCheckBoxEbc = new JCheckBox();\r
-            jCheckBoxEbc.setBounds(new java.awt.Rectangle(160, 0, 53, 20));\r
-            jCheckBoxEbc.setText("EBC");\r
-            jCheckBoxEbc.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxEbc;\r
-    }\r
-\r
-    /**\r
-     * This method initializes jCheckBoxArm    \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxArm() {\r
-        if (jCheckBoxArm == null) {\r
-            jCheckBoxArm = new JCheckBox();\r
-            jCheckBoxArm.setBounds(new java.awt.Rectangle(213, 0, 54, 20));\r
-            jCheckBoxArm.setText("ARM");\r
-            jCheckBoxArm.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxArm;\r
-    }\r
-\r
-    /**\r
-     * This method initializes jCheckBoxPpc    \r
-     *         \r
-     * @return javax.swing.JCheckBox   \r
-     */\r
-    private JCheckBox getJCheckBoxPpc() {\r
-        if (jCheckBoxPpc == null) {\r
-            jCheckBoxPpc = new JCheckBox();\r
-            jCheckBoxPpc.setBounds(new java.awt.Rectangle(267, 0, 53, 20));\r
-            jCheckBoxPpc.setText("PPC");\r
-            jCheckBoxPpc.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-        }\r
-        return jCheckBoxPpc;\r
-    }\r
-\r
-    /**\r
-     * This is the default constructor\r
-     */\r
-    public ArchCheckBox() {\r
-        super();\r
-        initialize();\r
-    }\r
-\r
-    /**\r
-     * This method initializes this\r
-     * \r
-     * @return void\r
-     */\r
-    private void initialize() {\r
-        this.setSize(320, 20);\r
-        this.setLayout(null);\r
-        this.add(getJCheckBoxIa32(), null);\r
-        this.add(getJCheckBoxX64(), null);\r
-        this.add(getJCheckBoxIpf(), null);\r
-        this.add(getJCheckBoxEbc(), null);\r
-        this.add(getJCheckBoxArm(), null);\r
-        this.add(getJCheckBoxPpc(), null);\r
-        this.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
-    }\r
-\r
-    public Vector<String> getSelectedItemsVector() {\r
-        Vector<String> v = new Vector<String>();\r
-        if (this.jCheckBoxIa32.isSelected() && this.jCheckBoxIa32.isEnabled()) {\r
-            v.addElement(jCheckBoxIa32.getText());\r
-        }\r
-        if (this.jCheckBoxX64.isSelected() && this.jCheckBoxX64.isEnabled()) {\r
-            v.addElement(jCheckBoxX64.getText());\r
-        }\r
-        if (this.jCheckBoxIpf.isSelected() && this.jCheckBoxIpf.isEnabled()) {\r
-            v.addElement(jCheckBoxIpf.getText());\r
-        }\r
-        if (this.jCheckBoxEbc.isSelected() && this.jCheckBoxEbc.isEnabled()) {\r
-            v.addElement(jCheckBoxEbc.getText());\r
-        }\r
-        if (this.jCheckBoxArm.isSelected() && this.jCheckBoxArm.isEnabled()) {\r
-            v.addElement(jCheckBoxArm.getText());\r
-        }\r
-        if (this.jCheckBoxPpc.isSelected() && this.jCheckBoxPpc.isEnabled()) {\r
-            v.addElement(jCheckBoxPpc.getText());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public String getSelectedItemsString() {\r
-        String s = "";\r
-        if (this.jCheckBoxIa32.isSelected() && this.jCheckBoxIa32.isEnabled()) {\r
-            s = s + jCheckBoxIa32.getText() + " ";\r
-        }\r
-        if (this.jCheckBoxX64.isSelected() && this.jCheckBoxX64.isEnabled()) {\r
-            s = s + jCheckBoxX64.getText() + " ";\r
-        }\r
-        if (this.jCheckBoxIpf.isSelected() && this.jCheckBoxIpf.isEnabled()) {\r
-            s = s + jCheckBoxIpf.getText() + " ";\r
-        }\r
-        if (this.jCheckBoxEbc.isSelected() && this.jCheckBoxEbc.isEnabled()) {\r
-            s = s + jCheckBoxEbc.getText() + " ";\r
-        }\r
-        if (this.jCheckBoxArm.isSelected() && this.jCheckBoxArm.isEnabled()) {\r
-            s = s + jCheckBoxArm.getText() + " ";\r
-        }\r
-        if (this.jCheckBoxPpc.isSelected() && this.jCheckBoxPpc.isEnabled()) {\r
-            s = s + jCheckBoxPpc.getText() + " ";\r
-        }\r
-        return s.trim();\r
-    }\r
-\r
-    public void setAllItemsSelected(boolean isSelected) {\r
-        this.jCheckBoxIa32.setSelected(isSelected);\r
-        this.jCheckBoxX64.setSelected(isSelected);\r
-        this.jCheckBoxIpf.setSelected(isSelected);\r
-        this.jCheckBoxEbc.setSelected(isSelected);\r
-        this.jCheckBoxArm.setSelected(isSelected);\r
-        this.jCheckBoxPpc.setSelected(isSelected);\r
-    }\r
-\r
-    public void setSelectedItems(Vector<String> v) {\r
-        setAllItemsSelected(false);\r
-        if (v != null) {\r
-            for (int index = 0; index < v.size(); index++) {\r
-                if (v.get(index).equals(this.jCheckBoxIa32.getText())) {\r
-                    this.jCheckBoxIa32.setSelected(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxIpf.getText())) {\r
-                    this.jCheckBoxIpf.setSelected(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxX64.getText())) {\r
-                    this.jCheckBoxX64.setSelected(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxEbc.getText())) {\r
-                    this.jCheckBoxEbc.setSelected(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxArm.getText())) {\r
-                    this.jCheckBoxArm.setSelected(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxPpc.getText())) {\r
-                    this.jCheckBoxPpc.setSelected(true);\r
-                    continue;\r
-                }\r
-            }\r
-        }\r
-    }\r
-\r
-    public void setAllItemsEnabled(boolean isEnabled) {\r
-        this.jCheckBoxIa32.setEnabled(isEnabled);\r
-        this.jCheckBoxX64.setEnabled(isEnabled);\r
-        this.jCheckBoxIpf.setEnabled(isEnabled);\r
-        this.jCheckBoxEbc.setEnabled(isEnabled);\r
-        this.jCheckBoxArm.setEnabled(isEnabled);\r
-        this.jCheckBoxPpc.setEnabled(isEnabled);\r
-    }\r
-\r
-    public void setEnabledItems(Vector<String> v) {\r
-        setAllItemsEnabled(false);\r
-        if (v != null) {\r
-            for (int index = 0; index < v.size(); index++) {\r
-                if (v.get(index).equals(this.jCheckBoxIa32.getText())) {\r
-                    this.jCheckBoxIa32.setEnabled(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxIpf.getText())) {\r
-                    this.jCheckBoxIpf.setEnabled(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxX64.getText())) {\r
-                    this.jCheckBoxX64.setEnabled(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxEbc.getText())) {\r
-                    this.jCheckBoxEbc.setEnabled(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxArm.getText())) {\r
-                    this.jCheckBoxArm.setEnabled(true);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxPpc.getText())) {\r
-                    this.jCheckBoxPpc.setEnabled(true);\r
-                    continue;\r
-                }\r
-            }\r
-        }\r
-    }\r
-\r
-    public void setDisabledItems(Vector<String> v) {\r
-        setAllItemsEnabled(true);\r
-        if (v != null) {\r
-            for (int index = 0; index < v.size(); index++) {\r
-                if (v.get(index).equals(this.jCheckBoxIa32.getText())) {\r
-                    this.jCheckBoxIa32.setEnabled(false);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxIpf.getText())) {\r
-                    this.jCheckBoxIpf.setEnabled(false);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxX64.getText())) {\r
-                    this.jCheckBoxX64.setEnabled(false);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxEbc.getText())) {\r
-                    this.jCheckBoxEbc.setEnabled(false);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxArm.getText())) {\r
-                    this.jCheckBoxArm.setEnabled(false);\r
-                    continue;\r
-                }\r
-                if (v.get(index).equals(this.jCheckBoxPpc.getText())) {\r
-                    this.jCheckBoxPpc.setEnabled(false);\r
-                    continue;\r
-                }\r
-            }\r
-        }\r
-    }\r
-}\r