public class RAPPHostScreen extends Object implements RAPPHostReply
RAPPCallHost.getScreen()
Modifier and Type | Field and Description |
---|---|
static String |
hexes
The Hex characters "0123456789abcdef".
|
Modifier | Constructor and Description |
---|---|
protected |
RAPPHostScreen()
Creates a new instance of the Host Screen.
|
|
RAPPHostScreen(int width,
int height,
int cursorColumn,
int cursorRow,
String screenName,
String fieldName,
int fieldColumnIndex,
int fieldRowIndex,
String screenData,
byte[] screenColors)
Constructor used by the server to create an initialized
instance of the host screen.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromHex(String hexString)
Converts a hex string to a byte array.
|
int |
getCursorColumn()
Gets the cursor column position (zero-based).
|
int |
getCursorRow()
Gets the cursor row position (zero-based).
|
int |
getFieldColumnIndex()
Gets the column index where the cursor is located inside the current field
name (-1 if not inside or no current field name exist).
|
String |
getFieldName()
Gets the current field name where cursor is located inside (or null for
no screen match or not inside a field).
|
int |
getFieldRowIndex()
Gets the row index where the cursor is located inside the current field
name (-1 if not inside or no current field name exist).
|
int |
getHeight()
Gets the height of the screen (24, 27, 32 or 43 where 32 and 43
only applies to 3270).
|
byte[] |
getScreenColors()
Gets the screen color data, or null for none.
|
String |
getScreenData()
Gets the screen character data, or null for none.
|
String |
getScreenName()
Gets the current screen name (or null if none or more are matching).
|
int |
getWidth()
Gets the screen width (80 or 132).
|
void |
serializeFromReply(RAPPElement reply)
Initializes the action class instance from a reply element.
|
void |
serializeToReply(RAPPElement reply)
Initializes the reply Element with all attributes.
|
static String |
toHex(byte[] bytes)
Converts a byte array to a hex string.
|
String |
toString()
Converts this class into a string for testing purposes.
|
public static final String hexes
protected RAPPHostScreen()
public static String toHex(byte[] bytes)
public static byte[] fromHex(String hexString) throws SAXException
SAXException
- for errors in the hex string.public int getWidth()
public int getHeight()
public int getCursorRow()
public int getCursorColumn()
public String getScreenName()
public String getFieldName()
public int getFieldRowIndex()
public int getFieldColumnIndex()
public String getScreenData()
public byte[] getScreenColors()
public void serializeToReply(RAPPElement reply)
The XML for the node looks like (replace parenthesis with less-more-than signs):
(callHostReply action="hostScreen"/) (hostScreen width = "80" height = "24" cursorRow = "12" cursorColumn = "47" [ screenName = "SCREENID" ] [ fieldName = "FLDNAME" ] [ fieldRowIndex = "2" ] [ fieldColumnIndex = "12" ] [ screenData = "wrappedScreenData" screenColors = "hexString" ] /) (/callHostReply)
serializeToReply
in interface RAPPHostReply
RAPPHostCell
,
RAPPHostCells
,
RAPPHostScreen
public void serializeFromReply(RAPPElement reply) throws SAXException
serializeFromReply
in interface RAPPHostReply
SAXException
- for errors in the document.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.