|
CICS® Transaction Gateway Programming Reference V3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ctg.epi.Screen
This class represents a 3270 terminal screen and provides methods to query and set screen information.
Field Summary | |
(package private) boolean |
readMode
read mode flag - this is set to true when a read buffer command is received so that the Terminal knows to reply to the server |
Constructor Summary | |
Screen(int rows,
int cols,
java.lang.String enc)
Constructs a screen of the given size. |
Method Summary | |
void |
analyse(byte[] buffer,
int length)
Converts from 3270 data stream to set of fields |
Field |
field(int index)
Get a field by index. |
Field |
field(int row,
int col)
Get a field by screen position. |
int |
fieldCount()
Get the number of fields. |
java.util.Enumeration |
fields()
Returns an Enumeration of the fields in the screen. |
int |
format(byte[] buffer)
Convert from set of fields into 3270 data stream |
int |
formatRB(byte[] buffer)
Convert from set of fields into 3270 data stream for read buffer command |
AID |
getAID()
Get the AID that will be sent back to the server |
int |
getCursorColumn()
Get the column position of the cursor |
int |
getCursorRow()
Get the row position of the cursor |
int |
getDepth()
Get the screen depth. |
java.lang.String |
getEncoding()
Returns the character encoding that the Screen will use |
(package private) Field |
getField(int buffAddr)
Get a field at a given buffer address |
int |
getWidth()
Get the screen width. |
(package private) void |
initList()
Initialise vector of fields |
(package private) void |
insertField(Field newfield)
Insert a field into vector of fields |
(package private) void |
reset()
Reset vector of fields |
(package private) void |
resetFields(int start,
int end)
Reset fields from start and upto but not including the end buffer position |
void |
setAID(AID aidkey)
Set the AID that will be sent back to the server |
void |
setCursor(int row,
int column)
Set the cursor getPosition |
(package private) void |
setDataStream(com.ibm.ctg.epi.DataStream data)
Set the DataStream analyzer |
Methods inherited from class java.lang.Object |
|
Field Detail |
boolean readMode
Constructor Detail |
public Screen(int rows, int cols, java.lang.String enc)
rows
- the number of rowscols
- the number of columnsenc
- the character encoding to use, null to use the defaultMethod Detail |
void setDataStream(com.ibm.ctg.epi.DataStream data)
data
- an object that implements the DataStream interfacepublic java.lang.String getEncoding()
public void analyse(byte[] buffer, int length) throws EPIException
buffer
- 3270 data stream as byte arraylength
- length of data stream in bytespublic int format(byte[] buffer) throws EPIException
buffer
- byte array to write intopublic int formatRB(byte[] buffer) throws EPIException
buffer
- byte array to write intovoid initList()
void reset()
void insertField(Field newfield)
newfield
- a Fieldvoid resetFields(int start, int end)
start
- the starting buffer positionend
- the starting buffer positionField getField(int buffAddr)
buffAddr
- a buffer positionpublic java.util.Enumeration fields()
public Field field(int index)
index
- the index of the fieldpublic Field field(int row, int col)
row
- the rowcol
- the columnpublic int fieldCount()
public int getDepth()
public int getWidth()
public void setAID(AID aidkey)
aidkey
- the AID to setpublic AID getAID()
public void setCursor(int row, int column) throws EPIException
row
- the cursor rowcolumn
- the cursor columnpublic int getCursorRow()
public int getCursorColumn()
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |