com.ibm.eNetwork.ECL
Class ECLPS

java.lang.Object
  |
  +--com.ibm.eNetwork.ECL.ECLPS
All Implemented Interfaces:
ECLConstants, org.ohio.iOhio, org.ohio.iOhioScreen

public class ECLPS
extends java.lang.Object
implements ECLConstants, org.ohio.iOhioScreen

ECLPS encapsulates the host presentation space. The presentation space is a virtual screen which contains all the characters and attributes that would be seen on a traditional emulator screen. The presentation space is the primary object for text-based interactions with the host. This class provides methods that manipulate text, perform searches, send keystrokes to the host, and work with the cursor. An instance of ECLPS can be obtained using the GetPS() method on an instance of ECLSession.

The raw presentation space data is maintained in a series of planes which can be accessed by various methods within this class. The text plane contains the actual characters in the presentation space. Most of the methods in ECLPS work exclusively with the text plane.

The remaining planes contain the corresponding attributes for each character in the text plane. The color plane contains color characteristics. The field plane contains the field attributes. The extended field plane contains the extended field attributes. The DBCS plane contains double byte character set (DBCS) character and field attributes. The grid plane contains the DBCS grid information. The color, field, extended field, DBCS, and grid planes are not interpreted by any of the methods in this class.

It may be more convenient to access the presentation space through a field list (ECLFieldList). The GetFieldList() method may be used to get an instance of ECLFieldList which contains a snapshot of all the fields in the current presentation space. Fields provide convenient methods for interpreting the data in the non-text planes.

The only configurable feature of the presentation space is its size. The size is determined by the value of the SESSION_PS_SIZE keyword in the Properties parameter when ECLSession is constructed. Valid presentation space sizes include 24 x 80, 32 x 80, 43 x 80, 27 x 132, and 24 x 132 but might be limited by the type of emulation (3270, 5250, VT). The default size is 24 rows by 80 columns. The size of the presentation space can be determined using the GetSize(), GetSizeRows(), and GetSizeCols() methods.

Once an instance of ECLPS has been obtained, an application can register for PS events using the RegisterPSEvent() method. PS events are sent to registered objects whenever the presentation space is changed for any reason, be it host or operator initiated. These PS events are the primary mechanism used by an application to drive interactions with the presentation space.

See Also:
ECLSession, ECLFieldList, ECLField

Field Summary
static int ALL_EVENTS
           
 int Columns
           
static int HOST_EVENTS
           
static int USER_EVENTS
           
 
Fields inherited from interface com.ibm.eNetwork.ECL.ECLConstants
ALL_FIELDS, ALL_PLANES, ALPHANUM_FIELD, ALTCUR_STR, ALTVIEW_STR, ATTN_STR, ATTR_5250_ALPHA_ONLY, ATTR_5250_ALPHANUM, ATTR_5250_ALPHANUM_MASK, ATTR_5250_BIDI_RTL, ATTR_5250_BRIGHT, ATTR_5250_DBCS_KATAKANA, ATTR_5250_DISPLAY, ATTR_5250_MAG_STRIPE, ATTR_5250_MODIFIED, ATTR_5250_NORMAL, ATTR_5250_NUM_ONLY, ATTR_5250_NUM_PLUS, ATTR_5250_NUM_SHIFT, ATTR_5250_NUM_SIGNED, ATTR_5250_PROTECTED, ATTR_ALPHANUM, ATTR_DISPLAY1, ATTR_DISPLAY2, ATTR_MDT, ATTR_PROTECTED, AUTOPUSH_STR, AUTOREV_STR, BACKSP_STR, BACKTAB_STR, BACKTABWORD_STR, BASE_STR, BEGINFLD_STR, BIDI_MODE_OFF_STR, BIDI_MODE_ON_STR, BIDIL_STR, BLUE_3270, CANCELPJOB_STR, CLEAR_STR, CLEARRECT_STR, CLOSE_STR, COLOR_ATTRIBUTES_PLANE, COLOR_PLANE, COLUMNHEAD_STR, CONTEXT_DISP_STR, CONTINUEPJOB_STR, COPY_STR, COPY_TABLE_STR, COPYALL_STR, COPYAPPEND_STR, CRSEL_STR, CSD_STR, CURDOWN_STR, CURLEFT_STR, CURRIGHT_STR, CURSOR_DIRECTION_STR, CURUP_STR, CUT_STR, DB_CA_EXIST, DB_CLEAR, DB_DB1, DB_DBCS, DB_DBHIGH, DB_DEAD, DB_MIX, DB_SI, DB_SO, DB_SOSI_EXIST, DBATTR_DEFAULT, DBATTR_EITHER, DBATTR_ONLY, DBATTR_OPEN, DBATTR_PURE, DBCS_PLANE, DBCSINP_STR, DBDEFALT, DEF_3270, DELCHAR_STR, DELWORD_STR, DISPLAYABLE_FIELD, DOCMODE_STR, DSPSOSI_STR, DUP_CHAR, DUP_STR, EBC_SI, EBC_SO, ENDLINE_STR, ENDPUSH_STR, ENTER_STR, ENTERRESET_STR, ERASEEOF_STR, ERASEFLD_STR, ERASEINPUT_STR, EXFIELD_PLANE, EXT_ATTR_3270_APL, EXT_ATTR_3270_BLINK, EXT_ATTR_3270_CHAR, EXT_ATTR_3270_DBCS, EXT_ATTR_3270_EBCDIC, EXT_ATTR_3270_REVERSE, EXT_ATTR_3270_UNDERLINE, EXT_ATTR_5250_BLINK, EXT_ATTR_5250_COLUMN_SEP, EXT_ATTR_5250_REVERSE, EXT_ATTR_5250_UNDERLINE, EXT_BLINK, EXT_COL_SEP, EXT_D_BOTH, EXT_D_LEFT, EXT_D_OVER, EXT_D_RIGHT, EXT_D_UNDER, EXT_DBCS, EXT_EFA_APL_SET, EXT_EFA_FG_SET, EXT_G_ALL, EXT_G_LEFT, EXT_G_OVER, EXT_G_RIGHT, EXT_G_UNDER, EXT_LINEATTR_CHECK, EXT_LINEATTR_DBLWID, EXT_LINEATTR_DBLWID_DBLHT_BOT, EXT_LINEATTR_DBLWID_DBLHT_TOP, EXT_LINEATTR_NORMAL, EXT_NON_ERASEABLE, EXT_NORMAL, EXT_OPAQUE, EXT_REVERSE, EXT_UNDERLN, F1_STR, F10_STR, F11_STR, F12_STR, F13_STR, F14_STR, F15_STR, F16_STR, F17_STR, F18_STR, F19_STR, F2_STR, F20_STR, F21_STR, F22_STR, F23_STR, F24_STR, F3_STR, F4_STR, F5_STR, F6_STR, F7_STR, F8_STR, F9_STR, FIELD_MARK, FIELD_PLANE, FINAL_STR, FLDBASE_STR, FLDEXT_STR, FLDMINUS_STR, FLDMRK_STR, FLDPLUS_STR, FLDREV_STR, FLDSHAPE_STR, FORMFEED_STR, FWDTAB_STR, GRCURSOR_STR, GREEN_3270, GRID_PLANE, HELP_STR, HILIGHT_FIELD, HINDIL_STR, HOME_STR, HOST_PLANE, HOSTPRT_STR, INITIAL_STR, INSERT_STR, ISOLATED_STR, JUMP_STR, KEYPAD0_STR, KEYPAD1_STR, KEYPAD2_STR, KEYPAD3_STR, KEYPAD4_STR, KEYPAD5_STR, KEYPAD6_STR, KEYPAD7_STR, KEYPAD8_STR, KEYPAD9_STR, KEYPADCOMMA_STR, KEYPADDOT_STR, KEYPADENTER_STR, KEYPADMINUS_STR, LATINL_STR, LOGICAL_DISP_STR, LOLIGHT_FIELD, MARKDOWN_STR, MARKLEFT_STR, MARKRIGHT_STR, MARKUP_STR, MIDDLE_STR, MODIFIED_FIELD, MOVEDOWN_STR, MOVELEFT_STR, MOVERIGHT_STR, MOVEUP_STR, MSR_STR, NATIONAL_DISP_STR, NEUT_3270, NEWLINE_STR, NEXTWORD_STR, NLS_PLANE, NO_TIMEOUT, NOMINAL_DISP_STR, NON_DISPLAYABLE_FIELD, NON_PENDETECTABLE_FIELD, NUMCONTEXT_STR, NUMERIC_FIELD, NUMNATIONAL_STR, NUMNOMINAL_STR, OICR_STR, PA1_STR, PA2_STR, PA3_STR, PAGEDWN_STR, PAGEUP_STR, PASTE_STR, PASTENEXT_STR, PENDETECTABLE_FIELD, PINK_3270, PREVIOUSWORD_STR, PRINT_STR, PROTECTED_FIELD, PRTESTPAGE_STR, PUSH_STR, RAWTEXT_PLANE, RED_3270, RESET_STR, RETRYPRT_STR, ROUNDTRIP_OFF_STR, ROUNDTRIP_ON_STR, RULE_STR, SCREENREV_STR, SEARCH_BACKWARD, SEARCH_FORWARD, SELECTALL_STR, SHIFT_F1_STR, SHIFT_F10_STR, SHIFT_F11_STR, SHIFT_F12_STR, SHIFT_F13_STR, SHIFT_F14_STR, SHIFT_F15_STR, SHIFT_F16_STR, SHIFT_F17_STR, SHIFT_F18_STR, SHIFT_F19_STR, SHIFT_F2_STR, SHIFT_F20_STR, SHIFT_F3_STR, SHIFT_F4_STR, SHIFT_F5_STR, SHIFT_F6_STR, SHIFT_F7_STR, SHIFT_F8_STR, SHIFT_F9_STR, SMARTORDERING_OFF_STR, SMARTORDERING_ON_STR, STARTMAC_STR, SYSREQ_STR, TABWORD_STR, TEST_STR, TEXT_PLANE, THAIL_STR, TOGGLEHEB_STR, TURQ_3270, TXTORL2R_STR, TXTORR2L_STR, TXTTYPEL_STR, TXTTYPEV_STR, UNMARK_STR, UNMODIFIED_FIELD, UNPROTECTED_FIELD, VISUAL_DISP_STR, VTPRINTCONVERT_STR, WORDLFT_STR, WORDRGT_STR, WORDWRAP_STR, YELLOW_3270
 
