]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IInternalFrame.java
Initial import.
[mirror_edk2.git] / Tools / Source / ModuleEditor / src / org / tianocore / packaging / common / ui / IInternalFrame.java
CommitLineData
878ddf1f 1/** @file\r
2 \r
3 The file is used to override JInternalFrame to provides customized interfaces \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
16package org.tianocore.packaging.common.ui;\r
17\r
18import java.awt.event.ActionEvent;\r
19import java.awt.event.ActionListener;\r
20\r
21import javax.swing.JInternalFrame;\r
22\r
23/**\r
24 The class is used to override JInternalFrame to provides customized interfaces\r
25 It extends JInternalFrame implements ActionListener\r
26 \r
27 @since ModuleEditor 1.0\r
28\r
29 **/\r
30public class IInternalFrame extends JInternalFrame implements ActionListener {\r
31\r
32 ///\r
33 /// Define class Serial Version UID\r
34 ///\r
35 private static final long serialVersionUID = -609841772384875886L;\r
36 //\r
37 //Define class members\r
38 //\r
39 private boolean isEdited = false;\r
40\r
41 /**\r
42 Main class, reserved for test\r
43 \r
44 @param args\r
45 \r
46 **/\r
47 public static void main(String[] args) {\r
48 // TODO Auto-generated method stub\r
49\r
50 }\r
51\r
52 /**\r
53 This is the default constructor\r
54 \r
55 **/\r
56 public IInternalFrame() {\r
57 super();\r
58 initialize();\r
59 }\r
60\r
61 /**\r
62 This method initializes this\r
63 \r
64 **/\r
65 private void initialize() {\r
66 this.setBounds(new java.awt.Rectangle(0, 0, 500, 500));\r
67 }\r
68\r
69 /**\r
70 Get if the InternalFrame has been edited\r
71 \r
72 @retval true - The InternalFrame has been edited\r
73 @retval false - The InternalFrame hasn't been edited\r
74 \r
75 **/\r
76 public boolean isEdited() {\r
77 return isEdited;\r
78 }\r
79\r
80 /**\r
81 Set if the InternalFrame has been edited\r
82 \r
83 @param isEdited The input data which identify if the InternalFrame has been edited\r
84 \r
85 **/\r
86 public void setEdited(boolean isEdited) {\r
87 this.isEdited = isEdited;\r
88 }\r
89\r
90 /**\r
91 Check the input data is empty or not\r
92 \r
93 @param strValue The input data which need be checked\r
94 \r
95 @retval true - The input data is empty\r
96 @retval fals - The input data is not empty\r
97 \r
98 **/\r
99 public boolean isEmpty(String strValue) {\r
100 if (strValue.length() > 0) {\r
101 return false;\r
102 }\r
103 return true;\r
104 }\r
105\r
106 public void actionPerformed(ActionEvent arg0) {\r
107 // TODO Auto-generated method stub\r
108 }\r
109}\r