public interface PlatformToplevelWindow extends PlatformWindow
| Modifier and Type | Method and Description |
|---|---|
int |
getState()
Returns the current state of the native window according to the
constants in
Frame. |
void |
setBlocked(boolean blocked)
Blocks or unblocks the native window.
|
void |
setMaximizedBounds(Rectangle bounds)
Sets the bounds for this native window that it should take when it
becomes maximized.
|
void |
setResizable(boolean resizable)
Sets if the native window should be resizable (by the user) or not.
|
void |
setState(int state)
Sets the state of the native window according to the various constants
in
Frame. |
void |
setTitle(String title)
Sets the title of the native window.
|
applyShape, canDetermineObscurity, createBuffers, destroyBuffers, dispose, flip, getBackBuffer, getBounds, getColorModel, getGraphics, getGraphicsConfiguration, getInsets, getLocationOnScreen, isObscured, isReparentSuppored, isRestackSupported, reparent, requestFocus, requestFocus, restack, setBounds, setVisibleint getState()
Frame. The state is a bitmask, ORed
together by these constants. This is only called for toplevel frames.Frame.getExtendedState(),
Frame.NORMAL,
Frame.ICONIFIED,
Frame.MAXIMIZED_HORIZ,
Frame.MAXIMIZED_VERT,
Frame.MAXIMIZED_BOTH,
setState(int)void setState(int state)
Frame. The state is a bitmask ORed together by
these constants. This is only called for toplevel frames.state - the new state of the windowFrame#setExtendedState(),
Frame.NORMAL,
Frame.ICONIFIED,
Frame.MAXIMIZED_HORIZ,
Frame.MAXIMIZED_VERT,
Frame.MAXIMIZED_BOTH,
#getState(int)void setMaximizedBounds(Rectangle bounds)
bounds - the maximized bounds to setvoid setResizable(boolean resizable)
resizable - true when the native window should be
resizable, false otherwisevoid setTitle(String title)
title - the title to setvoid setBlocked(boolean blocked)
blocked - true if set to blockedDialogPeer#blockWindows(List) ,
WindowPeer#setModalBlocked(Dialog, boolean)Copyright © 2012. All Rights Reserved.