]>
Commit | Line | Data |
---|---|---|
a13899c5 | 1 | /** @file\r |
2 | \r | |
3 | The file is used to override DefaultDesktopManager 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 | |
16 | package org.tianocore.frameworkwizard.common.ui;\r | |
17 | \r | |
18 | import javax.swing.DefaultDesktopManager;\r | |
19 | import javax.swing.JComponent;\r | |
20 | \r | |
21 | /**\r | |
22 | The class is used to override DefaultDesktopManager to provides customized interfaces\r | |
23 | It extends DefaultDesktopManager\r | |
24 | \r | |
25 | \r | |
26 | \r | |
27 | **/\r | |
28 | public class IDesktopManager extends DefaultDesktopManager {\r | |
29 | \r | |
30 | ///\r | |
31 | /// Define class Serial Version UID\r | |
32 | ///\r | |
33 | private static final long serialVersionUID = -4596986878722011062L;\r | |
34 | \r | |
35 | /**\r | |
36 | Main class, reserved for test\r | |
37 | \r | |
38 | @param args\r | |
39 | \r | |
40 | **/\r | |
41 | public static void main(String[] args) {\r | |
42 | // TODO Auto-generated method stub\r | |
43 | \r | |
44 | }\r | |
45 | \r | |
46 | /* (non-Javadoc)\r | |
47 | * @see javax.swing.DesktopManager#dragFrame(javax.swing.JComponent, int, int)\r | |
48 | * \r | |
49 | * Override dragFrame to do nothing to forbid internalframe to be draged \r | |
50 | * \r | |
51 | */\r | |
52 | public void dragFrame(JComponent f, int newX, int newY) {\r | |
53 | \r | |
54 | }\r | |
55 | \r | |
56 | /* (non-Javadoc)\r | |
57 | * @see javax.swing.DesktopManager#endDraggingFrame(javax.swing.JComponent)\r | |
58 | * \r | |
59 | * Override endDraggingFrame to do nothing to forbid internalframe to be draged\r | |
60 | * \r | |
61 | */\r | |
62 | public void endDraggingFrame(JComponent f) {\r | |
63 | \r | |
64 | }\r | |
65 | \r | |
66 | /* (non-Javadoc)\r | |
67 | * @see javax.swing.DesktopManager#beginResizingFrame(javax.swing.JComponent, int)\r | |
68 | * \r | |
69 | * Override beginResizingFrame to do nothing to forbid internalframe to be draged\r | |
70 | * \r | |
71 | */\r | |
72 | public void beginResizingFrame(JComponent f, int direction) {\r | |
73 | \r | |
74 | }\r | |
75 | \r | |
76 | }\r |