8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
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 *
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.
24 */
25 package sun.awt.windows;
26
27 import java.awt.*;
28 import java.awt.dnd.DropTarget;
29 import java.awt.peer.*;
30 import java.io.File;
31 import java.io.FilenameFilter;
32 import java.security.AccessController;
33 import java.security.PrivilegedAction;
34 import java.util.ResourceBundle;
35 import java.util.MissingResourceException;
36 import java.util.Vector;
37 import sun.awt.CausedFocusEvent;
38 import sun.awt.AWTAccessor;
39 import sun.misc.ManagedLocalsThread;
40
41 final class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
42
43 static {
44 initIDs();
45 }
46
47 private WComponentPeer parent;
48 private FilenameFilter fileFilter;
49
50 private Vector<WWindowPeer> blockedWindows = new Vector<>();
51
52 //Needed to fix 4152317
53 private static native void setFilterString(String allFilter);
54
55 @Override
56 public void setFilenameFilter(FilenameFilter filter) {
57 this.fileFilter = filter;
266 public void reshape(int x, int y, int width, int height) {}
267 public boolean handleEvent(Event e) { return false; }
268 @Override
269 public void setForeground(Color c) {}
270 @Override
271 public void setBackground(Color c) {}
272 @Override
273 public void setFont(Font f) {}
274 @Override
275 public void updateMinimumSize() {}
276 @Override
277 public void updateIconImages() {}
278 public boolean requestFocus(boolean temporary,
279 boolean focusedWindowChangeAllowed) {
280 return false;
281 }
282
283 @Override
284 public boolean requestFocus
285 (Component lightweightChild, boolean temporary,
286 boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
287 {
288 return false;
289 }
290
291 @Override
292 void start() {}
293 @Override
294 public void beginValidate() {}
295 @Override
296 public void endValidate() {}
297 void invalidate(int x, int y, int width, int height) {}
298 @Override
299 public void addDropTarget(DropTarget dt) {}
300 @Override
301 public void removeDropTarget(DropTarget dt) {}
302 @Override
303 public void updateFocusableWindowState() {}
304 @Override
305 public void setZOrder(ComponentPeer above) {}
306
|
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
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 *
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.
24 */
25 package sun.awt.windows;
26
27 import java.awt.*;
28 import java.awt.event.FocusEvent.Cause;
29 import java.awt.dnd.DropTarget;
30 import java.awt.peer.*;
31 import java.io.File;
32 import java.io.FilenameFilter;
33 import java.security.AccessController;
34 import java.security.PrivilegedAction;
35 import java.util.ResourceBundle;
36 import java.util.MissingResourceException;
37 import java.util.Vector;
38 import sun.awt.AWTAccessor;
39 import sun.misc.ManagedLocalsThread;
40
41 final class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
42
43 static {
44 initIDs();
45 }
46
47 private WComponentPeer parent;
48 private FilenameFilter fileFilter;
49
50 private Vector<WWindowPeer> blockedWindows = new Vector<>();
51
52 //Needed to fix 4152317
53 private static native void setFilterString(String allFilter);
54
55 @Override
56 public void setFilenameFilter(FilenameFilter filter) {
57 this.fileFilter = filter;
266 public void reshape(int x, int y, int width, int height) {}
267 public boolean handleEvent(Event e) { return false; }
268 @Override
269 public void setForeground(Color c) {}
270 @Override
271 public void setBackground(Color c) {}
272 @Override
273 public void setFont(Font f) {}
274 @Override
275 public void updateMinimumSize() {}
276 @Override
277 public void updateIconImages() {}
278 public boolean requestFocus(boolean temporary,
279 boolean focusedWindowChangeAllowed) {
280 return false;
281 }
282
283 @Override
284 public boolean requestFocus
285 (Component lightweightChild, boolean temporary,
286 boolean focusedWindowChangeAllowed, long time, Cause cause)
287 {
288 return false;
289 }
290
291 @Override
292 void start() {}
293 @Override
294 public void beginValidate() {}
295 @Override
296 public void endValidate() {}
297 void invalidate(int x, int y, int width, int height) {}
298 @Override
299 public void addDropTarget(DropTarget dt) {}
300 @Override
301 public void removeDropTarget(DropTarget dt) {}
302 @Override
303 public void updateFocusableWindowState() {}
304 @Override
305 public void setZOrder(ComponentPeer above) {}
306
|