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