3 The file is used to create, update Hob of MSA/MBD file
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 package org
.tianocore
.frameworkwizard
.module
.ui
;
17 import java
.awt
.event
.ActionEvent
;
18 import java
.awt
.event
.ComponentEvent
;
19 import java
.awt
.event
.ItemEvent
;
20 import java
.util
.Vector
;
22 import javax
.swing
.JButton
;
23 import javax
.swing
.JComboBox
;
24 import javax
.swing
.JLabel
;
25 import javax
.swing
.JPanel
;
26 import javax
.swing
.JScrollPane
;
27 import javax
.swing
.JTextArea
;
28 import javax
.swing
.JTextField
;
30 import org
.tianocore
.HobTypes
;
31 import org
.tianocore
.HobUsage
;
32 import org
.tianocore
.HobsDocument
;
33 import org
.tianocore
.HobsDocument
.Hobs
;
34 import org
.tianocore
.ModuleSurfaceAreaDocument
.ModuleSurfaceArea
;
35 import org
.tianocore
.frameworkwizard
.common
.DataType
;
36 import org
.tianocore
.frameworkwizard
.common
.DataValidation
;
37 import org
.tianocore
.frameworkwizard
.common
.EnumerationData
;
38 import org
.tianocore
.frameworkwizard
.common
.Log
;
39 import org
.tianocore
.frameworkwizard
.common
.Tools
;
40 import org
.tianocore
.frameworkwizard
.common
.Identifications
.OpeningModuleType
;
41 import org
.tianocore
.frameworkwizard
.common
.ui
.IInternalFrame
;
42 import org
.tianocore
.frameworkwizard
.common
.ui
.StarLabel
;
43 import org
.tianocore
.frameworkwizard
.common
.ui
.iCheckBoxList
.ICheckBoxList
;
44 import org
.tianocore
.frameworkwizard
.module
.Identifications
.Hobs
.HobsIdentification
;
45 import org
.tianocore
.frameworkwizard
.module
.Identifications
.Hobs
.HobsVector
;
46 import org
.tianocore
.frameworkwizard
.workspace
.WorkspaceTools
;
49 The class is used to create, update Hob of MSA/MBD file
50 It extends IInternalFrame
55 public class ModuleHobs
extends IInternalFrame
{
58 /// Define class Serial Version UID
60 private static final long serialVersionUID
= -553473437579358325L;
63 //Define class members
65 private JPanel jContentPane
= null;
67 private JLabel jLabel
= null;
69 private JComboBox jComboBoxGuidC_Name
= null;
71 private JLabel jLabelUsage
= null;
73 private JLabel jLabelHobType
= null;
75 private JComboBox jComboBoxUsage
= null;
77 private JComboBox jComboBoxHobType
= null;
79 private StarLabel jStarLabel1
= null;
81 private JLabel jLabelArch
= null;
83 private JTextArea jTextAreaList
= null;
85 private JComboBox jComboBoxList
= null;
87 private JButton jButtonAdd
= null;
89 private JButton jButtonRemove
= null;
91 private JButton jButtonUpdate
= null;
93 private JScrollPane jScrollPane
= null;
95 private JScrollPane jScrollPaneList
= null;
97 private JLabel jLabelFeatureFlag
= null;
99 private JTextField jTextFieldFeatureFlag
= null;
101 private ICheckBoxList iCheckBoxListArch
= null;
103 private JScrollPane jScrollPaneArch
= null;
105 private JLabel jLabelHelpText
= null;
107 private JTextField jTextFieldHelpText
= null;
112 private int intSelectedItemId
= 0;
114 private OpeningModuleType omt
= null;
116 private ModuleSurfaceArea msa
= null;
118 private HobsDocument
.Hobs hobs
= null;
120 private HobsIdentification id
= null;
122 private HobsVector vid
= new HobsVector();
124 private EnumerationData ed
= new EnumerationData();
126 private WorkspaceTools wt
= new WorkspaceTools();
129 This method initializes jTextField
131 @return javax.swing.JTextField jTextFieldC_Name
134 private JComboBox
getJComboBoxGuidC_Name() {
135 if (jComboBoxGuidC_Name
== null) {
136 jComboBoxGuidC_Name
= new JComboBox();
137 jComboBoxGuidC_Name
.setBounds(new java
.awt
.Rectangle(160, 10, 320, 20));
138 jComboBoxGuidC_Name
.setPreferredSize(new java
.awt
.Dimension(320, 20));
139 jComboBoxGuidC_Name
.setToolTipText("Select the GUID C Name of the Hob");
141 return jComboBoxGuidC_Name
;
145 This method initializes jComboBoxUsage
147 @return javax.swing.JComboBox jComboBoxUsage
150 private JComboBox
getJComboBoxUsage() {
151 if (jComboBoxUsage
== null) {
152 jComboBoxUsage
= new JComboBox();
153 jComboBoxUsage
.setBounds(new java
.awt
.Rectangle(160, 60, 320, 20));
154 jComboBoxUsage
.setPreferredSize(new java
.awt
.Dimension(320, 20));
156 return jComboBoxUsage
;
160 This method initializes jComboBoxHobType
162 @return javax.swing.JComboBox jComboBoxHobType
165 private JComboBox
getJComboBoxHobType() {
166 if (jComboBoxHobType
== null) {
167 jComboBoxHobType
= new JComboBox();
168 jComboBoxHobType
.setBounds(new java
.awt
.Rectangle(160, 35, 320, 20));
169 jComboBoxHobType
.setPreferredSize(new java
.awt
.Dimension(320, 20));
171 return jComboBoxHobType
;
175 This method initializes jComboBoxFileList
177 @return javax.swing.JComboBox jComboBoxFileList
180 private JComboBox
getJComboBoxList() {
181 if (jComboBoxList
== null) {
182 jComboBoxList
= new JComboBox();
183 jComboBoxList
.setBounds(new java
.awt
.Rectangle(15, 220, 210, 20));
184 jComboBoxList
.addItemListener(this);
185 jComboBoxList
.addActionListener(this);
186 jComboBoxList
.setPreferredSize(new java
.awt
.Dimension(210, 20));
188 return jComboBoxList
;
192 This method initializes jButtonAdd
194 @return javax.swing.JButton jButtonAdd
197 private JButton
getJButtonAdd() {
198 if (jButtonAdd
== null) {
199 jButtonAdd
= new JButton();
200 jButtonAdd
.setBounds(new java
.awt
.Rectangle(230, 220, 80, 20));
201 jButtonAdd
.setText("Add");
202 jButtonAdd
.addActionListener(this);
203 jButtonAdd
.setPreferredSize(new java
.awt
.Dimension(80, 20));
209 This method initializes jButtonRemove
211 @return javax.swing.JButton jButtonRemove
214 private JButton
getJButtonRemove() {
215 if (jButtonRemove
== null) {
216 jButtonRemove
= new JButton();
217 jButtonRemove
.setBounds(new java
.awt
.Rectangle(400, 220, 80, 20));
218 jButtonRemove
.setText("Remove");
219 jButtonRemove
.addActionListener(this);
220 jButtonRemove
.setPreferredSize(new java
.awt
.Dimension(80, 20));
222 return jButtonRemove
;
226 This method initializes jButtonUpdate
228 @return javax.swing.JButton jButtonUpdate
231 private JButton
getJButtonUpdate() {
232 if (jButtonUpdate
== null) {
233 jButtonUpdate
= new JButton();
234 jButtonUpdate
.setBounds(new java
.awt
.Rectangle(315, 220, 80, 20));
235 jButtonUpdate
.setPreferredSize(new java
.awt
.Dimension(80, 20));
236 jButtonUpdate
.setText("Update");
237 jButtonUpdate
.addActionListener(this);
239 return jButtonUpdate
;
243 * This method initializes jScrollPaneFileList
245 * @return javax.swing.JScrollPane
247 private JScrollPane
getJScrollPaneList() {
248 if (jScrollPaneList
== null) {
249 jScrollPaneList
= new JScrollPane();
250 jScrollPaneList
.setBounds(new java
.awt
.Rectangle(15, 245, 465, 240));
251 jScrollPaneList
.setViewportView(getJTextAreaList());
252 jScrollPaneList
.setPreferredSize(new java
.awt
.Dimension(465, 240));
254 return jScrollPaneList
;
258 This method initializes jScrollPane
260 @return javax.swing.JScrollPane
262 private JScrollPane
getJScrollPane() {
263 if (jScrollPane
== null) {
264 jScrollPane
= new JScrollPane();
265 jScrollPane
.setViewportView(getJContentPane());
271 * This method initializes jTextAreaFileList
273 * @return javax.swing.JTextArea
275 private JTextArea
getJTextAreaList() {
276 if (jTextAreaList
== null) {
277 jTextAreaList
= new JTextArea();
278 jTextAreaList
.setEditable(false);
281 return jTextAreaList
;
285 * This method initializes jTextFieldFeatureFlag
287 * @return javax.swing.JTextField
289 private JTextField
getJTextFieldFeatureFlag() {
290 if (jTextFieldFeatureFlag
== null) {
291 jTextFieldFeatureFlag
= new JTextField();
292 jTextFieldFeatureFlag
.setBounds(new java
.awt
.Rectangle(160, 110, 320, 20));
293 jTextFieldFeatureFlag
.setPreferredSize(new java
.awt
.Dimension(320, 20));
295 return jTextFieldFeatureFlag
;
299 This method initializes iCheckBoxListArch
301 @return ICheckBoxList
303 private ICheckBoxList
getICheckBoxListSupportedArchitectures() {
304 if (iCheckBoxListArch
== null) {
305 iCheckBoxListArch
= new ICheckBoxList();
306 iCheckBoxListArch
.addFocusListener(this);
307 iCheckBoxListArch
.setToolTipText(DataType
.SUP_ARCH_LIST_HELP_TEXT
);
309 return iCheckBoxListArch
;
313 This method initializes jScrollPaneArch
315 @return javax.swing.JScrollPane
318 private JScrollPane
getJScrollPaneArch() {
319 if (jScrollPaneArch
== null) {
320 jScrollPaneArch
= new JScrollPane();
321 jScrollPaneArch
.setBounds(new java
.awt
.Rectangle(160, 135, 320, 80));
322 jScrollPaneArch
.setPreferredSize(new java
.awt
.Dimension(320, 80));
323 jScrollPaneArch
.setViewportView(getICheckBoxListSupportedArchitectures());
325 return jScrollPaneArch
;
329 This method initializes jTextFieldHelpText
331 @return javax.swing.JTextField
334 private JTextField
getJTextFieldHelpText() {
335 if (jTextFieldHelpText
== null) {
336 jTextFieldHelpText
= new JTextField();
337 jTextFieldHelpText
.setBounds(new java
.awt
.Rectangle(160, 85, 320, 20));
338 jTextFieldHelpText
.setPreferredSize(new java
.awt
.Dimension(320, 20));
340 return jTextFieldHelpText
;
343 public static void main(String
[] args
) {
348 This method initializes this
351 private void init() {
352 this.setSize(500, 515);
353 this.setContentPane(getJScrollPane());
354 this.setTitle("Hobs");
356 this.setViewMode(false);
360 This method initializes this
361 Fill values to all fields if these values are not empty
363 @param inPackageDependencies
366 private void init(Hobs inHobs
) {
370 if (this.hobs
!= null) {
371 if (this.hobs
.getHobTypesList().size() > 0) {
372 for (int index
= 0; index
< this.hobs
.getHobTypesList().size(); index
++) {
373 String arg0
= hobs
.getHobTypesList().get(index
).getHobGuidCName();
375 if (hobs
.getHobTypesList().get(index
).getHobType() != null) {
376 arg1
= hobs
.getHobTypesList().get(index
).getHobType().toString();
379 if (hobs
.getHobTypesList().get(index
).getUsage() != null) {
380 arg2
= hobs
.getHobTypesList().get(index
).getUsage().toString();
383 String arg3
= hobs
.getHobTypesList().get(index
).getFeatureFlag();
384 Vector
<String
> arg4
= Tools
.convertListToVector(hobs
.getHobTypesList().get(index
).getSupArchList());
385 String arg5
= hobs
.getHobTypesList().get(index
).getHelpText();
386 id
= new HobsIdentification(arg0
, arg1
, arg2
, arg3
, arg4
, arg5
);
394 Tools
.generateComboBoxByVector(jComboBoxList
, vid
.getHobsName());
399 This is the default constructor
402 public ModuleHobs() {
405 this.setVisible(true);
409 This is the override edit constructor
411 @param inHobs The input data of HobsDocument.Hobs
414 public ModuleHobs(OpeningModuleType inOmt
) {
417 this.msa
= omt
.getXmlMsa();
419 this.setVisible(true);
423 Disable all components when the mode is view
425 @param isView true - The view mode; false - The non-view mode
428 public void setViewMode(boolean isView
) {
430 this.jComboBoxGuidC_Name
.setEnabled(!isView
);
431 this.jComboBoxUsage
.setEnabled(!isView
);
432 this.jComboBoxHobType
.setEnabled(!isView
);
437 This method initializes jContentPane
439 @return javax.swing.JPanel jContentPane
442 public JPanel
getJContentPane() {
443 if (jContentPane
== null) {
444 jLabelFeatureFlag
= new JLabel();
445 jLabelFeatureFlag
.setBounds(new java
.awt
.Rectangle(15, 110, 140, 20));
446 jLabelFeatureFlag
.setText("Feature Flag");
447 jLabelArch
= new JLabel();
448 jLabelArch
.setBounds(new java
.awt
.Rectangle(15, 135, 140, 20));
449 jLabelArch
.setText("Arch");
450 jLabelHobType
= new JLabel();
451 jLabelHobType
.setText("Hob Type");
452 jLabelHobType
.setBounds(new java
.awt
.Rectangle(15, 35, 140, 20));
453 jLabelUsage
= new JLabel();
454 jLabelUsage
.setText("Usage");
455 jLabelUsage
.setBounds(new java
.awt
.Rectangle(15, 60, 140, 20));
456 jLabel
= new JLabel();
457 jLabel
.setText("C_Name");
458 jLabel
.setBounds(new java
.awt
.Rectangle(15, 10, 140, 20));
459 jLabelHelpText
= new JLabel();
460 jLabelHelpText
.setBounds(new java
.awt
.Rectangle(14, 85, 140, 20));
461 jLabelHelpText
.setText("Help Text");
463 jContentPane
= new JPanel();
464 jContentPane
.setLayout(null);
465 jContentPane
.setPreferredSize(new java
.awt
.Dimension(490, 495));
467 jContentPane
.add(jLabel
, null);
468 jContentPane
.add(getJComboBoxGuidC_Name(), null);
469 jContentPane
.add(jLabelUsage
, null);
470 jContentPane
.add(jLabelHobType
, null);
471 jContentPane
.add(getJComboBoxUsage(), null);
472 jContentPane
.add(getJComboBoxHobType(), null);
473 jStarLabel1
= new StarLabel();
474 jStarLabel1
.setLocation(new java
.awt
.Point(0, 10));
475 jContentPane
.add(jStarLabel1
, null);
477 jContentPane
.add(jLabelArch
, null);
479 jContentPane
.add(getJComboBoxList(), null);
480 jContentPane
.add(getJButtonAdd(), null);
481 jContentPane
.add(getJButtonRemove(), null);
482 jContentPane
.add(getJButtonUpdate(), null);
483 jContentPane
.add(getJScrollPaneList(), null);
484 jContentPane
.add(jLabelFeatureFlag
, null);
485 jContentPane
.add(getJTextFieldFeatureFlag(), null);
486 jContentPane
.add(getJScrollPaneArch(), null);
487 jContentPane
.add(jLabelHelpText
, null);
488 jContentPane
.add(getJTextFieldHelpText(), null);
494 This method initializes Usage type and Hob type
497 private void initFrame() {
498 Tools
.generateComboBoxByVector(jComboBoxUsage
, ed
.getVHobUsage());
499 Tools
.generateComboBoxByVector(jComboBoxHobType
, ed
.getVHobType());
500 Tools
.generateComboBoxByVector(jComboBoxGuidC_Name
, wt
.getAllGuidDeclarationsFromWorkspace());
502 this.iCheckBoxListArch
.setAllItems(ed
.getVSupportedArchitectures());
506 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
508 * Override actionPerformed to listen all actions
511 public void actionPerformed(ActionEvent arg0
) {
512 if (arg0
.getSource() == jButtonAdd
) {
518 if (arg0
.getSource() == jButtonRemove
) {
521 if (arg0
.getSource() == jButtonUpdate
) {
530 Data validation for all fields
532 @retval true - All datas are valid
533 @retval false - At least one data is invalid
536 public boolean checkAdd() {
538 // Check if all fields have correct data types
544 if (isEmpty(this.jComboBoxGuidC_Name
.getSelectedItem().toString())) {
545 Log
.err("Hob Name couldn't be empty");
549 if (!isEmpty(this.jComboBoxGuidC_Name
.getSelectedItem().toString())) {
550 if (!DataValidation
.isC_NameType(this.jComboBoxGuidC_Name
.getSelectedItem().toString())) {
551 Log
.err("Incorrect data type for Hob Name");
559 if (!isEmpty(this.jTextFieldFeatureFlag
.getText())) {
560 if (!DataValidation
.isFeatureFlag(this.jTextFieldFeatureFlag
.getText())) {
561 Log
.err("Incorrect data type for Feature Flag");
570 Save all components of Hobs
571 if exists hobs, set the value directly
572 if not exists hobs, new an instance first
577 int count
= this.vid
.size();
579 this.hobs
= Hobs
.Factory
.newInstance();
581 for (int index
= 0; index
< count
; index
++) {
582 HobsDocument
.Hobs
.HobTypes p
= HobsDocument
.Hobs
.HobTypes
.Factory
.newInstance();
583 if (!isEmpty(vid
.getHobs(index
).getName())) {
584 p
.setHobGuidCName(vid
.getHobs(index
).getName());
586 if (!isEmpty(vid
.getHobs(index
).getUsage())) {
587 p
.setUsage(HobUsage
.Enum
.forString(vid
.getHobs(index
).getUsage()));
589 if (!isEmpty(vid
.getHobs(index
).getType())) {
590 p
.setHobType(HobTypes
.Enum
.forString(vid
.getHobs(index
).getType()));
592 if (!isEmpty(vid
.getHobs(index
).getFeatureFlag())) {
593 p
.setFeatureFlag(vid
.getHobs(index
).getFeatureFlag());
595 if (vid
.getHobs(index
).getSupArchList() != null && vid
.getHobs(index
).getSupArchList().size() > 0) {
596 p
.setSupArchList(vid
.getHobs(index
).getSupArchList());
598 this.hobs
.addNewHobTypes();
599 this.hobs
.setHobTypesArray(hobs
.getHobTypesList().size() - 1, p
);
603 this.msa
.setHobs(hobs
);
604 this.omt
.setSaved(false);
605 } catch (Exception e
) {
607 Log
.err("Update Hobs", e
.getMessage());
612 * @see java.awt.event.ComponentListener#componentResized(java.awt.event.ComponentEvent)
614 * Override componentResized to resize all components when frame's size is changed
616 public void componentResized(ComponentEvent arg0
) {
617 int intCurrentWidth
= this.getJContentPane().getWidth();
618 int intCurrentHeight
= this.getJContentPane().getHeight();
619 int intPreferredWidth
= this.getJContentPane().getPreferredSize().width
;
620 int intPreferredHeight
= this.getJContentPane().getPreferredSize().height
;
622 resizeComponentWidth(jComboBoxGuidC_Name
, intCurrentWidth
, intPreferredWidth
);
623 resizeComponentWidth(jComboBoxHobType
, intCurrentWidth
, intPreferredWidth
);
624 resizeComponentWidth(jComboBoxUsage
, intCurrentWidth
, intPreferredWidth
);
625 resizeComponentWidth(jTextFieldHelpText
, intCurrentWidth
, intPreferredWidth
);
626 resizeComponentWidth(jTextFieldFeatureFlag
, intCurrentWidth
, intPreferredWidth
);
627 resizeComponentWidth(jScrollPaneArch
, intCurrentWidth
, intPreferredWidth
);
629 resizeComponentWidth(jComboBoxList
, intCurrentWidth
, intPreferredWidth
);
630 resizeComponent(jScrollPaneList
, intCurrentWidth
, intCurrentHeight
, intPreferredWidth
, intPreferredHeight
);
632 relocateComponentX(jButtonAdd
, intCurrentWidth
, intPreferredWidth
, DataType
.SPACE_TO_RIGHT_FOR_ADD_BUTTON
);
633 relocateComponentX(jButtonRemove
, intCurrentWidth
, intPreferredWidth
, DataType
.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON
);
634 relocateComponentX(jButtonUpdate
, intCurrentWidth
, intPreferredWidth
, DataType
.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON
);
637 private HobsIdentification
getCurrentHobs() {
638 String arg0
= this.jComboBoxGuidC_Name
.getSelectedItem().toString();
639 String arg1
= this.jComboBoxHobType
.getSelectedItem().toString();
640 String arg2
= this.jComboBoxUsage
.getSelectedItem().toString();
642 String arg3
= this.jTextFieldFeatureFlag
.getText();
643 Vector
<String
> arg4
= this.iCheckBoxListArch
.getAllCheckedItemsString();
644 String arg5
= this.jTextFieldHelpText
.getText();
645 id
= new HobsIdentification(arg0
, arg1
, arg2
, arg3
, arg4
, arg5
);
650 Add current item to Vector
653 private void addToList() {
654 intSelectedItemId
= vid
.size();
656 vid
.addHobs(getCurrentHobs());
658 jComboBoxList
.addItem(id
.getName());
659 jComboBoxList
.setSelectedItem(id
.getName());
662 // Reset select item index
664 intSelectedItemId
= vid
.size();
667 // Reload all fields of selected item
678 Remove current item from Vector
681 private void removeFromList() {
683 // Check if exist items
685 if (this.vid
.size() < 1) {
689 int intTempIndex
= intSelectedItemId
;
691 jComboBoxList
.removeItemAt(intSelectedItemId
);
693 vid
.removeHobs(intTempIndex
);
696 // Reload all fields of selected item
707 Update current item of Vector
710 private void updateForList() {
712 // Check if exist items
714 if (this.vid
.size() < 1) {
719 // Backup selected item index
721 int intTempIndex
= intSelectedItemId
;
723 vid
.updateHobs(getCurrentHobs(), intTempIndex
);
725 jComboBoxList
.removeAllItems();
726 for (int index
= 0; index
< vid
.size(); index
++) {
727 jComboBoxList
.addItem(vid
.getHobs(index
).getName());
731 // Restore selected item index
733 intSelectedItemId
= intTempIndex
;
736 // Reset select item index
738 jComboBoxList
.setSelectedIndex(intSelectedItemId
);
741 // Reload all fields of selected item
752 Refresh all fields' values of selected item of Vector
755 private void reloadFromList() {
756 if (vid
.size() > 0) {
758 // Get selected item index
760 intSelectedItemId
= jComboBoxList
.getSelectedIndex();
762 this.jComboBoxGuidC_Name
.setSelectedItem(vid
.getHobs(intSelectedItemId
).getName());
763 this.jComboBoxHobType
.setSelectedItem(vid
.getHobs(intSelectedItemId
).getType());
764 this.jComboBoxUsage
.setSelectedItem(vid
.getHobs(intSelectedItemId
).getUsage());
765 this.jTextFieldHelpText
.setText(vid
.getHobs(intSelectedItemId
).getHelp());
767 jTextFieldFeatureFlag
.setText(vid
.getHobs(intSelectedItemId
).getFeatureFlag());
768 iCheckBoxListArch
.setAllItemsUnchecked();
769 iCheckBoxListArch
.initCheckedItem(true, vid
.getHobs(intSelectedItemId
).getSupArchList());
778 Update list area pane via the elements of Vector
781 private void reloadListArea() {
782 String strListItem
= "";
783 for (int index
= 0; index
< vid
.size(); index
++) {
784 strListItem
= strListItem
+ vid
.getHobs(index
).getName() + DataType
.UNIX_LINE_SEPARATOR
;
786 this.jTextAreaList
.setText(strListItem
);
790 * @see java.awt.event.ItemListener#itemStateChanged(java.awt.event.ItemEvent)
792 * Reflesh the frame when selected item changed
795 public void itemStateChanged(ItemEvent arg0
) {
796 if (arg0
.getSource() == this.jComboBoxList
&& arg0
.getStateChange() == ItemEvent
.SELECTED
) {