]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDesktopManager.java
3 The file is used to override DefaultDesktopManager 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
.frameworkwizard
.common
.ui
;
18 import javax
.swing
.DefaultDesktopManager
;
19 import javax
.swing
.JComponent
;
22 The class is used to override DefaultDesktopManager to provides customized interfaces
23 It extends DefaultDesktopManager
28 public class IDesktopManager
extends DefaultDesktopManager
{
31 /// Define class Serial Version UID
33 private static final long serialVersionUID
= -4596986878722011062L;
36 Main class, reserved for test
41 public static void main(String
[] args
) {
42 // TODO Auto-generated method stub
47 * @see javax.swing.DesktopManager#dragFrame(javax.swing.JComponent, int, int)
49 * Override dragFrame to do nothing to forbid internalframe to be draged
52 public void dragFrame(JComponent f
, int newX
, int newY
) {
57 * @see javax.swing.DesktopManager#endDraggingFrame(javax.swing.JComponent)
59 * Override endDraggingFrame to do nothing to forbid internalframe to be draged
62 public void endDraggingFrame(JComponent f
) {
67 * @see javax.swing.DesktopManager#beginResizingFrame(javax.swing.JComponent, int)
69 * Override beginResizingFrame to do nothing to forbid internalframe to be draged
72 public void beginResizingFrame(JComponent f
, int direction
) {