public class FlashMSAAUtil extends Object
Constructor and Description |
---|
FlashMSAAUtil() |
Modifier and Type | Method and Description |
---|---|
static FlashMSAAObject[] |
getFlashElements(FlashMSAAObject root) |
static FlashMSAAObject[] |
getFlashElements(FlashMSAAObject root,
boolean showOffScreen,
boolean scanAll) |
static IFlashPlayer[] |
getFlashPlayers(int hwnd) |
static IFlashPlayer[] |
getFlashPlayers(int hwnd,
boolean showOffScreen,
boolean scanAll) |
static String |
getHtmlAttribute(int iacc,
String name) |
static IDispatch |
getHtmlElementFromObject(Object objUnknown) |
static IDispatch |
getHtmlElementFromPtr(int iacc) |
static boolean |
isFlash(FlashMSAAObject accObject) |
static boolean |
isFlash(int iacc) |
static boolean |
isFlashClass(String className)
Check if the class name relates to Flash content
|
static boolean |
isInvisibleFlash(FlashMSAAObject accObject) |
static boolean |
isInvisibleFlash(int iacc) |
static boolean |
isScanAll() |
static boolean |
isShowOffscreen() |
static void |
setScanAll(boolean scan_all) |
static void |
setShowOffscreen(boolean show_offscreen) |
public static boolean isFlash(int iacc)
iacc
- the address of IAccessiblepublic static boolean isInvisibleFlash(int iacc)
iacc
- the address of IAccessiblepublic static IFlashPlayer[] getFlashPlayers(int hwnd)
hwnd
- the root window to be used to obtain descendant FlashPlayers.IFlashPlayer
that are descendant of the root
window. It is same as getFlashPlayers(hwnd, false, false).public static IFlashPlayer[] getFlashPlayers(int hwnd, boolean showOffScreen, boolean scanAll)
hwnd
- the root window to be used to obtain descendant FlashPlayers.showOffScreen
- whether the objects being off screen are collected or not.scanAll
- whether the window-less Flash objects are collected or not.IFlashPlayer
that are descendant of the root
window.public static boolean isFlash(FlashMSAAObject accObject)
accObject
- the accessible object to be checked.public static boolean isInvisibleFlash(FlashMSAAObject accObject)
accObject
- the accessible object to be checked.public static boolean isFlashClass(String className)
className
- target class namepublic static FlashMSAAObject[] getFlashElements(FlashMSAAObject root)
root
- the root element to be used to obtain its children.public static FlashMSAAObject[] getFlashElements(FlashMSAAObject root, boolean showOffScreen, boolean scanAll)
root
- the root element to be traversed to collect Flash objects.showOffScreen
- whether the objects being off screen are collected or not.scanAll
- whether the window-less Flash objects are collected or not.public static boolean isScanAll()
public static void setScanAll(boolean scan_all)
scan_all
- the scan mode of Flash finder. If it is true then the
window-less Flash objects are also collected.public static boolean isShowOffscreen()
public static void setShowOffscreen(boolean show_offscreen)
show_offscreen
- the scan mode of Flash finder. If it is true then the off
screen objects are also collected.public static IDispatch getHtmlElementFromPtr(int iacc)
iacc
- the address of IAccessiblepublic static String getHtmlAttribute(int iacc, String name)
iacc
- the address of IAccessiblename
- target attribute namepublic static IDispatch getHtmlElementFromObject(Object objUnknown)
objUnknown
- the object to be used to obtain the interface of HTML element.
It must be an instance of IAccessibleObject or an instance of
IUnknownIUnknown