| sun.porting.windowsystem.WindowFactory
WindowFactory | public interface WindowFactory (Code) | | Window objects are created via a factory; this allows an implementation
to cleanly extend the definition of a Window if necessary.
version: 1.7, 08/19/02 |
Field Summary | |
final static int | CHILD_WINDOW The default window type. | final static int | TOP_LEVEL_DIALOG The window type for a dialog frame (corresponds to java.awt.Dialog and
java.awt.FileDialog). | final static int | TOP_LEVEL_FRAME The window type for a top-level frame (corresponds to java.awt.Frame). | final static int | TOP_LEVEL_FRAMELESS The window type for a frameless, top-level window, e.g. |
Method Summary | |
Window | makeTopLevelWindow(int type, int x, int y, int w, int h) Create a new top-level window of the given type
and having the specified dimensions. | Window | makeWindow(Window parent, int x, int y, int w, int h) Create a new window as a child of the given parent window,
and having the specified dimensions. |
CHILD_WINDOW | final static int CHILD_WINDOW(Code) | | The default window type.
|
TOP_LEVEL_DIALOG | final static int TOP_LEVEL_DIALOG(Code) | | The window type for a dialog frame (corresponds to java.awt.Dialog and
java.awt.FileDialog).
|
TOP_LEVEL_FRAME | final static int TOP_LEVEL_FRAME(Code) | | The window type for a top-level frame (corresponds to java.awt.Frame).
|
TOP_LEVEL_FRAMELESS | final static int TOP_LEVEL_FRAMELESS(Code) | | 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).
|
makeTopLevelWindow | Window makeTopLevelWindow(int type, int x, int y, int w, int h) throws IllegalArgumentException(Code) | | Create a new top-level window of the given type
and having the specified dimensions.
Parameters: type - The type of the window. Parameters: x - the x coordinate for the window's upper left hand corner,in the global coordinate system of the root. Parameters: y - the y coordinate for the window's upper left hand corner,in the global coordinate system of the root. Parameters: w - the width of the window Parameters: h - the height of the window The new Window object. throws: IllegalArgumentException - if type is not valid. |
makeWindow | Window makeWindow(Window parent, int x, int y, int w, int h) throws IllegalArgumentException(Code) | | 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. Parameters: x - the x coordinate for the window's upper left hand corner,in the coordinate system of the parent window Parameters: y - the y coordinate for the window's upper left hand corner,in the coordinate system of the parent window Parameters: w - the width of the window Parameters: h - the height of the window The new Window object. throws: IllegalArgumentException - if parent is null. |
|
|