|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LoadableJSAppletInterface provides an optional mechanism to access the caching management of Host On-Demand specific libraries provided by the Host On-Demand server and to provide access to the applet via Java Script.
A custom applet, implementing this interface and launched via
com.ibm.eNetwork.HOD.cached.appletloader.JSCachedAppletLoader
in a Deployment Wizard derived HTML, can specify automatic caching
management of the required Host On-Demand specific libraries.
In contrast the custom applet libraries themselves will be downloaded and temporarily cached in the browser.
Method Summary | |
---|---|
java.lang.String |
callCustomerFunction(java.lang.String fncName,
java.lang.String parms)
Method which can be used to extend the API to provide additional functionality. |
int |
connectSession()
Method called to cause a session to initiate the connection. |
int |
connectSession1(java.lang.String sessionName)
Method called to cause a session specified by the sessionName to initiate the connection. |
int |
disconnectSession()
Method called to cause a session to disconnect. |
int |
disconnectSession1(java.lang.String sessionName)
Method called to cause the session specified by the sessionName to disconnect. |
int |
displaySession()
Method to display the currently selected session. |
int |
displaySession1(java.lang.String sessionName)
Method to display the session specified by the sessionName. |
java.lang.String |
getAllSessionNames()
Method which can be used to return a list of all active sessions. |
java.lang.String |
getErrorMessage()
Method which can be used to receive any error messages |
java.lang.String |
getSessionID()
Method which can be used to return the ID of the last session started by startSession. |
java.lang.String |
getString()
Method which can be used to retrieve data from a session. |
java.lang.String |
getString1(java.lang.String sessionName)
Method which can be used to retrieve data from the session specified by sessionName |
java.lang.String |
getString3(java.lang.String sessionName,
int pos,
int length)
Method which can be used to retrieve data from the session specified by sessionName |
java.lang.String |
getString4(java.lang.String sessionName,
int row,
int col,
int length)
Method which can be used to retrieve data from the session specified by sessionName at the specified position. |
int |
getStringLength()
Method which can be used to return the number of characters copied into the last getString() call. |
int |
hideHODDesktop()
Method to hide the HOD desktop. |
void |
init()
Called by JSCachedAppletLoader to inform this LoadableJSAppletInterface instance that it has been loaded into the system. |
int |
inputInhibited()
Method which can be used to check whether the currently selected session is ready for interaction, such as sending keystrokes or calling other API methods |
int |
inputInhibited1(java.lang.String sessionName)
Method which can be used to check whether the specified session is ready for interaction, such as sending keystrokes or calling other API methods |
boolean |
isCommReady()
Method which can be used to check whether the currently selected session is ready to communicate with the host. |
boolean |
isCommReady1(java.lang.String sessionName)
Method which can be used to check whether the specified session is ready to communicate with the host. |
boolean |
isSessionActive(java.lang.String sessionName)
Method which can be used to determine if the specified session is active. |
int |
reset()
Method which can be used to rest the currently selected session's locked keyboard |
int |
reset1(java.lang.String sessionName)
Method which can be used to rest the specified sessions locked keyboard |
int |
sendKeys1(java.lang.String text)
Method which can be used to send a string of keys to a session. |
int |
sendKeys2(java.lang.String sessionName,
java.lang.String text)
Method which can be used to send a string of keys to a session specified by sessionName |
int |
sendKeys3(java.lang.String sessionName,
java.lang.String text,
int pos)
Method which can be used to send a string of keys to a session specified by sessionName at the specified cursor location. |
int |
sendKeys4(java.lang.String sessionName,
java.lang.String text,
int row,
int col)
Method which can be used to send a string of keys to a session specified by sessionName at the specified row and column. |
void |
setApplet(java.applet.Applet a)
Called by CachedAppletLoader to pass a reference to itself to this LoadableAppletInterface instance. |
int |
setString1(java.lang.String text)
Method which can be used to send a string of keys to a session. |
int |
setString2(java.lang.String sessionName,
java.lang.String text)
Method which can be used to send a string of keys to a session specified by sessionName |
int |
setString3(java.lang.String sessionName,
java.lang.String text,
int pos)
Method which can be used to send a string of keys to a session specified by sessionName at the specified cursor location. |
int |
setString4(java.lang.String sessionName,
java.lang.String text,
int row,
int col)
Method which can be used to send a string of keys to a session specified by sessionName at the specified row and column. |
int |
showHODDesktop()
Method to show the HOD desktop. |
void |
start()
Called by JSCachedAppletLoader to inform this LoadableJSAppletInterface instance that it should start its execution. |
int |
startMacro1(java.lang.String macroName)
Method which can be used to start a macro on the current session. |
int |
startMacro2(java.lang.String sessionName,
java.lang.String macroName)
Method which can be used to start a macro on the specified session |
int |
startSession(java.lang.String sessionName)
Method which can be used to start the session specified |
void |
stop()
Called by JSCachedAppletLoader to inform this LoadableJSAppletInterface instance that the stop method has been called. |
int |
stopAllSessions()
Method called to stop all active sessions |
int |
stopSession()
Method called to stop a session |
int |
stopSession1(java.lang.String sessionName)
Method called to stop a particular session specified by the sessionName |
int |
waitForStringInRect8(java.lang.String text,
int sRow,
int sCol,
int eRow,
int eCol,
long timeout,
boolean waitForInput,
boolean caseSensitive)
Method which can be used to synchronously wait until the input text string appears at the given rectangle in the currently selected session |
int |
waitForStringInRect9(java.lang.String sessionName,
java.lang.String text,
int sRow,
int sCol,
int eRow,
int eCol,
long timeout,
boolean waitForInput,
boolean caseSensitive)
Method which can be used to synchronously wait until the input text string appears at the given rectangle in the session specified by sessionName. |
int |
waitWhileStringInRect8(java.lang.String text,
int sRow,
int sCol,
int eRow,
int eCol,
long timeout,
boolean waitForInput,
boolean caseSensitive)
Method which can be used to synchronously wait until the input text string is no longer in the given rectangle in the currently selected session. |
int |
waitWhileStringInRect9(java.lang.String sessionName,
java.lang.String text,
int sRow,
int sCol,
int eRow,
int eCol,
long timeout,
boolean waitForInput,
boolean caseSensitive)
Method which can be used to synchronously wait until the input text string is no longer in the given rectangle in the session specified by sessionName. |
Method Detail |
public void setApplet(java.applet.Applet a)
The class implementing LoadableJSAppletInterface is not the top level class that the browser is aware of: JSCachedAppletLoader is. A reference to JSCachedAppletLoader provides an access path to top level functionality.
public void start()
public void init()
public void stop()
public int startSession(java.lang.String sessionName)
sessionName
- the name of the session to be started.public java.lang.String getSessionID()
public java.lang.String getAllSessionNames()
public int stopSession()
public int stopSession1(java.lang.String sessionName)
sessionName
- the name of the session to be stopped.public int stopAllSessions()
public int connectSession()
public int connectSession1(java.lang.String sessionName)
sessionName
- the name of the session to connectpublic int disconnectSession()
public int disconnectSession1(java.lang.String sessionName)
sessionName
- the name of the session to disconnectpublic int displaySession()
public int displaySession1(java.lang.String sessionName)
sessionName
- the name of the session to displaypublic int hideHODDesktop()
public int showHODDesktop()
public int sendKeys1(java.lang.String text)
text
- String of keys to sendpublic int sendKeys2(java.lang.String sessionName, java.lang.String text)
sessionName
- the name of the sessiontext
- The string of characters and aid key mnemonics to
be sent.public int sendKeys3(java.lang.String sessionName, java.lang.String text, int pos)
sessionName
- the name of the sessiontext
- The string of characters and aid key mnemonics to
be sent.pos
- The linear position where keys should be sent.public int sendKeys4(java.lang.String sessionName, java.lang.String text, int row, int col)
sessionName
- the name of the sessiontext
- The string of characters and mnemonic keywords
to be sent.row
- The starting row where keys should be sent.col
- The starting column where keys should be sent.public int setString1(java.lang.String text)
text
- String of keys to sendpublic int setString2(java.lang.String sessionName, java.lang.String text)
sessionName
- the name of the sessiontext
- The string of characters and aid key mnemonics to
be sent.public int setString3(java.lang.String sessionName, java.lang.String text, int pos)
sessionName
- the name of the sessiontext
- The string of characters and aid key mnemonics to
be sent.pos
- The linear position where keys should be sent.public int setString4(java.lang.String sessionName, java.lang.String text, int row, int col)
sessionName
- the name of the sessiontext
- The string of characters and mnemonic keywords
to be sent.row
- The starting row where keys should be sent.col
- The starting column where keys should be sent.public java.lang.String getString()
public java.lang.String getString1(java.lang.String sessionName)
sessionName
- the name of the sessionpublic java.lang.String getString3(java.lang.String sessionName, int pos, int length)
sessionName
- the name of the sessionpos
- the position to receivelength
- length of data to receivepublic java.lang.String getString4(java.lang.String sessionName, int row, int col, int length)
sessionName
- the name of the sessionrow
- the starting rowcol
- the starting columnlength
- length of data to receivepublic int getStringLength()
public int inputInhibited()
public int inputInhibited1(java.lang.String sessionName)
sessionName
- the name of the sessionpublic boolean isCommReady()
public boolean isCommReady1(java.lang.String sessionName)
sessionName
- the name of the sessionpublic int reset()
public int reset1(java.lang.String sessionName)
sessionName
- the name of the sessionpublic int waitForStringInRect8(java.lang.String text, int sRow, int sCol, int eRow, int eCol, long timeout, boolean waitForInput, boolean caseSensitive)
text
- text to wait forsRow
- start rowsCol
- start columneRow
- end roweCol
- end columntimeout
- timeout valuewaitForInput
- if true, will wait until OIA indicates session is ready for input.caseSensitive
- if true, the text will be case sensitivepublic int waitForStringInRect9(java.lang.String sessionName, java.lang.String text, int sRow, int sCol, int eRow, int eCol, long timeout, boolean waitForInput, boolean caseSensitive)
sessionName
- name of the sessiontext
- text to wait forsRow
- start rowsCol
- start columneRow
- end roweCol
- end columntimeout
- timeout valuewaitForInput
- if true, will wait until OIA indicates session is ready for input.caseSensitive
- if true, the text will be case sensitivepublic int waitWhileStringInRect8(java.lang.String text, int sRow, int sCol, int eRow, int eCol, long timeout, boolean waitForInput, boolean caseSensitive)
text
- text to wait forsRow
- start rowsCol
- start columneRow
- end roweCol
- end columntimeout
- timeout valuewaitForInput
- if true, will wait until OIA indicates session is ready for input.caseSensitive
- if true, the text will be case sensitivepublic int waitWhileStringInRect9(java.lang.String sessionName, java.lang.String text, int sRow, int sCol, int eRow, int eCol, long timeout, boolean waitForInput, boolean caseSensitive)
sessionName
- name of the sessiontext
- text to wait forsRow
- start rowsCol
- start columneRow
- end roweCol
- end columntimeout
- timeout valuewaitForInput
- if true, will wait until OIA indicates session is ready for input.caseSensitive
- if true, the text will be case sensitivepublic boolean isSessionActive(java.lang.String sessionName)
sessionName
- name of the sessionpublic int startMacro1(java.lang.String macroName)
macroName
- name of the macro to playpublic int startMacro2(java.lang.String sessionName, java.lang.String macroName)
sessionName
- name of the sessionmacroName
- name of the macro to playpublic java.lang.String getErrorMessage()
public java.lang.String callCustomerFunction(java.lang.String fncName, java.lang.String parms)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |