]>
Commit | Line | Data |
---|---|---|
06a19cee | 1 | /** @file\r |
2 | \r | |
3 | The file is used to create, update Variable of MSA/MBD file\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 | |
15 | \r | |
16 | package org.tianocore.frameworkwizard.module.ui.dialog;\r | |
17 | \r | |
18 | import java.awt.event.ActionEvent;\r | |
19 | import java.util.Vector;\r | |
20 | \r | |
21 | import javax.swing.JButton;\r | |
22 | import javax.swing.JComboBox;\r | |
23 | import javax.swing.JLabel;\r | |
24 | import javax.swing.JPanel;\r | |
25 | import javax.swing.JScrollPane;\r | |
26 | import javax.swing.JTextField;\r | |
27 | \r | |
28 | import org.tianocore.frameworkwizard.common.DataType;\r | |
29 | import org.tianocore.frameworkwizard.common.DataValidation;\r | |
30 | import org.tianocore.frameworkwizard.common.EnumerationData;\r | |
31 | import org.tianocore.frameworkwizard.common.Log;\r | |
32 | import org.tianocore.frameworkwizard.common.Tools;\r | |
33 | import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;\r | |
34 | import org.tianocore.frameworkwizard.common.ui.IDialog;\r | |
35 | import org.tianocore.frameworkwizard.common.ui.IFrame;\r | |
36 | import org.tianocore.frameworkwizard.common.ui.StarLabel;\r | |
37 | import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;\r | |
38 | import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r | |
39 | \r | |
40 | /**\r | |
41 | The class is used to create, update Variable of MSA/MBD file\r | |
42 | It extends IInternalFrame\r | |
43 | \r | |
44 | **/\r | |
45 | public class VariablesDlg extends IDialog {\r | |
46 | \r | |
47 | ///\r | |
48 | /// Define class Serial Version UID\r | |
49 | ///\r | |
50 | private static final long serialVersionUID = -6998982978030439446L;\r | |
51 | \r | |
52 | //\r | |
53 | //Define class members\r | |
54 | //\r | |
55 | private JPanel jContentPane = null;\r | |
56 | \r | |
57 | private JLabel jLabelVariableName = null;\r | |
58 | \r | |
59 | private JTextField jTextFieldVariableName = null;\r | |
60 | \r | |
61 | private JLabel jLabelUsage = null;\r | |
62 | \r | |
63 | private JComboBox jComboBoxUsage = null;\r | |
64 | \r | |
65 | private StarLabel jStarLabel1 = null;\r | |
66 | \r | |
67 | private StarLabel jStarLabel2 = null;\r | |
68 | \r | |
69 | private JScrollPane jScrollPane = null;\r | |
70 | \r | |
71 | private JLabel jLabelGuidCName = null;\r | |
72 | \r | |
73 | private JComboBox jComboBoxGuidC_Name = null;\r | |
74 | \r | |
75 | private JTextField jTextFieldFeatureFlag = null;\r | |
76 | \r | |
77 | private JLabel jLabelFeatureFlag = null;\r | |
78 | \r | |
79 | private JLabel jLabelArch = null;\r | |
80 | \r | |
81 | private JLabel jLabelHelpText = null;\r | |
82 | \r | |
83 | private JTextField jTextFieldHelpText = null;\r | |
84 | \r | |
85 | private ArchCheckBox jArchCheckBox = null;\r | |
86 | \r | |
87 | private JButton jButtonOk = null;\r | |
88 | \r | |
89 | private JButton jButtonCancel = null;\r | |
90 | \r | |
91 | //\r | |
92 | // Not used by UI\r | |
93 | //\r | |
94 | private VariablesIdentification id = null;\r | |
95 | \r | |
96 | private EnumerationData ed = new EnumerationData();\r | |
97 | \r | |
98 | private WorkspaceTools wt = new WorkspaceTools();\r | |
99 | \r | |
100 | /**\r | |
101 | This method initializes jTextFieldString \r | |
102 | \r | |
103 | @return javax.swing.JTextField jTextFieldString\r | |
104 | \r | |
105 | **/\r | |
106 | private JTextField getJTextFieldString() {\r | |
107 | if (jTextFieldVariableName == null) {\r | |
108 | jTextFieldVariableName = new JTextField();\r | |
109 | jTextFieldVariableName.setSize(new java.awt.Dimension(320, 20));\r | |
110 | jTextFieldVariableName.setPreferredSize(new java.awt.Dimension(320, 20));\r | |
111 | jTextFieldVariableName.setLocation(new java.awt.Point(160, 10));\r | |
112 | jTextFieldVariableName\r | |
113 | Content-type: text/html ]>