1 /*
2 * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
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
7 * published by the Free Software Foundation. Oracle designates this
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
278 /**
279 * Starts LW Modal.
280 */
281 void startLWModal(Container cont);
282
283 /**
284 * Starts LW Modal.
285 */
286 void stopLWModal(Container cont);
287 }
288
289 /*
290 * An interface of accessor for java.awt.Window class.
291 */
292 public interface WindowAccessor {
293 /*
294 * Update the image of a non-opaque (translucent) window.
295 */
296 void updateWindow(Window window);
297
298 /** Get the size of the security warning.
299 */
300 Dimension getSecurityWarningSize(Window w);
301
302 /**
303 * Set the size of the security warning.
304 */
305 void setSecurityWarningSize(Window w, int width, int height);
306
307 /** Set the position of the security warning.
308 */
309 void setSecurityWarningPosition(Window w, Point2D point,
310 float alignmentX, float alignmentY);
311
312 /** Request to recalculate the new position of the security warning for
313 * the given window size/location as reported by the native system.
314 */
315 Point2D calculateSecurityWarningPosition(Window window,
316 double x, double y, double w, double h);
317
318 /** Sets the synchronous status of focus requests on lightweight
319 * components in the specified window to the specified value.
320 */
321 void setLWRequestStatus(Window changed, boolean status);
322
323 /**
324 * Indicates whether this window should receive focus on subsequently
325 * being shown, or being moved to the front.
326 */
327 boolean isAutoRequestFocus(Window w);
328
329 /**
330 * Indicates whether the specified window is an utility window for TrayIcon.
331 */
|
1 /*
2 * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
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
7 * published by the Free Software Foundation. Oracle designates this
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
278 /**
279 * Starts LW Modal.
280 */
281 void startLWModal(Container cont);
282
283 /**
284 * Starts LW Modal.
285 */
286 void stopLWModal(Container cont);
287 }
288
289 /*
290 * An interface of accessor for java.awt.Window class.
291 */
292 public interface WindowAccessor {
293 /*
294 * Update the image of a non-opaque (translucent) window.
295 */
296 void updateWindow(Window window);
297
298 /**
299 * Set the size of the security warning.
300 */
301 void setSecurityWarningSize(Window w, int width, int height);
302
303 /** Request to recalculate the new position of the security warning for
304 * the given window size/location as reported by the native system.
305 */
306 Point2D calculateSecurityWarningPosition(Window window,
307 double x, double y, double w, double h);
308
309 /** Sets the synchronous status of focus requests on lightweight
310 * components in the specified window to the specified value.
311 */
312 void setLWRequestStatus(Window changed, boolean status);
313
314 /**
315 * Indicates whether this window should receive focus on subsequently
316 * being shown, or being moved to the front.
317 */
318 boolean isAutoRequestFocus(Window w);
319
320 /**
321 * Indicates whether the specified window is an utility window for TrayIcon.
322 */
|