public static class SAFSPlus.Window
extends java.lang.Object
Constructor and Description |
---|
Window() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CloseWindow(Component window)
Close the specified WebBrowser window.
|
static boolean |
Maximize(Component window)
Maximize current WebBrowser.
|
static boolean |
Minimize(Component window)
Minimize current WebBrowser.
|
static boolean |
Restore(Component window)
Restore current WebBrowser.
|
static boolean |
SetFocus(Component window)
Set focus to the window
|
static boolean |
SetPosition(Component window,
int x,
int y,
int width,
int height)
Set position and resize current WebBrowser window
|
static boolean |
SetPosition(Component window,
java.lang.String status)
Set status of current WebBrowser window
See Detailed Reference |
public static boolean Maximize(Component window)
Window.Maximize(Map.Google.Google);
public static boolean Minimize(Component window)
Window.Minimize(Map.Google.Google);
public static boolean Restore(Component window)
Window.Restore(Map.Google.Google);
public static boolean CloseWindow(Component window)
Window.CloseWindow(Map.Google.Google);
public static boolean SetFocus(Component window)
window
- - windows
Window.SetFocus(Map.Google.Google);
public static boolean SetPosition(Component window, int x, int y, int width, int height)
x
- int, window's x position in pixelsy
- int, window's y position in pixelswidth
- int, window's width in pixelsheight
- int, window's height in pixels
Window.SetPosition(Map.Google.Google, 0,0,1280,900);
Window.SetPosition(Map.Google.Google, 0,0,800,600);
public static boolean SetPosition(Component window, java.lang.String status)
status
- String, window's status, it can be one ofComponentFunction.Window.MAXIMIZED
ComponentFunction.Window.MINIMIZED
ComponentFunction.Window.NORMAL
[Notepad] Notepad=":AUTOIT:title=Untitled - Notepad" preset="0,0,640,480;Status=NORMAL"The we could call
Window.SetPosition(Map.Notepad.Notepad, "preset");
Window.SetPosition(Map.Google.Google, "Maximized");//Maximize the window
Window.SetPosition(Map.Google.Google, "Minimized");//Minimize the window
Window.SetPosition(Map.Google.Google, "Normal");//Restore the window
Copyright © SAS Institute. All Rights Reserved.