|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppConnTerm
AppConnTerm is an interface defining the Host Integrator terminal commands.
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String |
getStringAtCursor(int length)
Gets a string of the given length from the current entity on the Host Integrator server starting at the current cursor position. |
java.lang.String |
getStringAtOffset(int offset,
int length)
Gets a string of the given length from the current entity on the Host Integrator server starting at an offset. |
java.lang.String |
getStringAtRowColumn(int topRow,
int leftColumn,
int numRows,
int numColumns)
Gets a string from a rectangular region of the current entity on the Host Integrator server starting at a given row and column. |
TerminalField |
getTerminalFieldAtCursor()
Gets a TerminalField object that gives information about the terminal field at the current cursor position on the Host Integrator server. |
void |
insertStringAtCursor(java.lang.String string)
Inserts a string into the current entity on the Host Integrator server starting at the current cursor position. |
void |
insertStringAtOffset(java.lang.String string,
int offset)
Inserts a string into the current entity on the Host Integrator server starting at an offset. |
void |
insertStringAtRowColumn(java.lang.String string,
int rowNum,
int columnNum)
Inserts a string into the current entity on the Host Integrator server starting at the given row and column. |
void |
performAidKey(int key)
Enters an aid key (for example, a Program Function key) into the current Host Integrator server session. |
void |
waitForCursor(int rowNum,
int columnNum,
int timeout)
Waits for the presence of the terminal cursor at a particular terminal screen offset. |
void |
waitForString(java.lang.String string,
int rowNum,
int columnNum,
int timeout)
Waits for the presence of a string starting at a particular terminal screen row and column. |
void |
waitForStringRelCursor(java.lang.String string,
int rowOffset,
int columnOffset,
int timeout)
Waits for the presence of a string relative to the current terminal screen cursor. |
Method Detail |
---|
java.lang.String getStringAtCursor(int length) throws ApptrieveException
Gets a string of the given length from the current entity on the Host Integrator server starting at the current cursor position.
Reasons for failure include:
length
- int - The length of the string on the entity (i.e. screen)
ApptrieveException
- - if a Host Integrator server error occursgetStringAtRowColumn(int, int, int, int)
,
getStringAtOffset(int, int)
,
insertStringAtCursor(java.lang.String)
,
insertStringAtOffset(java.lang.String, int)
,
insertStringAtRowColumn(java.lang.String, int, int)
java.lang.String getStringAtOffset(int offset, int length) throws ApptrieveException
Gets a string of the given length from the current entity on the Host Integrator server starting at an offset.
Reasons for failure include:
offset
- int - The offset from the start of the screen bufferlength
- int - The length of the string on the entity (i.e. screen)
ApptrieveException
- - if a Host Integrator server error occursgetStringAtRowColumn(int, int, int, int)
,
insertStringAtOffset(java.lang.String, int)
,
insertStringAtRowColumn(java.lang.String, int, int)
java.lang.String getStringAtRowColumn(int topRow, int leftColumn, int numRows, int numColumns) throws ApptrieveException
Gets a string from a rectangular region of the current entity on the Host Integrator server starting at a given row and column.
Reasons for failure include:
topRow
- int - The starting row on the entity (i.e. screen)leftColumn
- int - The starting column on the entity (i.e. screen)numRows
- int - the number of rows to get relative to the starting rownumColumns
- int - the number of columns to get relative to the starting column
ApptrieveException
- - if a Host Integrator server error occursgetStringAtOffset(int, int)
,
insertStringAtOffset(java.lang.String, int)
,
insertStringAtRowColumn(java.lang.String, int, int)
TerminalField getTerminalFieldAtCursor() throws ApptrieveException
Gets a TerminalField object that gives information about the terminal field at the current cursor position on the Host Integrator server.
Reasons for failure include:
ApptrieveException
- - if a Host Integrator server error occursAppConnModelRecord.getTerminalAttributes(java.lang.String)
void insertStringAtCursor(java.lang.String string) throws ApptrieveException
Inserts a string into the current entity on the Host Integrator server starting at the current cursor position.
Reasons for failure include:
string
- java.lang.String - The string to insert
ApptrieveException
- - if a Host Integrator server error occursgetStringAtOffset(int, int)
,
getStringAtRowColumn(int, int, int, int)
,
insertStringAtOffset(java.lang.String, int)
,
insertStringAtRowColumn(java.lang.String, int, int)
void insertStringAtOffset(java.lang.String string, int offset) throws ApptrieveException
Inserts a string into the current entity on the Host Integrator server starting at an offset.
Reasons for failure include:
string
- java.lang.String - The stringoffset
- int - The offset from the start of the screen buffer
ApptrieveException
- - if a Host Integrator server error occursgetStringAtOffset(int, int)
,
getStringAtRowColumn(int, int, int, int)
,
insertStringAtRowColumn(java.lang.String, int, int)
void insertStringAtRowColumn(java.lang.String string, int rowNum, int columnNum) throws ApptrieveException
Inserts a string into the current entity on the Host Integrator server starting at the given row and column.
Reasons for failure include:
string
- java.lang.String - The string to insertrowNum
- int - The row number of the starting location for insertion on the entity (i.e. screen)columnNum
- int - The column number of the starting location for insertion on the entity (i.e. screen)
ApptrieveException
- - if a Host Integrator server error occursgetStringAtOffset(int, int)
,
getStringAtRowColumn(int, int, int, int)
,
insertStringAtOffset(java.lang.String, int)
void performAidKey(int key) throws ApptrieveException
Enters an aid key (for example, a Program Function key) into the current Host Integrator server session.
The key is one of the terminal key constants defined in the com.wrq.apptrieve.appconn.AppConnTerm class.
key
- int - The aid key AppConnTerm constant
ApptrieveException
- - if a Host Integrator server error occurswaitForCursor(int, int, int)
,
AppConnModel.waitForEntityChange(java.lang.String, int)
,
waitForString(java.lang.String, int, int, int)
,
waitForStringRelCursor(java.lang.String, int, int, int)
void waitForCursor(int rowNum, int columnNum, int timeout) throws ApptrieveException
Waits for the presence of the terminal cursor at a particular terminal screen offset.
Exception occurs if timeout period elapses before the cursor is at the offset.
rowNum
- int - the screen row number for the cursorcolumnNum
- int - the screen column number for the cursortimeout
- int - the timeout period in seconds
ApptrieveException
- - if a Host Integrator server error occursperformAidKey(int)
,
AppConnModel.waitForEntityChange(java.lang.String, int)
,
waitForString(java.lang.String, int, int, int)
,
waitForStringRelCursor(java.lang.String, int, int, int)
void waitForString(java.lang.String string, int rowNum, int columnNum, int timeout) throws ApptrieveException
Waits for the presence of a string starting at a particular terminal screen row and column.
Exception occurs if timeout period elapses before the string appears at the row and column.
string
- java.lang.String - the string to wait forrowNum
- int - the screen row starting number for the string (-1 matches any row)columnNum
- int - the screen column starting number for the string (-1 matches any column)timeout
- int - the timeout period in seconds
ApptrieveException
- - if a Host Integrator server error occursperformAidKey(int)
,
waitForCursor(int, int, int)
,
AppConnModel.waitForEntityChange(java.lang.String, int)
,
waitForStringRelCursor(java.lang.String, int, int, int)
void waitForStringRelCursor(java.lang.String string, int rowOffset, int columnOffset, int timeout) throws ApptrieveException
Waits for the presence of a string relative to the current terminal screen cursor.
Exception occurs if timeout period elapses before the string appears at the offset.
string
- java.lang.String - the string to wait forrowOffset
- int - the starting screen location for the string relative
to current cursor rowcolumnOffset
- int - the starting screen column location for the string relative
to current cursor columntimeout
- int - the timeout period in seconds
ApptrieveException
- - if a Host Integrator server error occursperformAidKey(int)
,
waitForCursor(int, int, int)
,
AppConnModel.waitForEntityChange(java.lang.String, int)
,
waitForString(java.lang.String, int, int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |