1 | /* DefaultDesktopManager.java --
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
6 | GNU Classpath is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | GNU Classpath is distributed in the hope that it will be useful, but
|
---|
12 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with GNU Classpath; see the file COPYING. If not, write to the
|
---|
18 | Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
---|
19 | 02111-1307 USA.
|
---|
20 |
|
---|
21 | Linking this library statically or dynamically with other modules is
|
---|
22 | making a combined work based on this library. Thus, the terms and
|
---|
23 | conditions of the GNU General Public License cover the whole
|
---|
24 | combination.
|
---|
25 |
|
---|
26 | As a special exception, the copyright holders of this library give you
|
---|
27 | permission to link this library with independent modules to produce an
|
---|
28 | executable, regardless of the license terms of these independent
|
---|
29 | modules, and to copy and distribute the resulting executable under
|
---|
30 | terms of your choice, provided that you also meet, for each linked
|
---|
31 | independent module, the terms and conditions of the license of that
|
---|
32 | module. An independent module is a module which is not derived from
|
---|
33 | or based on this library. If you modify this library, you may extend
|
---|
34 | this exception to your version of the library, but you are not
|
---|
35 | obligated to do so. If you do not wish to do so, delete this
|
---|
36 | exception statement from your version. */
|
---|
37 |
|
---|
38 | package javax.swing;
|
---|
39 |
|
---|
40 | // Imports
|
---|
41 | import java.awt.*;
|
---|
42 | import java.io.*;
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * DefaultDesktopManager
|
---|
46 | * @author Andrew Selkirk
|
---|
47 | * @version 1.0
|
---|
48 | */
|
---|
49 | public class DefaultDesktopManager implements DesktopManager, Serializable {
|
---|
50 |
|
---|
51 | //-------------------------------------------------------------
|
---|
52 | // Variables --------------------------------------------------
|
---|
53 | //-------------------------------------------------------------
|
---|
54 |
|
---|
55 | /**
|
---|
56 | * HAS_BEEN_ICONIFIED_PROPERTY
|
---|
57 | */
|
---|
58 | static final String HAS_BEEN_ICONIFIED_PROPERTY = ""; // TODO
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * DEFAULT_DRAG_MODE
|
---|
62 | */
|
---|
63 | static final int DEFAULT_DRAG_MODE = 0; // TODO
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * OUTLINE_DRAG_MODE
|
---|
67 | */
|
---|
68 | static final int OUTLINE_DRAG_MODE = 0; // TODO
|
---|
69 |
|
---|
70 | /**
|
---|
71 | * FASTER_DRAG_MODE
|
---|
72 | */
|
---|
73 | static final int FASTER_DRAG_MODE = 0; // TODO
|
---|
74 |
|
---|
75 | /**
|
---|
76 | * dragMode
|
---|
77 | */
|
---|
78 | int dragMode;
|
---|
79 |
|
---|
80 |
|
---|
81 | //-------------------------------------------------------------
|
---|
82 | // Initialization ---------------------------------------------
|
---|
83 | //-------------------------------------------------------------
|
---|
84 |
|
---|
85 | /**
|
---|
86 | * Constructor DefaultDesktopManager
|
---|
87 | */
|
---|
88 | public DefaultDesktopManager() {
|
---|
89 | // TODO
|
---|
90 | } // DefaultDesktopManager()
|
---|
91 |
|
---|
92 |
|
---|
93 | //-------------------------------------------------------------
|
---|
94 | // Methods ----------------------------------------------------
|
---|
95 | //-------------------------------------------------------------
|
---|
96 |
|
---|
97 | /**
|
---|
98 | * openFrame
|
---|
99 | * @param frame TODO
|
---|
100 | */
|
---|
101 | public void openFrame(JInternalFrame frame) {
|
---|
102 | // TODO
|
---|
103 | } // openFrame()
|
---|
104 |
|
---|
105 | /**
|
---|
106 | * closeFrame
|
---|
107 | * @param frame TODO
|
---|
108 | */
|
---|
109 | public void closeFrame(JInternalFrame frame) {
|
---|
110 | // TODO
|
---|
111 | } // closeFrame()
|
---|
112 |
|
---|
113 | /**
|
---|
114 | * maximizeFrame
|
---|
115 | * @param frame TODO
|
---|
116 | */
|
---|
117 | public void maximizeFrame(JInternalFrame frame) {
|
---|
118 | // TODO
|
---|
119 | } // maximizeFrame()
|
---|
120 |
|
---|
121 | /**
|
---|
122 | * minimizeFrame
|
---|
123 | * @param frame TODO
|
---|
124 | */
|
---|
125 | public void minimizeFrame(JInternalFrame frame) {
|
---|
126 | // TODO
|
---|
127 | } // minimizeFrame()
|
---|
128 |
|
---|
129 | /**
|
---|
130 | * iconifyFrame
|
---|
131 | * @param frame TODO
|
---|
132 | */
|
---|
133 | public void iconifyFrame(JInternalFrame frame) {
|
---|
134 | // TODO
|
---|
135 | } // iconifyFrame()
|
---|
136 |
|
---|
137 | /**
|
---|
138 | * deiconifyFrame
|
---|
139 | * @param frame TODO
|
---|
140 | */
|
---|
141 | public void deiconifyFrame(JInternalFrame frame) {
|
---|
142 | // TODO
|
---|
143 | } // deiconifyFrame()
|
---|
144 |
|
---|
145 | /**
|
---|
146 | * activateFrame
|
---|
147 | * @param frame TODO
|
---|
148 | */
|
---|
149 | public void activateFrame(JInternalFrame frame) {
|
---|
150 | // TODO
|
---|
151 | } // activateFrame()
|
---|
152 |
|
---|
153 | /**
|
---|
154 | * deactivateFrame
|
---|
155 | * @param frame TODO
|
---|
156 | */
|
---|
157 | public void deactivateFrame(JInternalFrame frame) {
|
---|
158 | // TODO
|
---|
159 | } // deactivateFrame()
|
---|
160 |
|
---|
161 | /**
|
---|
162 | * beginDraggingFrame
|
---|
163 | * @param component TODO
|
---|
164 | */
|
---|
165 | public void beginDraggingFrame(JComponent component) {
|
---|
166 | // TODO
|
---|
167 | } // beginDraggingFrame()
|
---|
168 |
|
---|
169 | /**
|
---|
170 | * dragFrame
|
---|
171 | * @param component TODO
|
---|
172 | * @param newX TODO
|
---|
173 | * @param newY TODO
|
---|
174 | */
|
---|
175 | public void dragFrame(JComponent component, int newX, int newY) {
|
---|
176 | // TODO
|
---|
177 | } // dragFrame()
|
---|
178 |
|
---|
179 | /**
|
---|
180 | * endDraggingFrame
|
---|
181 | * @param component TODO
|
---|
182 | */
|
---|
183 | public void endDraggingFrame(JComponent component) {
|
---|
184 | // TODO
|
---|
185 | } // endDraggingFrame()
|
---|
186 |
|
---|
187 | /**
|
---|
188 | * beginResizingFrame
|
---|
189 | * @param component TODO
|
---|
190 | * @param direction TODO
|
---|
191 | */
|
---|
192 | public void beginResizingFrame(JComponent component, int direction) {
|
---|
193 | // TODO
|
---|
194 | } // beginResizingFrame()
|
---|
195 |
|
---|
196 | /**
|
---|
197 | * resizeFrame
|
---|
198 | * @param component TODO
|
---|
199 | * @param newX TODO
|
---|
200 | * @param newY TODO
|
---|
201 | * @param newWidth TODO
|
---|
202 | * @param newHeight TODO
|
---|
203 | */
|
---|
204 | public void resizeFrame(JComponent component, int newX, int newY,
|
---|
205 | int newWidth, int newHeight) {
|
---|
206 | // TODO
|
---|
207 | } // resizeFrame()
|
---|
208 |
|
---|
209 | /**
|
---|
210 | * endResizingFrame
|
---|
211 | * @param component TODO
|
---|
212 | */
|
---|
213 | public void endResizingFrame(JComponent component) {
|
---|
214 | // TODO
|
---|
215 | } // endResizingFrame()
|
---|
216 |
|
---|
217 | /**
|
---|
218 | * setBoundsForFrame
|
---|
219 | * @param component TODO
|
---|
220 | * @param newX TODO
|
---|
221 | * @param newY TODO
|
---|
222 | * @param newWidth TODO
|
---|
223 | * @param newHeight TODO
|
---|
224 | */
|
---|
225 | public void setBoundsForFrame(JComponent component, int newX,
|
---|
226 | int newY, int newWidth, int newHeight) {
|
---|
227 | // TODO
|
---|
228 | } // setBoundsForFrame()
|
---|
229 |
|
---|
230 | /**
|
---|
231 | * removeIconFor
|
---|
232 | * @param frame TODO
|
---|
233 | */
|
---|
234 | protected void removeIconFor(JInternalFrame frame) {
|
---|
235 | // TODO
|
---|
236 | } // removeIconFor()
|
---|
237 |
|
---|
238 | /**
|
---|
239 | * getBoundsForIconOf
|
---|
240 | * @param frame TODO
|
---|
241 | * @returns Rectangle
|
---|
242 | */
|
---|
243 | protected Rectangle getBoundsForIconOf(JInternalFrame frame) {
|
---|
244 | return null; // TODO
|
---|
245 | } // getBoundsForIconOf()
|
---|
246 |
|
---|
247 | /**
|
---|
248 | * setPreviousBounds
|
---|
249 | * @param frame TODO
|
---|
250 | * @param rect TODO
|
---|
251 | */
|
---|
252 | protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) {
|
---|
253 | // TODO
|
---|
254 | } // setPreviousBounds()
|
---|
255 |
|
---|
256 | /**
|
---|
257 | * getPreviousBounds
|
---|
258 | * @param frame TODO
|
---|
259 | * @returns Rectangle
|
---|
260 | */
|
---|
261 | protected Rectangle getPreviousBounds(JInternalFrame frame) {
|
---|
262 | return null; // TODO
|
---|
263 | } // getPreviousBounds()
|
---|
264 |
|
---|
265 | /**
|
---|
266 | * setWasIcon
|
---|
267 | * @param frame TODO
|
---|
268 | * @param value TODO
|
---|
269 | */
|
---|
270 | protected void setWasIcon(JInternalFrame frame, Boolean value) {
|
---|
271 | // TODO
|
---|
272 | } // setWasIcon()
|
---|
273 |
|
---|
274 | /**
|
---|
275 | * wasIcon
|
---|
276 | * @param frame TODO
|
---|
277 | * @returns boolean
|
---|
278 | */
|
---|
279 | protected boolean wasIcon(JInternalFrame frame) {
|
---|
280 | return false; // TODO
|
---|
281 | } // wasIcon()
|
---|
282 |
|
---|
283 |
|
---|
284 | } // DefaultDesktopManager
|
---|