Fields inherited from interface org.ohio.iOhio
OHIO_COLOR_BLACK, OHIO_COLOR_BLUE, OHIO_COLOR_CYAN, OHIO_COLOR_GREEN, OHIO_COLOR_MAGENTA, OHIO_COLOR_RED, OHIO_COLOR_WHITE, OHIO_COLOR_YELLOW, OHIO_DIRECTION_BACKWARD, OHIO_DIRECTION_FORWARD, OHIO_EXTENDED_COLOR, OHIO_EXTENDED_COLOR_BLUE, OHIO_EXTENDED_COLOR_DEFAULT, OHIO_EXTENDED_COLOR_GREEN, OHIO_EXTENDED_COLOR_PINK, OHIO_EXTENDED_COLOR_RED, OHIO_EXTENDED_COLOR_TURQUOISE, OHIO_EXTENDED_COLOR_WHITE, OHIO_EXTENDED_COLOR_YELLOW, OHIO_EXTENDED_HILITE, OHIO_EXTENDED_HILITE_BLINK, OHIO_EXTENDED_HILITE_NORMAL, OHIO_EXTENDED_HILITE_REVERSEVIDEO, OHIO_EXTENDED_HILITE_UNDERSCORE, OHIO_EXTENDED_RESERVED, OHIO_FIELD_ATTRIBUTE, OHIO_FIELD_HIDDEN, OHIO_FIELD_HIGH_INTENSITY, OHIO_FIELD_MODIFIED, OHIO_FIELD_NUMERIC, OHIO_FIELD_PEN_SELECTABLE, OHIO_FIELD_PROTECTED, OHIO_FIELD_RESERVED, OHIO_INPUTINHIBITED_COMMCHECK, OHIO_INPUTINHIBITED_MACHINECHECK, OHIO_INPUTINHIBITED_NOTINHIBITED, OHIO_INPUTINHIBITED_OTHER, OHIO_INPUTINHIBITED_PROGCHECK, OHIO_INPUTINHIBITED_SYSTEM_WAIT, OHIO_OWNER_APP, OHIO_OWNER_MYJOB, OHIO_OWNER_NVT, OHIO_OWNER_SSCP, OHIO_OWNER_UNKNOWN, OHIO_OWNER_UNOWNED, OHIO_PLANE_COLOR, OHIO_PLANE_EXTENDED, OHIO_PLANE_FIELD, OHIO_PLANE_TEXT, OHIO_STATE_CONNECTED, OHIO_STATE_DISCONNECTED, OHIO_TYPE_3270, OHIO_TYPE_5250, OHIO_TYPE_UNKNOWN, OHIO_UPDATE_CLIENT, OHIO_UPDATE_HOST
 
Method Summary
 void BadgeReader(java.lang.String text)
          The BadgeReader method sends a string to the presentation space at the current cursor location + 1.
 void BadgeReader(java.lang.String text, int pos)
          The BadgeReader method sends a string to the presentation space at the specified location + 1.
 void BadgeReader(java.lang.String text, int row, int column)
          The BadgeReader method sends a string to the presentation space at the specified location + 1.
 int ConvertPosToCol(int pos)
          The ConvertPosToCol method converts a linear presentation space position to its corresponding column.
 int ConvertPosToRow(int pos)
          The ConvertPosToRow method converts a linear presentation space position to its corresponding row.
 int ConvertRowColToPos(int row, int col)
          The ConvertRowColToPos method converts a row and column coordinate to its corresponding linear position.
 int GetCursorCol()
          Returns the column coordinate of the current cursor position.
 int GetCursorPos()
          Returns the linear cursor position.
 int GetCursorRow()
          Returns the row coordinate of the current cursor position.
 boolean GetCursorVisible()
          Returns whether the cursor is visible.
 ECLFieldList GetFieldList()
          GetFieldList returns an instance of ECLFieldList based on the current PS.
 ECLFieldList GetFieldList(int planes)
          GetFieldList returns an instance of ECLFieldList based on the current PS.
 ECLSession GetParent()
          Get the parent of this PS which is an instance of ECLSession.
 ECLPSBIDIServices GetPSBIDIServices()
          Returns the instance of ECLPSBIDIServices associated with the ECLPS instance in 3270/5250 BIDI sessions or null if the session is not using the 3270/5250 BIDI codepage
 ECLPSTHAIServices GetPSTHAIServices()
          Returns the instance of ECLPSTHAIServices associated with the ECLPS instance or null if the session is not using the Thailand codepages (838 or 1160).
 PSVTBIDIServices GetPSVTBIDIServices()
          Returns the instance of PSVTBIDIServices associated with the ECLPS instance in VT BIDI sessions or null if the session is not using the VT BIDI codepage
 int GetScreen(char[] buffer, int bufferLength, int plane)
          GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space.
 int GetScreen(char[] buffer, int bufferLength, int position, int length, int plane)
          GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space.
 int GetScreen(char[] buffer, int bufferLength, int row, int col, int length, int plane)
          GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space.
 int GetScreenRect(char[] buffer, int bufferLength, int startPos, int endPos, int plane)
          GetScreenRect retrieves data from the various planes (text, color, attributes, extended attributes) associated with the presentation space.
 int GetScreenRect(char[] buffer, int bufferLength, int startRow, int startCol, int endRow, int endCol, int plane)
          GetScreenRect retrieves data from the various planes (text, color, attributes, extended attributes) associated with the presentation space.
 java.lang.String[] GetSendKeyMnemonics()
          Returns the valid list of SendKey mnemonic commands for the PS object.
 int GetSize()
          Returns the linear size of the presentation space.
 int GetSizeCols()
          Returns the total number of columns in the presentation space.
 int GetSizeRows()
          Returns the total number of rows in the presentation space.
 int GetString(char[] buffer, int bufferLength)
          GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently.
 int GetString(char[] buffer, int bufferLength, int position, int length)
          GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently.
 int GetString(char[] buffer, int bufferLength, int row, int col, int length)
          GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently.
 boolean IsDBCS2ndChar(int Sba)
          This method is called to check the status for DBCS character during keystroke processing.
 boolean IsDBCSChar(int Sba)
          This method is called to check the status for DBCS character during keystroke processing.
 boolean isScreenReversed()
          This method is used for VT sessions.
 boolean IsSIChar(int Sba)
          This method is called to check the status for SO/SI character during keystroke processing.
 boolean IsSuppressClearEvent()
          Returns whether the system should ignore screen events when a host application sends a clear screen command immediately followed by an end of record indicator in the data stream.
 void MagStripeReader(java.lang.String text)
          The MagStripeReader method sends a string to the presentation space at the current cursor location + 1.
 void MagStripeReader(java.lang.String text, int pos)
          The MagStripeReader method sends a string to the presentation space at the specified location + 1.
 void MagStripeReader(java.lang.String text, int row, int column)
          The MagStripeReader method sends a string to the presentation space at the specified location + 1.
 void RegisterPSEvent(ECLPSListener listener)
          Registers a PS Listener for all PS events.
 void RegisterPSEvent(ECLPSListener listener, int type)
          Registers a PS Listener for either host- or user-generated events.
 void RegisterPSEvent(ECLPSNotify notify)
          Deprecated. 

