|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.jiffie.JiffieUtility
public final class JiffieUtility
This class contains utility methods used within jiffie.
| Constructor Summary | |
|---|---|
JiffieUtility()
|
|
| Method Summary | |
|---|---|
static Variant |
executeScript(IHTMLDocument2 doc,
java.lang.String jsCode)
Executes the jsCode in the context of m_explorer. |
static ElementFactory |
getElementFactory()
Retrieve the element factory used by this instance of Jiffie. |
static EventHandlerFactory |
getEventHandlerFactory()
Retrieve the event handler factory used by this instance of Jiffie. |
static boolean |
getEventHandlingEnabled()
Retrieves a flag indicating if event handling is enabled by default. |
static int |
getMaxPollCount()
Retrieves the maximum poll count |
static int |
getPollTime()
Retrieves the poll time. |
static void |
sendKeys(java.lang.String title,
java.lang.String keys)
This method is used to send keystrokes to an arbitrary application. |
static void |
sendKeys(java.lang.String title,
java.lang.String keys,
IHTMLDocument2 document)
As per the sendKeys method this method sends keystrokes to an application. |
static ElementFactory |
setElementFactory(ElementFactory factory)
Sets the element factory used by this instance of Jiffie. |
static EventHandlerFactory |
setEventHandlerFactory(EventHandlerFactory factory)
Sets the event handler factory used by this instance of Jiffie. |
static void |
setEventHandlingEnabled(boolean enabled)
Sets a flag indicating if event handling is enabled by default. |
static void |
setMaxPollCount(int maxPollCount)
In order to allow Internet Explorer to finish whatever operation Jiffie has just asked it to do, we need to be able to poll the application's status. |
static void |
setPollTime(int pollTime)
In order to allow Internet Explorer to finish whatever operation Jiffie has just asked it to do, we need to be able to poll the application's status. |
static void |
waitWhileIncomplete(IDispatch dispatch)
This method waits until the dispatch interface indicates that it is "complete" (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JiffieUtility()
| Method Detail |
|---|
public static void waitWhileIncomplete(IDispatch dispatch)
throws JiffieException
dispatch - dispatch interface
JiffieExceptionsetPollTime(int),
setMaxPollCount(int)
public static void sendKeys(java.lang.String title,
java.lang.String keys)
throws JiffieException
title - expected dialog titlekeys - keystrokes to send to the dialog
JiffieException
public static void sendKeys(java.lang.String title,
java.lang.String keys,
IHTMLDocument2 document)
throws JiffieException
title - expected dialog titlekeys - keystrokes to send to the dialogdocument - document object
JiffieExceptionpublic static void setPollTime(int pollTime)
pollTime - sleep time between status tests in millisecondspublic static void setMaxPollCount(int maxPollCount)
maxPollCount - maximum number of status tests before abortingpublic static int getPollTime()
public static int getMaxPollCount()
public static boolean getEventHandlingEnabled()
public static void setEventHandlingEnabled(boolean enabled)
enabled - event handling enabled flagpublic static EventHandlerFactory getEventHandlerFactory()
public static EventHandlerFactory setEventHandlerFactory(EventHandlerFactory factory)
factory - event handler factory
public static ElementFactory getElementFactory()
public static ElementFactory setElementFactory(ElementFactory factory)
factory - element factory
public static Variant executeScript(IHTMLDocument2 doc,
java.lang.String jsCode)
throws JiffieException
It does this by creating the following html in the body of the document:
doc - target document for javascript executionjsCode - Javascript code to be executed.
JiffieException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||