]>
Commit | Line | Data |
---|---|---|
a13899c5 | 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;\r | |
17 | \r | |
18 | import java.awt.event.ActionEvent;\r | |
19 | import java.awt.event.ComponentEvent;\r | |
20 | import java.awt.event.ItemEvent;\r | |
21 | import java.util.Vector;\r | |
22 | \r | |
23 | import javax.swing.JButton;\r | |
24 | import javax.swing.JComboBox;\r | |
25 | import javax.swing.JLabel;\r | |
26 | import javax.swing.JPanel;\r | |
27 | import javax.swing.JScrollPane;\r | |
28 | import javax.swing.JTextArea;\r | |
29 | import javax.swing.JTextField;\r | |
30 | \r | |
31 | import org.tianocore.VariableUsage;\r | |
32 | import org.tianocore.VariablesDocument;\r | |
33 | import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r | |
34 | import org.tianocore.VariablesDocument.Variables;\r | |
35 | import org.tianocore.VariablesDocument.Variables.Variable;\r | |
36 | import org.tianocore.frameworkwizard.common.DataType;\r | |
37 | import org.tianocore.frameworkwizard.common.DataValidation;\r | |
38 | import org.tianocore.frameworkwizard.common.EnumerationData;\r | |
39 | import org.tianocore.frameworkwizard.common.Log;\r | |
a13899c5 | 40 | import org.tianocore.frameworkwizard.common.Tools;\r |
79cb6fdb | 41 | import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r |
a13899c5 | 42 | import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r |
43 | import org.tianocore.frameworkwizard.common.ui.StarLabel;\r | |
44 | import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r | |
79cb6fdb | 45 | import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;\r |
46 | import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesVector;\r | |
a13899c5 | 47 | \r |
48 | /**\r | |
49 | The class is used to create, update Variable of MSA/MBD file\r | |
50 | It extends IInternalFrame\r | |
51 | \r | |
52 | **/\r | |
53 | public class ModuleVariables extends IInternalFrame {\r | |
54 | \r | |
55 | ///\r | |
56 | /// Define class Serial Version UID\r | |
57 | ///\r | |
58 | private static final long serialVersionUID = -6998982978030439446L;\r | |
59 | \r | |
60 | //\r | |
61 | //Define class members\r | |
62 | //\r | |
63 | private JPanel jContentPane = null;\r | |
64 | \r | |
65 | private JLabel jLabelVariableName = null;\r | |
66 | \r | |
67 | private JTextField jTextFieldVariableName = null;\r | |
68 | \r | |
69 | private JLabel jLabelUsage = null;\r | |
70 | \r | |
71 | private JComboBox jComboBoxUsage = null;\r | |
72 | \r | |
73 | private StarLabel jStarLabel1 = null;\r | |
74 | \r | |
75 | private StarLabel jStarLabel2 = null;\r | |
76 | \r | |
77 | private JTextArea jTextAreaList = null;\r | |
78 | \r | |
79 | private JComboBox jComboBoxList = null;\r | |
80 | \r | |
81 | private JButton jButtonAdd = null;\r | |
82 | \r | |
83 | private JButton jButtonRemove = null;\r | |
84 | \r | |
85 | private JButton jButtonUpdate = null;\r | |
86 | \r | |
87 | private JScrollPane jScrollPane = null;\r | |
88 | \r | |
89 | private JScrollPane jScrollPaneList = null;\r | |
90 | \r | |
91 | private JLabel jLabelGuidCName = null;\r | |
92 | \r | |
93 | private JTextField jTextFieldGuidC_Name = null;\r | |
94 | \r | |
95 | private JTextField jTextFieldFeatureFlag = null;\r | |
96 | \r | |
97 | private JLabel jLabelFeatureFlag = null;\r | |
98 | \r | |
99 | private JLabel jLabelArch = null;\r | |
100 | \r | |
101 | private ICheckBoxList iCheckBoxListArch = null;\r | |
102 | \r | |
103 | private JScrollPane jScrollPaneArch = null;\r | |
104 | \r | |
105 | private JLabel jLabelHelpText = null;\r | |
106 | \r | |
107 | private JTextField jTextFieldHelpText = null;\r | |
108 | \r | |
109 | //\r | |
110 | // Not used by UI\r | |
111 | //\r | |
112 | private int intSelectedItemId = 0;\r | |
113 | \r | |
114 | private OpeningModuleType omt = null;\r | |
115 | \r | |
116 | private ModuleSurfaceArea msa = null;\r | |
117 | \r | |
118 | private VariablesDocument.Variables variables = null;\r | |
119 | \r | |
120 | private VariablesIdentification id = null;\r | |
121 | \r | |
122 | private VariablesVector vid = new VariablesVector();\r | |
123 | \r | |
124 | private EnumerationData ed = new EnumerationData();\r | |
125 | \r | |
126 | /**\r | |
127 | This method initializes jTextFieldString \r | |
128 | \r | |
129 | @return javax.swing.JTextField jTextFieldString\r | |
130 | \r | |
131 | **/\r | |
132 | private JTextField getJTextFieldString() {\r | |
133 | if (jTextFieldVariableName == null) {\r | |
134 | jTextFieldVariableName = new JTextField();\r | |
135 | jTextFieldVariableName.setSize(new java.awt.Dimension(320, 20));\r | |
136 | jTextFieldVariableName.setPreferredSize(new java.awt.Dimension(320, 20));\r | |
137 | jTextFieldVariableName.setLocation(new java.awt.Point(160, 10));\r | |
79cb6fdb | 138 | Content-type: text/html ]>