Use RegisterPSEvent(ECLPSListener listener).

 int SearchString(java.lang.String text, int direction)
          The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently.
 int SearchString(java.lang.String text, int position, int direction)
          The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently.
 int SearchString(java.lang.String text, int row, int column, int direction)
          The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently.
 int SearchText(java.lang.String text, int direction)
          The SearchText method searches for a given text string within the presentation space.
 int SearchText(java.lang.String text, int position, int direction)
          The SearchText method searches for a given text string within the presentation space.
 int SearchText(java.lang.String text, int row, int column, int direction)
          The SearchText method searches for a given text string within the presentation space.
 void SendKeys(java.lang.String text)
          The SendKeys method sends a string of keys to the presentation space.
 void SendKeys(java.lang.String text, int pos)
          This signature of SendKeys sends the given text string at the specified cursor location.
 void SendKeys(java.lang.String text, int row, int col)
          This signature of SendKeys sends the given text string at the specified cursor position.
 void SetCursorPos(int pos)
          Sets the cursor position to the specified linear position.
 void SetCursorPos(int row, int col)
          Sets the cursor position to the specified row and column.
 void SetCursorVisible(boolean bVisible)
          Sets the cursor to be visible or invisible depending on the given parameter
 void setSize(int nRows, int nColumns)
          This method is used to set the size of the presentation space and allocate any memory need to store the characters.
 void SetString(java.lang.String text)
          The SetString method sends a string to the presentation space at the current cursor location similarly to SetText, but it handles DBCS characters differently.
 void SetString(java.lang.String text, int pos)
          The SetString method sends a string to the presentation space at the specified location similarly to SetText, but it handles DBCS characters differently.
 void SetString(java.lang.String text, int row, int column)
          The SetString method sends a string to the presentation space at the specified location similarly to SetText, but it handles DBCS characters differently.
 void SetSuppressClearEvent(boolean argVal)
          Sets whether the system should ignore screen events when a host application sends a clear screen command immediately followed by an end of record indicator in the data stream.
 void SetText(java.lang.String text)
          The SetText method sends a string to the presentation space at the current cursor location.
 void SetText(java.lang.String text, int pos)
          The SetText method sends a string to the presentation space at the specified location.
 void SetText(java.lang.String text, int row, int column)
          The SetText method sends a string to the presentation space at the specified location.
 void UnregisterPSEvent(ECLPSListener listener)
          Unregisters a PS Listener that was previously registered with the RegisterPSEvent() method.
 void UnregisterPSEvent(ECLPSListener listener, int type)
          Unregisters a PS Listener that was previously registered with the RegisterPSEvent() method.
 void UnregisterPSEvent(ECLPSNotify notify)
          Deprecated. 

Use UnregisterPSEvent(ECLPSListener listener).

 boolean WaitForAttrib(int row, int col, char attrib, int plane)
          Synchronously waits until the attribute appears at the given row and column position.
 boolean WaitForAttrib(int row, int col, char attrib, int plane, long timeOut, boolean waitForInput)
          Synchronously waits until the attribute appears at the given row and column position or until the method times out.
 boolean WaitForCursor(int row, int col)
          Synchronously waits until the cursor appears at the given row and column position.
 boolean WaitForCursor(int row, int col, long timeOut, boolean waitForInput)
          Synchronously waits until the cursor appears at the given row and column position or until the method times out.
 boolean WaitForScreen(ECLScreenDesc screenDesc)
          Synchronously waits until the screen, as described by ECLScreenDesc, appears in the Presentation Space.
 boolean WaitForScreen(ECLScreenDesc screenDesc, long timeOut)
          Synchronously waits for the screen, as described by ECLScreenDesc, to appear in the Presentation Space.
 boolean WaitForString(java.lang.String str)
          Synchronously waits until the string appears in the presentation space.
 boolean WaitForString(java.lang.String str, int row, int col)
          Synchronously waits until the string appears at the given position.
 boolean WaitForString(java.lang.String str, int row, int col, long timeOut, boolean waitForInput, boolean caseSensitive)
          Synchronously waits until the string appears at the given position.
 boolean WaitForStringInRect(java.lang.String str, int sRow, int sCol, int eRow, int eCol)
          Synchronously waits until the string appears at the given rectangle.
 boolean WaitForStringInRect(java.lang.String str, int sRow, int sCol, int eRow, int eCol, long timeOut, boolean waitForInput, boolean caseSensitive)
          Synchronously waits until the string appears at the given rectangle.
 boolean WaitWhileAttrib(int row, int col, char attrib, int plane)
          Synchronously waits until the attribute is no longer at the given row and column position.
 boolean WaitWhileAttrib(int row, int col, char attrib, int plane, long timeOut, boolean waitForInput)
          Synchronously waits until the attribute is no longer at the given row and column position.
 boolean WaitWhileCursor(int row, int col)
          Synchronously waits until the cursor is no longer at the given row and column position.
 boolean WaitWhileCursor(int row, int col, long timeOut, boolean waitForInput)
          Synchronously waits until the cursor is no longer at the given row and column position or until the method times out.
 boolean WaitWhileScreen(ECLScreenDesc screenDesc)
          Synchronously waits until the screen, as described by ECLScreenDesc, is no longer in the Presentation Space.
 boolean WaitWhileScreen(ECLScreenDesc screenDesc, long timeOut)
          Synchronously waits until the screen, as described by ECLScreenDesc, is no longer in the Presentation Space.
 boolean WaitWhileString(java.lang.String str)
          Synchronously waits until the string is no longer in the presentation space.
 boolean WaitWhileString(java.lang.String str, int row, int col)
          Synchronously waits until the string is no longer in the given position.
 boolean WaitWhileString(java.lang.String str, int row, int col, long timeOut, boolean waitForInput, boolean caseSensitive)
          Synchronously waits until the string is no longer in the given position.
 boolean WaitWhileStringInRect(java.lang.String str, int sRow, int sCol, int eRow, int eCol)
          Synchronously waits until the string is no longer in the given rectangle.
 boolean WaitWhileStringInRect(java.lang.String str, int sRow, int sCol, int eRow, int eCol, long timeOut, boolean waitForInput, boolean caseSensitive)
          Synchronously waits until the string is no longer in the given rectangle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ohio.iOhioScreen
addScreenListener, findString, getColumns, getCursor, getData, getFields, getOIA, getRows, getString, removeScreenListener, sendAid, sendKeys, setCursor, setString
 
Methods inherited from interface org.ohio.iOhio
getOhioVersion, getVendorName, getVendorObject, getVendorProductVersion
 

Field Detail

Columns

public int Columns

USER_EVENTS

public static final int USER_EVENTS

HOST_EVENTS

public static final int HOST_EVENTS

ALL_EVENTS

public static final int ALL_EVENTS
Method Detail

GetParent

public ECLSession GetParent()
Get the parent of this PS which is an instance of ECLSession.
Returns:
The parent ECLSession.

GetSize

public int GetSize()
Returns the linear size of the presentation space. The linear size of a presentation space is determined by multiplying the number of rows and columns. For example a 24 x 80 presentation space would have a size of 1920.
Returns:
The linear size of the presentation space.

GetSizeRows

public int GetSizeRows()
Returns the total number of rows in the presentation space.
Returns:
The number of rows in the presentation space.
See Also:
GetSizeCols()

GetSizeCols

public int GetSizeCols()
Returns the total number of columns in the presentation space.
Returns:
The number of columns in the presentation space.
See Also:
GetSizeRows()

GetCursorPos

public int GetCursorPos()
Returns the linear cursor position. The linear cursor position is determined by assuming the presentation space is mapped to a one-dimensional array. Two-dimensional array coordinates can be mapped to a one-dimensional array using the following formula: (y - 1) * numCol + x. Therefore, the linear position of a cursor at 10, 15 on a 24 x 80 presentation space would be 9*80+15=735.

Note: The cursor positioning system is 1-based rather than 0-based. The valid cursor positions for a 24 x 80 presentation space are between 1 and 1920 inclusive.

Returns:
The linear cursor position.

GetCursorRow

public int GetCursorRow()
Returns the row coordinate of the current cursor position.

Note: The cursor positioning system is 1-based rather than 0-based. The valid cursor row positions for a 24 x 80 presentation space are between 1 and 24 inclusive.

Returns:
The row coordinate of the current cursor position.
See Also:
GetCursorCol()

GetCursorCol

public int GetCursorCol()
Returns the column coordinate of the current cursor position.

Note: The cursor positioning system is 1-based rather than 0-based. The valid cursor column positions for a 24 x 80 presentation space are between 1 and 80 inclusive.

Returns:
The column coordinate of the current cursor position.
See Also:
GetCursorRow()

SetCursorPos

public void SetCursorPos(int pos)
                  throws ECLErr
Sets the cursor position to the specified linear position.
Parameters:
pos - The new linear cursor position. This number must be between 1 and the size of the presentation space inclusive.
Throws:
ECLErr - Thrown when the given position is out of range.
See Also:
SetCursorPos(int, int)

SetCursorPos

public void SetCursorPos(int row,
                         int col)
                  throws ECLErr
Sets the cursor position to the specified row and column.
Parameters:
row - The new row coordinate of the cursor position. This number must be between 1 and the number of rows in the presentation space inclusive.
column - The new column coordinate of the cursor position. This number must be between 1 and the number of columns in the presentation space inclusive.
Throws:
ECLErr - Thrown when the coordinates given are out of range.
See Also:
SetCursorPos(int)

GetSendKeyMnemonics

public java.lang.String[] GetSendKeyMnemonics()
Returns the valid list of SendKey mnemonic commands for the PS object. This list is based on what session type the PS is from (3270, 5250, VT, and CICS) and what national language environment the PS is running in (Bidi, DBCS, and Thai).

These special keys are represented by keywords which are delimited by square brackets and called mnemonics. For example, the mnemonic keyword for the Enter key is [enter].

Returns:
java.lang.String [] String array that contains the valid key mnemonics

SendKeys

public void SendKeys(java.lang.String text)
              throws ECLErr
The SendKeys method sends a string of keys to the presentation space. The string can be thought of as keystrokes from the keyboard which can contain both text characters and special keystrokes, like the Enter key, the Tab key, or the Page Up key. These special keys are represented by keywords which are delimited by square brackets and called mnemonics. For example, the mnemonic keyword for the Enter key is [enter].

The text string can contain any number or combination of characters and mnemonics. For example, the following string, "userID[tab]password[enter]", can be used to send a user's ID, tab to the next field, send the user's password, and then send the Enter key to logon to a host.

To send a left or right square bracket, the character must be doubled. To send a left square bracket use "[[". To send a right square bracket use "]]".

This signature of SendKeys sends the given text string at the current cursor location.

Parameters:
text - The string of characters and aid key mnemonics to be sent.
Throws:
ECLErr - Thrown on mnemonic error.
See Also:
SendKeys(java.lang.String, int), SendKeys(java.lang.String, int, int)

SendKeys

public void SendKeys(java.lang.String text,
                     int pos)
              throws ECLErr
This signature of SendKeys sends the given text string at the specified cursor location. The cursor is moved to the given location before the text string is sent.
Parameters:
text - The string of characters and mnemonic keywords to be sent.
pos - The linear position where keys should be sent.
Throws:
ECLErr - Thrown if the position specified is out of range or if there is a mnemonic error.
See Also:
SendKeys(java.lang.String), SendKeys(java.lang.String, int, int)

SendKeys

public void SendKeys(java.lang.String text,
                     int row,
                     int col)
              throws ECLErr
This signature of SendKeys sends the given text string at the specified cursor position. The cursor is moved to the given coordinates before the text string is sent.
Parameters:
text - The string of characters and mnemonic keywords to be sent.
row - The starting row where keys should be sent.
column - The starting column where keys should be sent.
Throws:
ECLErr - Thrown if the position specified is out of range or if there is a mnemonic error.
See Also:
SendKeys(java.lang.String), SendKeys(java.lang.String, int)

SearchText

public int SearchText(java.lang.String text,
                      int direction)
The SearchText method searches for a given text string within the presentation space. The method allows both forward and backward searches. If a forward search is specified, the search starts at the beginning of the presentation space. If a backward search is specified, the search starts at the end of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Parameters:
text - The string to search for.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
See Also:
SearchText(java.lang.String, int, int, int), SearchText(java.lang.String, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

SearchString

public int SearchString(java.lang.String text,
                        int direction)
The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently. While SearchText searches for the exact string specified, SearchString automatically duplicates DBCS characters in the search string before attempting the search.

The method allows both forward and backward searches. If a forward search is specified, the search starts at the beginning of the presentation space. If a backward search is specified, the search starts at the end of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Note: SearchString functions identically to SearchText when the given search string contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - The string to search for.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
See Also:
SearchString(java.lang.String, int, int, int), SearchString(java.lang.String, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

SearchText

public int SearchText(java.lang.String text,
                      int row,
                      int column,
                      int direction)
               throws ECLErr
The SearchText method searches for a given text string within the presentation space. The method allows both forward and backward searches. If a forward search is specified, the search begins at the given coordinates (inclusive) and ends at the end of the presentation space. If a backward search is specified, the search begins at the given coordinates (inclusive) and ends at the beginning of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Parameters:
text - The string to search for.
row - Starting row.
column - Starting column.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
Throws:
ECLErr - Thrown if the position specified is out of range.
See Also:
SearchText(java.lang.String, int), SearchText(java.lang.String, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

SearchString

public int SearchString(java.lang.String text,
                        int row,
                        int column,
                        int direction)
                 throws ECLErr
The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently. While SearchText searches for the exact string specified, SearchString automatically duplicates DBCS characters in the search string before attempting the search.

The method allows both forward and backward searches. If a forward search is specified, the search begins at the given coordinates (inclusive) and ends at the end of the presentation space. If a backward search is specified, the search begins at the given coordinates (inclusive) and ends at the beginning of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Note: SearchString functions identically to SearchText when the given search string contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - The string to search for.
row - Starting row.
column - Starting column.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
Throws:
ECLErr - Thrown if the position specified is out of range.
See Also:
SearchString(java.lang.String, int), SearchString(java.lang.String, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

SearchText

public int SearchText(java.lang.String text,
                      int position,
                      int direction)
The SearchText method searches for a given text string within the presentation space. The method allows both forward and backward searches. If a forward search is specified, the search begins at the given linear position (inclusive) and ends at the end of the presentation space. If a backward search is specified, the search begins at the given linear position (inclusive) and ends at the beginning of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Parameters:
text - The string to search for.
position - Starting linear position.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
See Also:
SearchText(java.lang.String, int), SearchText(java.lang.String, int, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

SearchString

public int SearchString(java.lang.String text,
                        int position,
                        int direction)
The SearchString method searches for a given text string within the presentation space similarly to SearchText, but it handles DBCS characters differently. While SearchText searches for the exact string specified, SearchString automatically duplicates DBCS characters in the search string before attempting the search.

The method allows both forward and backward searches. If a forward search is specified, the search begins at the given linear position (inclusive) and ends at the end of the presentation space. If a backward search is specified, the search begins at the given linear position (inclusive) and ends at the beginning of the presentation space.

The method returns the linear position of the found string or zero if the string is not found. The linear position can be converted to row and column coordinates using the ConvertPosToRow() and ConvertPosToCol() methods.

Note: SearchString functions identically to SearchText when the given search string contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - The string to search for.
position - Starting linear position.
direction - Specifies whether to search forward or backward from the starting location of the search. To search forward use the SEARCH_FORWARD constant. To search backward use the SEARCH_BACKWARD constant.
Returns:
The linear position of the given string, or zero if not found.
See Also:
SearchString(java.lang.String, int), SearchString(java.lang.String, int, int, int), ConvertPosToRow(int), ConvertPosToCol(int)

GetScreen

public int GetScreen(char[] buffer,
                     int bufferLength,
                     int plane)
              throws ECLErr
GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the beginning of the presentation space and continuing until the buffer is full or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
plane - The plane to return. The valid values follow:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
Returns:
The number of characters copied to the buffer, not including the terminating null for text plane data.
Throws:
ECLErr - Thrown if the buffer parameter is null, or if the plane parameter is incorrect.
See Also:
GetScreen(char[], int, int, int, int), GetScreen(char[], int, int, int, int, int)

GetString

public int GetString(char[] buffer,
                     int bufferLength)
              throws ECLErr
GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently. While GetScreen returns the raw text plane data, GetString removes duplicate DBCS characters before the text plane data is returned.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the beginning of the presentation space and continuing until the buffer is full or the entire text plane has been copied. The buffer must include one extra position for the addition of a terminating null character.

Note: GetString functions identically to GetScreen(char[], int, TEXT_PLANE) when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
Returns:
The number of characters copied to the buffer, not including the terminating null.
Throws:
ECLErr - Thrown if the buffer parameter is null.
See Also:
GetString(char[], int, int, int), GetString(char[], int, int, int, int)

GetScreen

public int GetScreen(char[] buffer,
                     int bufferLength,
                     int row,
                     int col,
                     int length,
                     int plane)
              throws ECLErr
GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given coordinates and continuing until the specified number of characters have been copied, the buffer is full, or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
row - The starting row.
column - The starting column.
length - The number of characters to copy.
plane - The plane to return. The valid values follow:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
Returns:
The number of characters copied to the buffer, not including the terminating null for text plane data.
Throws:
ECLErr - Thrown if the buffer parameter is null, if the plane parameter is incorrect, or if the position given is out of range.
See Also:
GetScreen(char[], int, int), GetScreen(char[], int, int, int, int)

GetString

public int GetString(char[] buffer,
                     int bufferLength,
                     int row,
                     int col,
                     int length)
              throws ECLErr
GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently. While GetScreen returns the raw text plane data, GetString removes duplicate DBCS characters before the text plane data is returned.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given coordinates and continuing until the specified number of plane positions have been copied, the buffer is full, or the entire text plane has been copied. The buffer must include one extra position for the addition of a terminating null character. Note that a DBCS character occupies two plane positions.

Note: GetString functions identically to GetScreen(char[], int, int, int, int, TEXT_PLANE) when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
row - The starting row.
column - The starting column.
length - The number of plane positions to copy.
Returns:
The number of characters copied to the buffer, not including the terminating null.
Throws:
ECLErr - Thrown if the buffer parameter is null or if the position given is out of range.
See Also:
GetString(char[], int), GetString(char[], int, int, int)

GetScreen

public int GetScreen(char[] buffer,
                     int bufferLength,
                     int position,
                     int length,
                     int plane)
              throws ECLErr
GetScreen retrieves the various planes (text, color, attributes, extended attributes) associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given position and continuing until the specified number of characters have been copied, the buffer is full or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.

Parameters:
buffer - An array of characters which contains the returned data.
bufferLength - The length of the buffer.
position - The starting position.
length - The number of characters to copy.
plane - The plane to return. The valid values follow:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
Returns:
The number of characters copied to the buffer, not including the terminating null for text plane data.
Throws:
ECLErr - Thrown if the buffer parameter is null, if the plane parameter is incorrect.
java.lang.IllegalArgumentException - Runtime exception thrown if position given is out of range, bufferLength is not greater than 0 and length is not greater than 0.
See Also:
GetScreen(char[], int, int), GetScreen(char[], int, int, int, int, int)

GetString

public int GetString(char[] buffer,
                     int bufferLength,
                     int position,
                     int length)
              throws ECLErr
GetString retrieves text plane information from the presentation space similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently. While GetScreen returns the raw text plane data, GetString removes duplicate DBCS characters before the text plane data is returned.

The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given coordinates and continuing until the specified number of plane positions have been copied, the buffer is full, or the entire text plane has been copied. The buffer must include one extra position for the addition of a terminating null character. Note that a DBCS character occupies two plane positions.

Note: GetString functions identically to GetScreen(char[], int, int, int, TEXT_PLANE) when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
position - The starting position.
length - The number of plane positions to copy.
Returns:
The number of characters copied to the buffer, not including the terminating null.
Throws:
ECLErr - Thrown if the buffer parameter is null or if the position given is out of range.
See Also:
GetString(char[], int), GetString(char[], int, int, int, int)

GetScreenRect

public int GetScreenRect(char[] buffer,
                         int bufferLength,
                         int startPos,
                         int endPos,
                         int plane)
                  throws ECLErr
GetScreenRect retrieves data from the various planes (text, color, attributes, extended attributes) associated with the presentation space. The data is returned as a linear array of character values in the buffer provided.

The application supplies two positions that represent opposing corners of a rectangle within the presentation space. The starting and ending positions can have any spatial relationship to each other. The data returned starts from the row containing the upper-most point to the row containing the lower-most point, and from the left-most column to the right-most column.

The specified buffer must be at least large enough to contain the number of characters in the rectangle. If the buffer is too small, no data is copied and zero is returned by the method. Otherwise, the method returns the number of characters copied.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
startPos - One corner of the rectangle.
endPos - The opposite corner of the rectangle.
plane - The plane to return. The valid values follow:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
Returns:
The number of characters copied to the buffer.
Throws:
ECLErr - Thrown if the buffer parameter is null, if the plane parameter is incorrect or if either of the positions specified is not within the plane.
See Also:
GetScreenRect(char[], int, int, int, int, int, int)

GetScreenRect

public int GetScreenRect(char[] buffer,
                         int bufferLength,
                         int startRow,
                         int startCol,
                         int endRow,
                         int endCol,
                         int plane)
                  throws ECLErr
GetScreenRect retrieves data from the various planes (text, color, attributes, extended attributes) associated with the presentation space. The data is returned as a linear array of character values in the buffer provided. The buffer is not terminated by a null character.

The application supplies two coordinates that represent opposing corners of a rectangle within the presentation space. The starting and ending coordinates can have any spatial relationship to each other. The data returned starts from the row containing the upper-most point to the row containing the lower-most point, and from the left-most column to the right-most column.

The specified buffer must be at least large enough to contain the number of characters in the rectangle. If the buffer is too small, no data is copied and zero is returned by the method. Otherwise, the method returns the number of characters copied.

Parameters:
buffer - An array of characters that contains the returned data.
bufferLength - The length of the buffer.
startRow - Starting row of the rectangle.
startCol - Starting column of the rectangle.
endRow - Ending row of the rectangle.
endCol - Ending column of the rectangle.
plane - The plane to return. The valid values follow:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
Returns:
The number of characters copied to the buffer.
Throws:
ECLErr - Thrown if the buffer parameter is null, if the plane parameter is incorrect or if either of the positions specified is not within the plane.
See Also:
GetScreenRect(char[], int, int, int, int)

SetText

public void SetText(java.lang.String text)
             throws ECLErr
The SetText method sends a string to the presentation space at the current cursor location. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.
Parameters:
text - String to place in the presentation space.
Throws:
ECLErr - Thrown if the text parameter is null.
See Also:
SetText(java.lang.String, int), SetText(java.lang.String, int, int)

BadgeReader

public void BadgeReader(java.lang.String text)
                 throws ECLErr
The BadgeReader method sends a string to the presentation space at the current cursor location + 1. A protected Non-display attribute will inserted into the PS at current cursor location. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. Finally an 0xE6 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
BadgeReader(java.lang.String, int), BadgeReader(java.lang.String, int, int)

MagStripeReader

public void MagStripeReader(java.lang.String text)
                     throws ECLErr
The MagStripeReader method sends a string to the presentation space at the current cursor location + 1. A protected Non-display attribute will inserted into the PS at current cursor location. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. Finally an 0xE7 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
MagStripeReader(java.lang.String, int), MagStripeReader(java.lang.String, int, int)

SetString

public void SetString(java.lang.String text)
               throws ECLErr
The SetString method sends a string to the presentation space at the current cursor location similarly to SetText, but it handles DBCS characters differently. While SetText copies the given string directly to the presentation space, SetString automatically duplicates DBCS characters before copying the string to the presentation space.

The modified string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.

Note: SetString functions identically to SetText when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - String to place in the presentation space.
Throws:
ECLErr - Thrown if the text parameter is null.
See Also:
SetString(java.lang.String, int), SetString(java.lang.String, int, int)

SetText

public void SetText(java.lang.String text,
                    int pos)
             throws ECLErr
The SetText method sends a string to the presentation space at the specified location. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.
Parameters:
text - String to place in the presentation space.
pos - Linear position where the string should be written.
Throws:
ECLErr - Thrown if the text parameter is null or if the position is not valid.
See Also:
SetText(java.lang.String), SetText(java.lang.String, int, int)

BadgeReader

public void BadgeReader(java.lang.String text,
                        int pos)
                 throws ECLErr
The BadgeReader method sends a string to the presentation space at the specified location + 1. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. A protected NonDisplay Attribute will be inserted in presentation space at the specified location. Finally an 0xE6 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
pos - Linear position where the Protected NonDisplay Attribute should be written.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
BadgeReader(java.lang.String), BadgeReader(java.lang.String, int, int)

MagStripeReader

public void MagStripeReader(java.lang.String text,
                            int pos)
                     throws ECLErr
The MagStripeReader method sends a string to the presentation space at the specified location + 1. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. A protected NonDisplay Attribute will be inserted in presentation space at the specified location. Finally an 0xE7 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
pos - Linear position where the Protected NonDisplay Attribute should be written.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
MagStripeReader(java.lang.String), MagStripeReader(java.lang.String, int, int)

SetString

public void SetString(java.lang.String text,
                      int pos)
               throws ECLErr
The SetString method sends a string to the presentation space at the specified location similarly to SetText, but it handles DBCS characters differently. While SetText copies the given string directly to the presentation space, SetString automatically duplicates DBCS characters before copying the string to the presentation space.

The modified string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.

Note: SetString functions identically to SetText when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - String to place in the presentation space.
pos - Linear position where the string should be written.
Throws:
ECLErr - Thrown if the text parameter is null or if the position is not valid.
See Also:
SetString(java.lang.String, int), SetString(java.lang.String, int, int)

SetText

public void SetText(java.lang.String text,
                    int row,
                    int column)
             throws ECLErr
The SetText method sends a string to the presentation space at the specified location. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.
Parameters:
text - String to place in the presentation space.
row - Starting row where the string should be written.
column - Starting column where the string should be written.
Throws:
ECLErr - Thrown if the text parameter is null or if the position is not valid.
See Also:
SetText(java.lang.String), SetText(java.lang.String, int)

BadgeReader

public void BadgeReader(java.lang.String text,
                        int row,
                        int column)
                 throws ECLErr
The BadgeReader method sends a string to the presentation space at the specified location + 1. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. A protected Non-Display attribute will be created and inserted into the presentation space at the specified location. Finally an 0xE6 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
row - Starting row where the Protected NonDisplay Attribute should be written.
column - Starting column where the Protected NonDisplay Attribute should be written.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
BadgeReader(java.lang.String), BadgeReader(java.lang.String, int)

MagStripeReader

public void MagStripeReader(java.lang.String text,
                            int row,
                            int column)
                     throws ECLErr
The MagStripeReader method sends a string to the presentation space at the specified location + 1. The string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded. A protected Non-Display attribute will be created and inserted into the presentation space at the specified location. Finally an 0xE7 AID operation will be generated.
Parameters:
text - String to place in the presentation space.
row - Starting row where the Protected NonDisplay Attribute should be written.
column - Starting column where the Protected NonDisplay Attribute should be written.
Throws:
ECLErr - Thrown if the position is not valid.
See Also:
MagStripeReader(java.lang.String), MagStripeReader(java.lang.String, int)

SetString

public void SetString(java.lang.String text,
                      int row,
                      int column)
               throws ECLErr
The SetString method sends a string to the presentation space at the specified location similarly to SetText, but it handles DBCS characters differently. While SetText copies the given string directly to the presentation space, SetString automatically duplicates DBCS characters before copying the string to the presentation space.

The modified string will overlay only unprotected fields, and any parts of the string which fall over protected fields will be discarded.

Note: SetString functions identically to SetText when the text plane contains no DBCS characters.

See Text Plane in Appendix B. Host Access Class Library Planes -- Format and Content for more information on the representation of DBCS characters in the text plane.

Parameters:
text - String to place in the presentation space.
row - Starting row where the string should be written.
column - Starting column where the string should be written.
Throws:
ECLErr - Thrown if the text parameter is null or if the position is not valid.
See Also:
SetString(java.lang.String, int), SetString(java.lang.String, int, int)

ConvertPosToRow

public int ConvertPosToRow(int pos)
                    throws ECLErr
The ConvertPosToRow method converts a linear presentation space position to its corresponding row.
Parameters:
pos - The position to be converted.
Returns:
The row which corresponds to the position given.
Throws:
ECLErr - Thrown if the position is not greater than 0 and less than the presentation space size.
See Also:
ConvertPosToCol(int), ConvertRowColToPos(int, int)

ConvertPosToCol

public int ConvertPosToCol(int pos)
                    throws ECLErr
The ConvertPosToCol method converts a linear presentation space position to its corresponding column.
Parameters:
pos - The position to be converted.
Returns:
The column which corresponds to the position given.
Throws:
ECLErr - Thrown if the position is not greater than 0 and less than the presentation space size.
See Also:
ConvertPosToRow(int), ConvertRowColToPos(int, int)

ConvertRowColToPos

public int ConvertRowColToPos(int row,
                              int col)
                       throws ECLErr
The ConvertRowColToPos method converts a row and column coordinate to its corresponding linear position.
Parameters:
row - The row of the coordinate.
column - The column of the coordinate.
Returns:
The linear position which corresponds to the coordinate given.
Throws:
ECLErr - Thrown if the coordinates are not within the presentation space boundaries.
See Also:
ConvertPosToRow(int), ConvertPosToCol(int)

RegisterPSEvent

public void RegisterPSEvent(ECLPSNotify notify)
                     throws ECLErr
Deprecated. 

Use RegisterPSEvent(ECLPSListener listener).

Registers a notification object for events dispatched by a single instance of ECLPS. The notification object must implement the ECLPSNotify interface which defines three callback methods which will be called by the ECLPS class under different conditions.

ECLPSNotify objects can be unregistered using the UnregisterPSEvent() method.

Parameters:
notify - ECLPSNotify object which is notified when events occur.
Throws:
ECLErr - Thrown if the notify parameter is null.
See Also:
UnregisterPSEvent(com.ibm.eNetwork.ECL.ECLPSNotify), ECLPSNotify

RegisterPSEvent

public void RegisterPSEvent(ECLPSListener listener)
Registers a PS Listener for all PS events.
Parameters:
listener - ECLPSListener object which is notified when events occur.
Throws:
java.lang.IllegalArgumentException - Runtime exception thrown if listener is null.
See Also:
RegisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener, int), UnregisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener), ECLPSListener

RegisterPSEvent

public void RegisterPSEvent(ECLPSListener listener,
                            int type)
Registers a PS Listener for either host- or user-generated events.
Parameters:
listener - ECLPSListener object which is notified when events occur.
type - The type notification events. Valid values are HOST_EVENTS for notification of host- generated events, USER_EVENTS for notification of user- (or API) generated events, and ALL_EVENTS for notification of both USER_EVENTS and HOST_EVENTS.
Throws:
java.lang.IllegalArgumentException - Runtime exception thrown if listener is null.
See Also:
RegisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener), UnregisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener, int), ECLPSListener

UnregisterPSEvent

public void UnregisterPSEvent(ECLPSNotify notify)
Deprecated. 

Use UnregisterPSEvent(ECLPSListener listener).

Unregisters a notification object previously registered with the RegisterPSEvent() method. If the notification object is not currently registered, this method does nothing.
Parameters:
notify - ECLPSNotify object which should be unregistered.
See Also:
RegisterPSEvent(com.ibm.eNetwork.ECL.ECLPSNotify), ECLPSNotify

UnregisterPSEvent

public void UnregisterPSEvent(ECLPSListener listener)
Unregisters a PS Listener that was previously registered with the RegisterPSEvent() method. If the listener is not currently registered, this method does nothing.
Parameters:
listener - ECLPSListener object which should be unregistered.
See Also:
UnregisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener, int), RegisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener), ECLPSListener

UnregisterPSEvent

public void UnregisterPSEvent(ECLPSListener listener,
                              int type)
Unregisters a PS Listener that was previously registered with the RegisterPSEvent() method. If the listener is not currently registered, this method does nothing.
Parameters:
listener - ECLPSListener object which should be unregistered.
type - The type notification events. Valid values are HOST_EVENTS for notification of host- generated events, USER_EVENTS for notification of user- (or API) generated events, and ALL_EVENTS for notification of both USER_EVENTS and HOST_EVENTS.
See Also:
UnregisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener), RegisterPSEvent(com.ibm.eNetwork.ECL.event.ECLPSListener, int), ECLPSListener

WaitForAttrib

public boolean WaitForAttrib(int row,
                             int col,
                             char attrib,
                             int plane)
                      throws ECLErr,
                             java.lang.InterruptedException
Synchronously waits until the attribute appears at the given row and column position. Will also wait until the OIA input is not inhibited.

Note: The row and col address of a field attribute is one character position before the start of the field. For example, if a field starts at row 16, col 8, the field attribute for that field is located at row 16, col 7. Another method of locating field attributes is to use the Field Plane, available by specifying the FIELD_PLANE parameter on the GetScreen method. For more information on the content of the FIELD PLANE, see Appendix B: Field Plane.

