You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.4 KiB
121 lines
2.4 KiB
/*
|
|
* Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package java.awt.peer;
|
|
|
|
import java.awt.*;
|
|
|
|
/**
|
|
* The peer interface for {@link Window}.
|
|
*
|
|
* The peer interfaces are intended only for use in porting
|
|
* the AWT. They are not intended for use by application
|
|
* developers, and developers should not implement peers
|
|
* nor invoke any of the peer methods directly on the peer
|
|
* instances.
|
|
*/
|
|
public interface WindowPeer extends ContainerPeer {
|
|
|
|
/**
|
|
* Makes this window the topmost window on the desktop.
|
|
*
|
|
* @see Window#toFront()
|
|
*/
|
|
void toFront();
|
|
|
|
/**
|
|
* Makes this window the bottommost window on the desktop.
|
|
*
|
|
* @see Window#toBack()
|
|
*/
|
|
void toBack();
|
|
|
|
/**
|
|
* Updates the window's always-on-top state.
|
|
* Sets if the window should always stay
|
|
* on top of all other windows or not.
|
|
*
|
|
* @see Window#getAlwaysOnTop()
|
|
* @see Window#setAlwaysOnTop(boolean)
|
|
*/
|
|
void updateAlwaysOnTopState();
|
|
|
|
/**
|
|
* Updates the window's focusable state.
|
|
*
|
|
* @see Window#setFocusableWindowState(boolean)
|
|
*/
|
|
void updateFocusableWindowState();
|
|
|
|
/**
|
|
* Sets if this window is blocked by a modal dialog or not.
|
|
*
|
|
* @param blocker the blocking modal dialog
|
|
* @param blocked {@code true} to block the window, {@code false}
|
|
* to unblock it
|
|
*/
|
|
void setModalBlocked(Dialog blocker, boolean blocked);
|
|
|
|
/**
|
|
* Updates the minimum size on the peer.
|
|
*
|
|
* @see Window#setMinimumSize(Dimension)
|
|
*/
|
|
void updateMinimumSize();
|
|
|
|
/**
|
|
* Updates the icons for the window.
|
|
*
|
|
* @see Window#setIconImages(java.util.List)
|
|
*/
|
|
void updateIconImages();
|
|
|
|
/**
|
|
* Sets the level of opacity for the window.
|
|
*
|
|
* @see Window#setOpacity(float)
|
|
*/
|
|
void setOpacity(float opacity);
|
|
|
|
/**
|
|
* Enables the per-pixel alpha support for the window.
|
|
*
|
|
* @see Window#setBackground(Color)
|
|
*/
|
|
void setOpaque(boolean isOpaque);
|
|
|
|
/**
|
|
* Updates the native part of non-opaque window.
|
|
*
|
|
* @see Window#setBackground(Color)
|
|
*/
|
|
void updateWindow();
|
|
|
|
/**
|
|
* Instructs the peer to update the position of the security warning.
|
|
*/
|
|
void repositionSecurityWarning();
|
|
}
|