FileDocCategorySizeDatePackage
WindowFactory.javaAPI DocAndroid 1.5 API3035Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.wtk

WindowFactory

public interface WindowFactory
Provides factory for NativeWindow

Fields Summary
Constructors Summary
Methods Summary
public NativeWindowattachWindow(long nativeWindowId)
Create NativeWindow instance connected to existing native resource

param
nativeWindowId - id of existing window
return
created NativeWindow instance

public NativeWindowcreateWindow(CreationParams p)
Creates and returns NativeWindow with desired creation params

param
p - initial window properties
return
created window

public NativeWindowgetWindowById(long id)
Returns NativeWindow instance if created by this instance of WindowFactory, otherwise null

param
id - HWND on Windows xwindow on X
return
NativeWindow or null if unknown

public NativeWindowgetWindowFromPoint(java.awt.Point p)
Returns NativeWindow instance of the top-level window that contains a specified point and was created by this instance of WindowFactory

param
p - Point to check
return
NativeWindow or null if the point is not within a window created by this WindowFactory

public java.awt.DimensiongetWindowSizeById(long id)
Request size of arbitrary native window

param
id - window ID
return
window size

public booleanisWindowStateSupported(int state)
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.

param
state - one of named frame state constants.
return
true is this frame state is supported by this Toolkit implementation, false otherwise.

public voidsetCaretPosition(int x, int y)

see
org.apache.harmony.awt.ComponentInternals