Parameters:
row - Cursor row position
col - Cursor column position
attrib - Attribute value
plane - Plane for attribute. The valid constant values follow:
FIELD_PLANE - attribute is a field attribute
EXFIELD_PLANE - attribute is an extended field attribute
COLOR_PLANE - attribute is a color attribute
Throws:
ECLErr - Thrown if the position is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForAttrib(int, int, char, int, long, boolean)

WaitForAttrib

public boolean WaitForAttrib(int row,
                             int col,
                             char attrib,
                             int plane,
                             long timeOut,
                             boolean waitForInput)
                      throws ECLErr,
                             java.lang.InterruptedException
Synchronously waits until the attribute appears at the given row and column position or until the method times out.

Note: The row and col address of a field attribute is one character position before the start of the field. For example, if a field starts at row 16, col 8, the field attribute for that field is located at row 16, col 7. Another method of locating field attributes is to use the Field Plane, available by specifying the FIELD_PLANE parameter on the GetScreen method. For more information on the content of the FIELD PLANE, see Appendix B: Field Plane.

Parameters:
row - Cursor row position
col - Cursor column position
attrib - Attribute value
plane - Plane for attribute. The valid constant values follow:
FIELD_PLANE - attribute is a field attribute
EXFIELD_PLANE - attribute is an extended field attribute
COLOR_PLANE - attribute is a color attribute
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
Throws:
ECLErr - Thrown if the position is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForAttrib(int, int, char, int)

WaitForCursor

public boolean WaitForCursor(int row,
                             int col)
                      throws java.lang.InterruptedException
Synchronously waits until the cursor appears at the given row and column position. Will also wait until the OIA input is not inhibited.
Parameters:
row - Cursor row position
col - Cursor column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForCursor(int, int, long, boolean)

WaitForCursor

public boolean WaitForCursor(int row,
                             int col,
                             long timeOut,
                             boolean waitForInput)
                      throws java.lang.InterruptedException
Synchronously waits until the cursor appears at the given row and column position or until the method times out.
Parameters:
row - Cursor row position
col - Cursor column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForCursor(int, int)

WaitForScreen

public boolean WaitForScreen(ECLScreenDesc screenDesc)
                      throws ECLErr,
                             java.lang.InterruptedException
Synchronously waits until the screen, as described by ECLScreenDesc, appears in the Presentation Space. NOTE: the wait for OIA flag is set on the ECLScreenDesc object, it is not passed as a parameter to the wait method.
Parameters:
ECLScreenDesc - Object that describes the screen
Throws:
ECLErr - Thrown if the ECLScreenDesc values are not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForScreen(com.ibm.eNetwork.ECL.ECLScreenDesc, long), ECLScreenDesc

WaitForScreen

public boolean WaitForScreen(ECLScreenDesc screenDesc,
                             long timeOut)
                      throws ECLErr,
                             java.lang.InterruptedException
Synchronously waits for the screen, as described by ECLScreenDesc, to appear in the Presentation Space. NOTE: the wait for OIA flag is set on the ECLScreenDesc object, it is not passed as a parameter to the wait method.
Parameters:
ECLScreenDesc - Object that describes the screen
timeOut - Indicates wait time (milliseconds)
Throws:
ECLErr - Thrown if the ECLScreenDesc values are not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForScreen(com.ibm.eNetwork.ECL.ECLScreenDesc), ECLScreenDesc

WaitForString

public boolean WaitForString(java.lang.String str)
                      throws java.lang.InterruptedException
Synchronously waits until the string appears in the presentation space. Will also wait until the OIA input is not inhibited. String wait will be case sensitive.
Parameters:
str - String to wait for
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForString(java.lang.String, int, int), WaitForString(java.lang.String, int, int, long, boolean, boolean)

WaitForString

public boolean WaitForString(java.lang.String str,
                             int row,
                             int col)
                      throws java.lang.InterruptedException
Synchronously waits until the string appears at the given position. Will also wait until the OIA input is not inhibited. String wait will be case sensitive.
Parameters:
str - String to wait for
row - Starting row position
col - Starting column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForString(java.lang.String), WaitForString(java.lang.String, int, int, long, boolean, boolean)

WaitForString

public boolean WaitForString(java.lang.String str,
                             int row,
                             int col,
                             long timeOut,
                             boolean waitForInput,
                             boolean caseSensitive)
                      throws java.lang.InterruptedException
Synchronously waits until the string appears at the given position.
Parameters:
str - String to wait for
row - Starting row position
col - Starting column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
caseSensitive - If true, String wait will be case sensitive
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForString(java.lang.String), WaitForString(java.lang.String, int, int)

WaitForStringInRect

public boolean WaitForStringInRect(java.lang.String str,
                                   int sRow,
                                   int sCol,
                                   int eRow,
                                   int eCol)
                            throws java.lang.InterruptedException
Synchronously waits until the string appears at the given rectangle. Will also wait until the OIA input is not inhibited. String wait will be case sensitive.
Parameters:
str - String to wait for
sRow - Upper left rectangle corner row position
sCol - Upper left rectangle corner column position
eRow - Lower right rectangle corner row position
eCol - Lower right rectangle corner column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForStringInRect(java.lang.String, int, int, int, int, long, boolean, boolean)

WaitForStringInRect

public boolean WaitForStringInRect(java.lang.String str,
                                   int sRow,
                                   int sCol,
                                   int eRow,
                                   int eCol,
                                   long timeOut,
                                   boolean waitForInput,
                                   boolean caseSensitive)
                            throws java.lang.InterruptedException
Synchronously waits until the string appears at the given rectangle.
Parameters:
str - String to wait for
sRow - Upper left rectangle corner row position
sCol - Upper left rectangle corner column position
eRow - Lower right rectangle corner row position
eCol - Lower right rectangle corner column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
caseSensitive - If true, String wait will be case sensitive
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitForStringInRect(java.lang.String, int, int, int, int)

WaitWhileAttrib

public boolean WaitWhileAttrib(int row,
                               int col,
                               char attrib,
                               int plane)
                        throws ECLErr,
                               java.lang.InterruptedException
Synchronously waits until the attribute is no longer at the given row and column position. Will also wait until the OIA input is not inhibited.

Note: The row and col address of a field attribute is one character position before the start of the field. For example, if a field starts at row 16, col 8, the field attribute for that field is located at row 16, col 7. Another method of locating field attributes is to use the Field Plane, available by specifying the FIELD_PLANE parameter on the GetScreen method. For more information on the content of the FIELD PLANE, see Appendix B: Field Plane.

Parameters:
row - Cursor row position
col - Cursor column position
attrib - Attribute value
plane - Plane for attribute
Throws:
ECLErr - Thrown if a parameter value is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileAttrib(int, int, char, int, long, boolean)

WaitWhileAttrib

public boolean WaitWhileAttrib(int row,
                               int col,
                               char attrib,
                               int plane,
                               long timeOut,
                               boolean waitForInput)
                        throws ECLErr,
                               java.lang.InterruptedException
Synchronously waits until the attribute is no longer at the given row and column position.

Note: The row and col address of a field attribute is one character position before the start of the field. For example, if a field starts at row 16, col 8, the field attribute for that field is located at row 16, col 7. Another method of locating field attributes is to use the Field Plane, available by specifying the FIELD_PLANE parameter on the GetScreen method. For more information on the content of the FIELD PLANE, see Appendix B: Field Plane.

Parameters:
row - Cursor row position
col - Cursor column position
attrib - Attribute value
plane - Plane for attribute. The valid constant values follow:
FIELD_PLANE - attribute is a field attribute
EXFIELD_PLANE - attribute is an extended field attribute
COLOR_PLANE - attribute is a color attribute
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates
Throws:
ECLErr - Thrown if a parameter value is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileAttrib(int, int, char, int)

WaitWhileCursor

public boolean WaitWhileCursor(int row,
                               int col)
                        throws java.lang.InterruptedException
Synchronously waits until the cursor is no longer at the given row and column position. Will also wait until the OIA input is not inhibited.
Parameters:
row - Cursor row position
col - Cursor column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileCursor(int, int, long, boolean)

WaitWhileCursor

public boolean WaitWhileCursor(int row,
                               int col,
                               long timeOut,
                               boolean waitForInput)
                        throws java.lang.InterruptedException
