| org.apache.harmony.awt.wtk.NativeWindow
All known Subclasses: org.apache.harmony.awt.wtk.windows.WinWindow, org.apache.harmony.awt.wtk.linux.LinuxWindow,
NativeWindow | public interface NativeWindow (Code) | | Provides cross-platform way to manipulate native window.
Results of methods are reported through native messages.
|
BOUNDS_NOMOVE | final static int BOUNDS_NOMOVE(Code) | | Means only size should be changed
|
BOUNDS_NOSIZE | final static int BOUNDS_NOSIZE(Code) | | Means only position should be changed
|
dispose | void dispose()(Code) | | Destroys the asscoiated window.
Attempts to use it thereafter can result in
unpredictable bechavior.
|
getBounds | Rectangle getBounds()(Code) | | Returns last notified window bounds. This means the last bounds
reported by system event.
If child, position is relative to parent window.
last notified window bounds |
getId | long getId()(Code) | | Returns system id of the associated window
HWND on Windows, xwindow on X |
getInsets | Insets getInsets()(Code) | | Returns last notified insets. This means the last insets
reported by system event. Insets are margins around client area
ocupied by system provided decor, ususally border and titlebar.
last notified insets |
getScreenPos | Point getScreenPos()(Code) | | Get absolute position on the screen
|
grabMouse | void grabMouse()(Code) | | Activate the mouse event capturing
|
isFocusable | boolean isFocusable()(Code) | | current focusable window state |
placeAfter | void placeAfter(NativeWindow w)(Code) | | Changes window Z-order to place this window under, If w is null
places places this window on the top. Z-order is per parent.
Toplevels a children of desktop in terms of Z-order.
Parameters: w - - window to place under. |
setAlwaysOnTop | void setAlwaysOnTop(boolean value)(Code) | | Makes window top-most if value is true,
non-topmost(normal) otherwise.
|
setBounds | void setBounds(int x, int y, int w, int h, int boundsMask)(Code) | | Tries to set desired window bounds. It's not gurantied the
property will have the desired value. The value change
should be reported by system event (as for other properties).
If child, position is relative to parent window.
Parameters: x - - desired x Parameters: y - - desired y Parameters: w - - desired width Parameters: h - - desired height Parameters: boundsMask - - bitwise OR of BOUNDS_* constants.Governs the new bounds interpretation. |
setEnabled | void setEnabled(boolean value)(Code) | | Enables/disables processing of input (key, mouse) event
by window. If disabled input events are ignored.
Parameters: value - - if enabled |
setFocus | boolean setFocus(boolean focus)(Code) | | Tries to set application input focus to the window or clear
current focus from focused window.
For toplevel windows it's not gurantied focus will land in
desired window even if function returns true. Focus traversal should be tracked
by processing system events.
Parameters: focus - - if true sets focus, else clears focus if success |
setFocusable | void setFocusable(boolean value)(Code) | | Sets the "focusable" window state.
Parameters: value - - if true makes window focusable |
setIMStyle | void setIMStyle()(Code) | | Make window an "input method window" by setting
special window style, e. g. small title bar, no
close, minimize/maximize buttons. For internal
use by input method framework.
|
setIconImage | void setIconImage(Image image)(Code) | | Set the image to be displayed in the minimized icon for
top-level [decorated] window.
Parameters: image - the icon image to be displayed |
setMaximizedBounds | void setMaximizedBounds(Rectangle bounds)(Code) | | Set desired [top-level] window bounds when being in maximized state.
Fields set to Integer.MAX_VALUE are ignored[system-supplied values are
used instead]
|
setPacked | void setPacked(boolean packed)(Code) | | Set a window "packed" flag:
the flag indicates that if insets change
client area shouldn't be resized, but frame
must be resized instead
|
setResizable | void setResizable(boolean value)(Code) | | Makes the window resizable/not resizable by user
Parameters: value - - if resizable |
setState | void setState(int state)(Code) | | Set extended state for top-level window.
Parameters: state - - new state, bitmask of ICONIFIED, MAXIMIZED_BOTH, etc. |
setTitle | void setTitle(String title)(Code) | | Sets the window caption
Parameters: title - - caption text |
setVisible | void setVisible(boolean v)(Code) | | Shows/hides window
Parameters: v - - new visibility |
toBack | void toBack()(Code) | | Places window on bottom of Z-order
|
toFront | void toFront()(Code) | | Places window on top of Z-order
|
ungrabMouse | void ungrabMouse()(Code) | | Deactivate mouse event capturing
|
|
|