| org.apache.harmony.awt.wtk.WindowFactory
All known Subclasses: org.apache.harmony.awt.wtk.windows.WinWindowFactory, org.apache.harmony.awt.wtk.linux.LinuxWindowFactory,
WindowFactory | public interface WindowFactory (Code) | | Provides factory for NativeWindow
|
attachWindow | NativeWindow attachWindow(long nativeWindowId)(Code) | | Create NativeWindow instance connected to existing native resource
Parameters: nativeWindowId - - id of existing window created NativeWindow instance |
createWindow | NativeWindow createWindow(CreationParams p)(Code) | | Creates and returns NativeWindow with desired
creation params
Parameters: p - - initial window properties created window |
getWindowById | NativeWindow getWindowById(long id)(Code) | | Returns NativeWindow instance if created by this instance of
WindowFactory, otherwise null
Parameters: id - - HWND on Windows xwindow on X NativeWindow or null if unknown |
getWindowFromPoint | NativeWindow getWindowFromPoint(Point p)(Code) | | Returns NativeWindow instance of the top-level window
that contains a specified point and was
created by this instance of WindowFactory
Parameters: p - - Point to check NativeWindow or null if the point isnot within a window created by this WindowFactory |
getWindowSizeById | Dimension getWindowSizeById(long id)(Code) | | Request size of arbitrary native window
Parameters: id - - window ID window size |
isWindowStateSupported | boolean isWindowStateSupported(int state)(Code) | | Returns whether native system supports the state for windows.
This method tells whether the UI concept of, say, maximization or iconification is supported.
It will always return false for "compound" states like Frame.ICONIFIED|Frame.MAXIMIZED_VERT.
In other words, the rule of thumb is that only queries with a single frame state
constant as an argument are meaningful.
Parameters: state - - one of named frame state constants. true is this frame state is supported by this Toolkit implementation, false otherwise. |
|
|