]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IInternalFrame.java
3 The file is used to override JInternalFrame to provides customized interfaces
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.
16 package org
.tianocore
.packaging
.common
.ui
;
18 import java
.awt
.event
.ActionEvent
;
19 import java
.awt
.event
.ActionListener
;
21 import javax
.swing
.JInternalFrame
;
24 The class is used to override JInternalFrame to provides customized interfaces
25 It extends JInternalFrame implements ActionListener
27 @since ModuleEditor 1.0
30 public class IInternalFrame
extends JInternalFrame
implements ActionListener
{
33 /// Define class Serial Version UID
35 private static final long serialVersionUID
= -609841772384875886L;
37 //Define class members
39 private boolean isEdited
= false;
42 Main class, reserved for test
47 public static void main(String
[] args
) {
48 // TODO Auto-generated method stub
53 This is the default constructor
56 public IInternalFrame() {
62 This method initializes this
65 private void initialize() {
66 this.setBounds(new java
.awt
.Rectangle(0, 0, 500, 500));
70 Get if the InternalFrame has been edited
72 @retval true - The InternalFrame has been edited
73 @retval false - The InternalFrame hasn't been edited
76 public boolean isEdited() {
81 Set if the InternalFrame has been edited
83 @param isEdited The input data which identify if the InternalFrame has been edited
86 public void setEdited(boolean isEdited
) {
87 this.isEdited
= isEdited
;
91 Check the input data is empty or not
93 @param strValue The input data which need be checked
95 @retval true - The input data is empty
96 @retval fals - The input data is not empty
99 public boolean isEmpty(String strValue
) {
100 if (strValue
.length() > 0) {
106 public void actionPerformed(ActionEvent arg0
) {
107 // TODO Auto-generated method stub