author | psadhukhan |
Mon, 16 Nov 2015 10:56:21 +0300 | |
changeset 34397 | 86a74cb6c903 |
parent 30464 | 929bafd0db6f |
permissions | -rw-r--r-- |
2 | 1 |
/* |
30464
929bafd0db6f
8075082: Fix missing doclint warnings in the javax.swing package
darcy
parents:
25859
diff
changeset
|
2 |
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package javax.swing; |
|
27 |
||
28 |
/** DesktopManager objects are owned by a JDesktopPane object. They are responsible |
|
21592 | 29 |
* for implementing L&F specific behaviors for the JDesktopPane. JInternalFrame |
2 | 30 |
* implementations should delegate specific behaviors to the DesktopManager. For |
31 |
* instance, if a JInternalFrame was asked to iconify, it should try: |
|
32 |
* <PRE> |
|
33 |
* getDesktopPane().getDesktopManager().iconifyFrame(frame); |
|
34 |
* </PRE> |
|
21592 | 35 |
* This delegation allows each L&F to provide custom behaviors for desktop-specific |
2 | 36 |
* actions. (For example, how and where the internal frame's icon would appear.) |
37 |
* <p>This class provides a policy for the various JInternalFrame methods, it is not |
|
38 |
* meant to be called directly rather the various JInternalFrame methods will call |
|
39 |
* into the DesktopManager.</p> |
|
40 |
* |
|
41 |
* @see JDesktopPane |
|
42 |
* @see JInternalFrame |
|
43 |
* @see JInternalFrame.JDesktopIcon |
|
44 |
* |
|
45 |
* @author David Kloba |
|
25201
4adc75e0c4e5
8046485: Add missing @since tag under javax.swing.*
henryjen
parents:
23010
diff
changeset
|
46 |
* @since 1.2 |
2 | 47 |
*/ |
48 |
public interface DesktopManager |
|
49 |
{ |
|
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
50 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
51 |
* If possible, display this frame in an appropriate location. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
52 |
* Normally, this is not called, as the creator of the JInternalFrame |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
53 |
* will add the frame to the appropriate parent. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
54 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
55 |
* @param f the {@code JInternalFrame} to be displayed |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
56 |
*/ |
2 | 57 |
void openFrame(JInternalFrame f); |
58 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
59 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
60 |
* Generally, this call should remove the frame from its parent. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
61 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
62 |
* @param f the {@code JInternalFrame} to be removed |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
63 |
*/ |
2 | 64 |
void closeFrame(JInternalFrame f); |
65 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
66 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
67 |
* Generally, the frame should be resized to match its parents bounds. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
68 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
69 |
* @param f the {@code JInternalFrame} to be resized |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
70 |
*/ |
2 | 71 |
void maximizeFrame(JInternalFrame f); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
72 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
73 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
74 |
* Generally, this indicates that the frame should be restored to its |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
75 |
* size and position prior to a maximizeFrame() call. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
76 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
77 |
* @param f the {@code JInternalFrame} to be restored |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
78 |
*/ |
2 | 79 |
void minimizeFrame(JInternalFrame f); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
80 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
81 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
82 |
* Generally, remove this frame from its parent and add an iconic representation. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
83 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
84 |
* @param f the {@code JInternalFrame} to be iconified |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
85 |
*/ |
2 | 86 |
void iconifyFrame(JInternalFrame f); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
87 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
88 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
89 |
* Generally, remove any iconic representation that is present and restore the |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
90 |
* frame to it's original size and location. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
91 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
92 |
* @param f the {@code JInternalFrame} to be de-iconified |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
93 |
*/ |
2 | 94 |
void deiconifyFrame(JInternalFrame f); |
95 |
||
96 |
/** |
|
97 |
* Generally, indicate that this frame has focus. This is usually called after |
|
98 |
* the JInternalFrame's IS_SELECTED_PROPERTY has been set to true. |
|
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
99 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
100 |
* @param f the {@code JInternalFrame} to be activated |
2 | 101 |
*/ |
102 |
void activateFrame(JInternalFrame f); |
|
103 |
||
104 |
/** |
|
105 |
* Generally, indicate that this frame has lost focus. This is usually called |
|
106 |
* after the JInternalFrame's IS_SELECTED_PROPERTY has been set to false. |
|
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
107 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
108 |
* @param f the {@code JInternalFrame} to be deactivated |
2 | 109 |
*/ |
110 |
void deactivateFrame(JInternalFrame f); |
|
111 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
112 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
113 |
* This method is normally called when the user has indicated that |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
114 |
* they will begin dragging a component around. This method should be called |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
115 |
* prior to any dragFrame() calls to allow the DesktopManager to prepare any |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
116 |
* necessary state. Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
117 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
118 |
* @param f the {@code JComponent} being dragged |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
119 |
*/ |
2 | 120 |
void beginDraggingFrame(JComponent f); |
121 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
122 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
123 |
* The user has moved the frame. Calls to this method will be preceded by calls |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
124 |
* to beginDraggingFrame(). |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
125 |
* Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
126 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
127 |
* @param f the {@code JComponent} being dragged |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
128 |
* @param newX the new x-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
129 |
* @param newY the new y-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
130 |
*/ |
2 | 131 |
void dragFrame(JComponent f, int newX, int newY); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
132 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
133 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
134 |
* This method signals the end of the dragging session. Any state maintained by |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
135 |
* the DesktopManager can be removed here. Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
136 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
137 |
* @param f the {@code JComponent} being dragged |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
138 |
*/ |
2 | 139 |
void endDraggingFrame(JComponent f); |
140 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
141 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
142 |
* This method is normally called when the user has indicated that |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
143 |
* they will begin resizing the frame. This method should be called |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
144 |
* prior to any resizeFrame() calls to allow the DesktopManager to prepare any |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
145 |
* necessary state. Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
146 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
147 |
* @param f the {@code JComponent} being resized |
30464
929bafd0db6f
8075082: Fix missing doclint warnings in the javax.swing package
darcy
parents:
25859
diff
changeset
|
148 |
* @param direction the direction |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
149 |
*/ |
2 | 150 |
void beginResizingFrame(JComponent f, int direction); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
151 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
152 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
153 |
* The user has resized the component. Calls to this method will be preceded by calls |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
154 |
* to beginResizingFrame(). |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
155 |
* Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
156 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
157 |
* @param f the {@code JComponent} being resized |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
158 |
* @param newX the new x-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
159 |
* @param newY the new y-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
160 |
* @param newWidth the new width |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
161 |
* @param newHeight the new height |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
162 |
*/ |
2 | 163 |
void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight); |
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
164 |
|
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
165 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
166 |
* This method signals the end of the resize session. Any state maintained by |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
167 |
* the DesktopManager can be removed here. Normally <b>f</b> will be a JInternalFrame. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
168 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
169 |
* @param f the {@code JComponent} being resized |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
170 |
*/ |
2 | 171 |
void endResizingFrame(JComponent f); |
172 |
||
25760
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
173 |
/** |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
174 |
* This is a primitive reshape method. |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
175 |
* |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
176 |
* @param f the {@code JComponent} being moved or resized |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
177 |
* @param newX the new x-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
178 |
* @param newY the new y-coordinate |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
179 |
* @param newWidth the new width |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
180 |
* @param newHeight the new height |
7955db32d6b0
8046597: fix doclint issues in swing classes, part 4 of 4
ssides
parents:
25201
diff
changeset
|
181 |
*/ |
2 | 182 |
void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight); |
183 |
} |