public class Window extends Object implements com.sun.jna.platform.win32.WinUser
com.sun.jna.platform.win32.WinUser.BLENDFUNCTION, com.sun.jna.platform.win32.WinUser.FLASHWINFO, com.sun.jna.platform.win32.WinUser.GUITHREADINFO, com.sun.jna.platform.win32.WinUser.HARDWAREINPUT, com.sun.jna.platform.win32.WinUser.HHOOK, com.sun.jna.platform.win32.WinUser.HOOKPROC, com.sun.jna.platform.win32.WinUser.INPUT, com.sun.jna.platform.win32.WinUser.KBDLLHOOKSTRUCT, com.sun.jna.platform.win32.WinUser.KEYBDINPUT, com.sun.jna.platform.win32.WinUser.LASTINPUTINFO, com.sun.jna.platform.win32.WinUser.LowLevelKeyboardProc, com.sun.jna.platform.win32.WinUser.MOUSEINPUT, com.sun.jna.platform.win32.WinUser.MSG, com.sun.jna.platform.win32.WinUser.POINT, com.sun.jna.platform.win32.WinUser.SIZE, com.sun.jna.platform.win32.WinUser.WINDOWINFO, com.sun.jna.platform.win32.WinUser.WNDENUMPROC
com.sun.jna.platform.win32.WinDef.DWORD, com.sun.jna.platform.win32.WinDef.DWORDLONG, com.sun.jna.platform.win32.WinDef.HBITMAP, com.sun.jna.platform.win32.WinDef.HCURSOR, com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinDef.HFONT, com.sun.jna.platform.win32.WinDef.HICON, com.sun.jna.platform.win32.WinDef.HINSTANCE, com.sun.jna.platform.win32.WinDef.HMENU, com.sun.jna.platform.win32.WinDef.HMODULE, com.sun.jna.platform.win32.WinDef.HPALETTE, com.sun.jna.platform.win32.WinDef.HPEN, com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRSRC, com.sun.jna.platform.win32.WinDef.HWND, com.sun.jna.platform.win32.WinDef.INT_PTR, com.sun.jna.platform.win32.WinDef.LONG, com.sun.jna.platform.win32.WinDef.LPARAM, com.sun.jna.platform.win32.WinDef.LRESULT, com.sun.jna.platform.win32.WinDef.RECT, com.sun.jna.platform.win32.WinDef.UINT_PTR, com.sun.jna.platform.win32.WinDef.ULONG, com.sun.jna.platform.win32.WinDef.ULONGLONG, com.sun.jna.platform.win32.WinDef.WORD, com.sun.jna.platform.win32.WinDef.WPARAM
AC_SRC_ALPHA, AC_SRC_NO_ALPHA, AC_SRC_NO_PREMULT_ALPHA, AC_SRC_OVER, DWL_DLGPROC, DWL_MSGRESULT, DWL_USER, FLASHW_ALL, FLASHW_CAPTION, FLASHW_STOP, FLASHW_TIMER, FLASHW_TIMERNOFG, FLASHW_TRAY, GW_CHILD, GW_ENABLEDPOPUP, GW_HWNDFIRST, GW_HWNDLAST, GW_HWNDNEXT, GW_HWNDPREV, GW_OWNER, GWL_EXSTYLE, GWL_HINSTANCE, GWL_ID, GWL_STYLE, GWL_USERDATA, GWL_WNDPROC, HWND_BROADCAST, IMAGE_BITMAP, IMAGE_CURSOR, IMAGE_ENHMETAFILE, IMAGE_ICON, LR_COLOR, LR_COPYDELETEORG, LR_COPYFROMRESOURCE, LR_COPYRETURNORG, LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED, LR_VGACOLOR, LWA_ALPHA, LWA_COLORKEY, MOD_ALT, MOD_CONTROL, MOD_NOREPEAT, MOD_SHIFT, MOD_WIN, RDW_ALLCHILDREN, RDW_ERASE, RDW_ERASENOW, RDW_FRAME, RDW_INTERNALPAINT, RDW_INVALIDATE, RDW_NOCHILDREN, RDW_NOERASE, RDW_NOFRAME, RDW_NOINTERNALPAINT, RDW_UPDATENOW, RDW_VALIDATE, SC_MAXIMIZE, SC_MINIMIZE, SM_ARRANGE, SM_CARETBLINKINGENABLED, SM_CLEANBOOT, SM_CMONITORS, SM_CMOUSEBUTTONS, SM_CXBORDER, SM_CXCURSOR, SM_CXDLGFRAME, SM_CXDOUBLECLK, SM_CXDRAG, SM_CXEDGE, SM_CXFIXEDFRAME, SM_CXFOCUSBORDER, SM_CXFRAME, SM_CXFULLSCREEN, SM_CXHSCROLL, SM_CXHTHUMB, SM_CXICON, SM_CXICONSPACING, SM_CXMAXIMIZED, SM_CXMAXTRACK, SM_CXMENUCHECK, SM_CXMENUSIZE, SM_CXMIN, SM_CXMINIMIZED, SM_CXMINSPACING, SM_CXMINTRACK, SM_CXPADDEDBORDER, SM_CXSCREEN, SM_CXSIZE, SM_CXSIZEFRAME, SM_CXSMICON, SM_CXSMSIZE, SM_CXVIRTUALSCREEN, SM_CXVSCROLL, SM_CYBORDER, SM_CYCAPTION, SM_CYCURSOR, SM_CYDLGFRAME, SM_CYDOUBLECLK, SM_CYDRAG, SM_CYEDGE, SM_CYFIXEDFRAME, SM_CYFOCUSBORDER, SM_CYFRAME, SM_CYFULLSCREEN, SM_CYHSCROLL, SM_CYICON, SM_CYICONSPACING, SM_CYKANJIWINDOW, SM_CYMAXIMIZED, SM_CYMAXTRACK, SM_CYMENU, SM_CYMENUCHECK, SM_CYMENUSIZE, SM_CYMIN, SM_CYMINIMIZED, SM_CYMINSPACING, SM_CYMINTRACK, SM_CYSCREEN, SM_CYSIZE, SM_CYSIZEFRAME, SM_CYSMCAPTION, SM_CYSMICON, SM_CYSMSIZE, SM_CYVIRTUALSCREEN, SM_CYVSCROLL, SM_CYVTHUMB, SM_DBCSENABLED, SM_DEBUG, SM_IMMENABLED, SM_MEDIACENTER, SM_MENUDROPALIGNMENT, SM_MIDEASTENABLED, SM_MOUSEHORIZONTALWHEELPRESENT, SM_MOUSEPRESENT, SM_MOUSEWHEELPRESENT, SM_NETWORK, SM_PENWINDOWS, SM_REMOTECONTROL, SM_REMOTESESSION, SM_RESERVED1, SM_RESERVED2, SM_RESERVED3, SM_RESERVED4, SM_SAMEDISPLAYFORMAT, SM_SECURE, SM_SERVERR2, SM_SHOWSOUNDS, SM_SHUTTINGDOWN, SM_SLOWMACHINE, SM_STARTER, SM_SWAPBUTTON, SM_TABLETPC, SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN, SW_FORCEMINIMIZE, SW_HIDE, SW_MAX, SW_MAXIMIZE, SW_MINIMIZE, SW_NORMAL, SW_RESTORE, SW_SHOW, SW_SHOWDEFAULT, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_SHOWNA, SW_SHOWNOACTIVATE, SW_SHOWNORMAL, SWP_NOZORDER, ULW_ALPHA, ULW_COLORKEY, ULW_OPAQUE, VK_CONTROL, VK_LCONTROL, VK_LMENU, VK_LSHIFT, VK_MENU, VK_RCONTROL, VK_RMENU, VK_RSHIFT, VK_SHIFT, WH_KEYBOARD, WH_KEYBOARD_LL, WH_MOUSE, WH_MOUSE_LL, WM_CHAR, WM_CLOSE, WM_DRAWITEM, WM_HOTKEY, WM_KEYDOWN, WM_KEYUP, WM_MDIMAXIMIZE, WM_PAINT, WM_QUIT, WM_SHOWWINDOW, WM_SYSCOMMAND, WM_SYSKEYDOWN, WM_SYSKEYUP, WS_CHILD, WS_EX_COMPOSITED, WS_EX_LAYERED, WS_EX_TRANSPARENT, WS_MAXIMIZE, WS_MINIMIZE, WS_POPUP, WS_VISIBLE
Constructor and Description |
---|
Window(Win32Client clientValue,
Win32Locator locatorValue)
.
|
Window(Win32Client clientValue,
Window parentValue,
Win32Locator locatorValue)
.
|
Window(Window parentValue,
Win32Locator locatorValue)
.
|
Modifier and Type | Method and Description |
---|---|
void |
click()
.
|
boolean |
disappears()
.
|
boolean |
disappears(long timeout)
.
|
boolean |
exists()
.
|
boolean |
exists(long timeout)
.
|
Win32Client |
getClient() |
Rect |
getClientRect()
.
|
long |
getHwnd()
.
|
Win32Locator |
getLocator()
.
|
org.apache.log4j.Logger |
getLogger() |
protected String |
getNativeText(org.apache.axis.types.UnsignedShort[] text)
.
|
Window |
getParent()
.
|
Rect |
getRect()
.
|
void |
initializeElements(Window win) |
boolean |
isActive()
.
|
boolean |
isEnabled()
.
|
boolean |
isEnabled(long timeout)
.
|
boolean |
isVisible()
.
|
boolean |
isVisible(long timeout)
.
|
void |
sendKeys()
.
|
void |
setClient(Win32Client clientValue) |
void |
setLocator(Win32Locator locatorValue) |
void |
setParent(Window parentValue) |
void |
typeKeys(String text)
.
|
boolean |
waitFor(long timeout,
String methodName,
Object expectedValue,
Object... params)
.
|
public Window(Win32Client clientValue, Win32Locator locatorValue)
clientValue
- .locatorValue
- .Exception
public Window(Win32Client clientValue, Window parentValue, Win32Locator locatorValue)
clientValue
- .parentValue
- .locatorValue
- .Exception
public Window(Window parentValue, Win32Locator locatorValue)
parentValue
- .locatorValue
- .Exception
public final Win32Client getClient()
public final void setClient(Win32Client clientValue)
clientValue
- the client to setpublic final org.apache.log4j.Logger getLogger()
public final void setLocator(Win32Locator locatorValue)
locatorValue
- the locator to setpublic final void setParent(Window parentValue)
parentValue
- the parent to setpublic final boolean disappears(long timeout) throws Exception
timeout
- .Exception
- .public boolean exists() throws RemoteException
RemoteException
- .public boolean exists(long timeout) throws Exception
timeout
- .Exception
- .public final long getHwnd()
public final Win32Locator getLocator()
protected final String getNativeText(org.apache.axis.types.UnsignedShort[] text)
text
- .public final Window getParent()
public final void initializeElements(Window win)
public final boolean isActive()
public final boolean isEnabled(long timeout) throws Exception
timeout
- .Exception
- .public final boolean isVisible(long timeout) throws Exception
timeout
- .Exception
- .public final void sendKeys()
public final void typeKeys(String text) throws Exception
text
- .Exception
- .Copyright © 2013. All rights reserved.