All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sun.porting.windowsystem.WindowFactory

public interface WindowFactory
Window objects are created via a factory; this allows an implementation to cleanly extend the definition of a Window if necessary.


Variable Index

 o CHILD_WINDOW
The default window type.
 o TOP_LEVEL_DIALOG
The window type for a dialog frame (corresponds to java.awt.Dialog and java.awt.FileDialog).
 o TOP_LEVEL_FRAME
The window type for a top-level frame (corresponds to java.awt.Frame).
 o TOP_LEVEL_FRAMELESS
The window type for a frameless, top-level window, e.g.

Method Index

 o makeTopLevelWindow(int, int, int, int, int)
Create a new top-level window of the given type and having the specified dimensions.
 o makeWindow(Window, int, int, int, int)
Create a new window as a child of the given parent window, and having the specified dimensions.

Variables

 o CHILD_WINDOW
 public static final int CHILD_WINDOW
The default window type.

 o TOP_LEVEL_FRAME
 public static final int TOP_LEVEL_FRAME
The window type for a top-level frame (corresponds to java.awt.Frame).

 o TOP_LEVEL_DIALOG
 public static final int TOP_LEVEL_DIALOG
The window type for a dialog frame (corresponds to java.awt.Dialog and java.awt.FileDialog).

 o TOP_LEVEL_FRAMELESS
 public static final int TOP_LEVEL_FRAMELESS
The window type for a frameless, top-level window, e.g. the kind that might be used to implement a popup menu (corresponds to java.awt.Window).

Methods

 o makeWindow
 public abstract Window makeWindow(Window parent,
                                   int x,
                                   int y,
                                   int w,
                                   int h) throws IllegalArgumentException
Create a new window as a child of the given parent window, and having the specified dimensions. Parent should not be null.

Parameters:
parent - The parent window.
x - the x coordinate for the window's upper left hand corner, in the coordinate system of the parent window
y - the y coordinate for the window's upper left hand corner, in the coordinate system of the parent window
w - the width of the window
h - the height of the window
Returns:
The new Window object.
 o makeTopLevelWindow
 public abstract Window makeTopLevelWindow(int type,
                                           int x,
                                           int y,
                                           int w,
                                           int h) throws IllegalArgumentException
Create a new top-level window of the given type and having the specified dimensions.

Parameters:
type - The type of the window.
x - the x coordinate for the window's upper left hand corner, in the global coordinate system of the root.
y - the y coordinate for the window's upper left hand corner, in the global coordinate system of the root.
w - the width of the window
h - the height of the window
Returns:
The new Window object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index