Synchronously waits until the cursor is no longer at the given row and column position or until the method times out.
Parameters:
row - Cursor row position
col - Cursor column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileCursor(int, int)

WaitWhileScreen

public boolean WaitWhileScreen(ECLScreenDesc screenDesc)
                        throws ECLErr,
                               java.lang.InterruptedException
Synchronously waits until the screen, as described by ECLScreenDesc, is no longer in the Presentation Space. NOTE: the wait for OIA flag is set on the ECLScreenDesc object, it is not passed as a parameter to the wait method.
Parameters:
ECLScreenDesc - Object that describes the screen
Throws:
ECLErr - Thrown if ECLScreenDesc contains a value that is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileScreen(com.ibm.eNetwork.ECL.ECLScreenDesc, long), ECLScreenDesc

WaitWhileScreen

public boolean WaitWhileScreen(ECLScreenDesc screenDesc,
                               long timeOut)
                        throws ECLErr,
                               java.lang.InterruptedException
Synchronously waits until the screen, as described by ECLScreenDesc, is no longer in the Presentation Space. NOTE: the wait for OIA flag is set on the ECLScreenDesc, object, it is not passed as a parameter to the wait method.
Parameters:
ECLScreenDesc - Object that describes the screen
timeOut - Indicates wait time (milliseconds)
Throws:
ECLErr - Thrown if ECLScreenDesc contains a value that is not valid.
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileScreen(com.ibm.eNetwork.ECL.ECLScreenDesc), ECLScreenDesc

WaitWhileString

public boolean WaitWhileString(java.lang.String str)
                        throws java.lang.InterruptedException
Synchronously waits until the string is no longer in the presentation space. Will also wait until the OIA input is not inhibited.
Parameters:
str - String to wait on
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileString(java.lang.String, int, int), WaitWhileString(java.lang.String, int, int, long, boolean, boolean)

WaitWhileString

public boolean WaitWhileString(java.lang.String str,
                               int row,
                               int col)
                        throws java.lang.InterruptedException
Synchronously waits until the string is no longer in the given position. Will also wait until the OIA input is not inhibited. String wait will be case sensitive.
Parameters:
str - String to wait for
row - Starting row position
col - Starting column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileString(java.lang.String), WaitWhileString(java.lang.String, int, int, long, boolean, boolean)

WaitWhileString

public boolean WaitWhileString(java.lang.String str,
                               int row,
                               int col,
                               long timeOut,
                               boolean waitForInput,
                               boolean caseSensitive)
                        throws java.lang.InterruptedException
Synchronously waits until the string is no longer in the given position.
Parameters:
str - String to wait for
row - Starting row position
col - Starting column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
caseSensitive - If true, String wait will be case sensitive
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileString(java.lang.String), WaitWhileString(java.lang.String, int, int)

WaitWhileStringInRect

public boolean WaitWhileStringInRect(java.lang.String str,
                                     int sRow,
                                     int sCol,
                                     int eRow,
                                     int eCol)
                              throws java.lang.InterruptedException
Synchronously waits until the string is no longer in the given rectangle. Will also wait until the OIA input is not inhibited.
Parameters:
str - String to wait on
sRow - Upper left rectangle corner row position
sCol - Upper left rectangle corner column position
eRow - Lower right rectangle corner row position
eCol - Lower right rectangle corner column position
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileStringInRect(java.lang.String, int, int, int, int, long, boolean, boolean)

WaitWhileStringInRect

public boolean WaitWhileStringInRect(java.lang.String str,
                                     int sRow,
                                     int sCol,
                                     int eRow,
                                     int eCol,
                                     long timeOut,
                                     boolean waitForInput,
                                     boolean caseSensitive)
                              throws java.lang.InterruptedException
Synchronously waits until the string is no longer in the given rectangle.
Parameters:
str - String to wait on
sRow - Upper left rectangle corner row position
sCol - Upper left rectangle corner column position
eRow - Lower right rectangle corner row position
eCol - Lower right rectangle corner column position
timeOut - Indicates wait time (milliseconds)
waitForInput - If true, will wait until OIA indicates PS is ready for input.
caseSensitive - If true, String wait will be case sensitive
Throws:
java.lang.InterruptedException - Thrown if interrupted by another thread.
See Also:
WaitWhileStringInRect(java.lang.String, int, int, int, int)

GetFieldList

public ECLFieldList GetFieldList()
                          throws ECLErr
GetFieldList returns an instance of ECLFieldList based on the current PS. A field list contains a collection of the fields in the presentation space. It provides methods which iterate through the fields, find fields based on location, and find fields containing a given string. Each element of the list is an instance of ECLField.

This signature builds a field list with only TEXT plane information for each field object.

Throws:
ECLErr - Thrown if the planes parameter is not valid or an error building the field list.
See Also:
GetFieldList(int), ECLFieldList

GetFieldList

public ECLFieldList GetFieldList(int planes)
                          throws ECLErr
GetFieldList returns an instance of ECLFieldList based on the current PS. A field list contains a collection of the fields in the presentation space. It provides methods which iterate through the fields, find fields based on location, and find fields containing a given string. Each element of the list is an instance of ECLField.

This signature builds a field list with the information from the specified planes for each field object.

Parameters:
planes - The planes to update. The valid values follow and can be ORed together:
TEXT_PLANE - The character contents of the field. The text plane contains no null or non-displayable characters.
FIELD_PLANE - The field attributes for each field in the plane.
COLOR_PLANE - The color attributes for each character in the plane.
EXFIELD_PLANE - The extended field attributes for each character in the plane.
DBCS_PLANE - The double byte character set (DBCS) character and field attribute data.
GRID_PLANE - The DBCS grid information.
ALL_PLANES - Refreshes all planes.
Throws:
ECLErr - Thrown if the planes parameter is not valid.
See Also:
GetFieldList(), ECLFieldList

setSize

public void setSize(int nRows,
                    int nColumns)
This method is used to set the size of the presentation space and allocate any memory need to store the characters.

IsDBCSChar

public boolean IsDBCSChar(int Sba)
This method is called to check the status for DBCS character during keystroke processing. This is called from PS3270 class.

IsDBCS2ndChar

public boolean IsDBCS2ndChar(int Sba)
This method is called to check the status for DBCS character during keystroke processing. This is called from PS3270 class.

IsSIChar

public boolean IsSIChar(int Sba)
This method is called to check the status for SO/SI character during keystroke processing. This is called from PS3270 class.

isScreenReversed

public boolean isScreenReversed()
This method is used for VT sessions. This is to be overridden by PSVT. It is used for determining. if the entire VT screen is reversed rather than char. by char. reverse

GetPSBIDIServices

public ECLPSBIDIServices GetPSBIDIServices()
Returns the instance of ECLPSBIDIServices associated with the ECLPS instance in 3270/5250 BIDI sessions or null if the session is not using the 3270/5250 BIDI codepage
Returns:
null

GetPSVTBIDIServices

public PSVTBIDIServices GetPSVTBIDIServices()
Returns the instance of PSVTBIDIServices associated with the ECLPS instance in VT BIDI sessions or null if the session is not using the VT BIDI codepage
Returns:
null

GetPSTHAIServices

public ECLPSTHAIServices GetPSTHAIServices()
Returns the instance of ECLPSTHAIServices associated with the ECLPS instance or null if the session is not using the Thailand codepages (838 or 1160).

SetCursorVisible

public void SetCursorVisible(boolean bVisible)
Sets the cursor to be visible or invisible depending on the given parameter
Parameters:
bVisible - Used to set cursor to be visible or invisible

GetCursorVisible

public boolean GetCursorVisible()
Returns whether the cursor is visible.

IsSuppressClearEvent

public boolean IsSuppressClearEvent()
Returns whether the system should ignore screen events when a host application sends a clear screen command immediately followed by an end of record indicator in the data stream.

This is an advanced feature and the default is false. It is possible that an ill-behaved host application can send a clear command then an end of record indicator in the data stream. If this property is set to false, a PS event is generated when really no screen has arrived from the host.

Returns:
true if system ignores clear screen commands followed by end of record indicators

SetSuppressClearEvent

public void SetSuppressClearEvent(boolean argVal)
Sets whether the system should ignore screen events when a host application sends a clear screen command immediately followed by an end of record indicator in the data stream.

This is an advanced feature and the default is false. It is possible that an ill-behaved host application can send a clear command then an end of record indicator in the data stream. If this property is set to false, a PS event is generated when really no screen has arrived from the host.

Parameters:
argVal - if true, system ignores clear screen commands followed by end of record indicators