|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wrq.apptrieve.agent.TerminalScreen
public final class TerminalScreen
TerminalScreen represents a terminal screen. It contains methods that allow an entity or an unrecognized screen to be displayed, for example, as a web page.
Constructor Summary | |
---|---|
TerminalScreen(int rows,
int cols,
int cursrow,
int curscol,
java.lang.String entityName,
java.lang.String text,
byte[] attrs,
java.util.Map attrValues,
java.util.List attrLocations,
java.util.List attrReadables,
java.util.List attrWritables,
java.lang.String reachableEntities,
int sessionType,
boolean fConnected,
java.util.List operationNames,
java.lang.String defaultOperation,
boolean legacyRejuvenation)
Constructor for internal use only. |
|
TerminalScreen(int rows,
int cols,
int cursrow,
int curscol,
java.lang.String entityName,
java.lang.String text,
byte[] attrs,
java.util.Map attrValues,
java.util.List attrLocations,
java.util.List attrReadables,
java.util.List attrWritables,
java.lang.String reachableEntities,
int sessionType,
boolean fConnected,
java.util.List operationNames,
java.lang.String defaultOperation,
boolean legacyRejuvenation,
java.util.List hiddenAttrs)
Constructor for internal use only. |
Method Summary | |
---|---|
protected void |
computeFields()
Compute the field information for this screen. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
get3270CommErrorCode()
Return communication error code (a 4-digit hex string), or an empty string if there is no communication error. |
java.lang.String |
get3270KeyboardDisabledReason()
Get the 3270 keyboard disablement message. |
java.lang.String |
get3270PartitionId()
Return the 3270 partition ID (A number from 0 to 255), or an empty string if partitions are not in use. |
java.lang.String |
get3270PartitionOwner()
Return the 3270 partition owner. |
java.lang.String |
get5250ErrorCode()
Return the 5250 error code (1 4-digit hex value), or an empty string if there is no error condition. |
boolean |
get5250InputInhibit()
Return a flag indicating that the Input Inhibit (Also known as keyboard locked) indicator is asserted on the status line. |
boolean |
get5250MessageWaiting()
Return a flag indicating that the Message Wait indicator is asserted on the status line. |
boolean |
get5250SystemAvailable()
Return a flag indicating that the AS/400 system available indicator is asserted on the status line. |
int |
getColor(int offset)
Gets the color of the character at the specified offset. |
int |
getColumns()
Get the number of columns of text on the screen. |
int |
getCursorColumn()
Get the zero-based column number where the cursor is located. |
int |
getCursorPosition()
Get the zero-based absolute offset to where the cursor is located. |
int |
getCursorRow()
Get the zero-based row number where the cursor is located. |
java.lang.String |
getDefaultOperationName()
Get the name of the default VHI operation. |
Screen |
getEntity()
Create an XML representation of a terminal screen, using VHI entity attributes when presenting input fields. |
java.lang.String |
getEntityName()
Return the name of the host application screen. |
ScreenField |
getField(int i)
Return the ith screen field. |
int |
getFieldCount()
Return the number of fields on the screen. |
java.util.List |
getOperationNames()
Get a list of operation names for this screen. |
java.util.List |
getReachableEntities()
Get a list of entities reachable from the current entity. |
java.util.Map |
getReadableAttributes()
Get a map of readable attributes and their values. |
int |
getRows()
Get the number of rows of text on the screen, excluding the OIA and divider line. |
Screen |
getScreen()
Create an XML representation of a terminal screen. |
java.lang.String |
getText()
Get the text for the entire screen. |
java.lang.String |
getText(int offset,
int length)
Get length characters of text from the terminal screen starting at offset. |
java.lang.String |
getTextRow(int row)
Get a row of text for this screen. |
java.util.Map |
getWriteableAttributes()
Get a map of writeable attributes and their values. |
boolean |
isBlink(int offset)
Determines if the character at the specified offset is blinking. |
boolean |
isColumnSeparated(int offset)
Determines if the character at the specified offset is column separated. |
boolean |
isConnectedToHost()
Determine if the session is connected to the host system. |
boolean |
isFieldEnd(int offset)
Determines if the character at the specified offset is the end of a terminal field. |
boolean |
isFieldStart(int offset)
Determines if the character at the specified offset is the start of a terminal field. |
boolean |
isFieldStructured()
Returns whether or not this screen has any fields. |
boolean |
isHighIntensity(int offset)
Determines if the character at the specified offset is high intensity. |
boolean |
isInput(int offset)
Determines if the character at the specified offset is an input field. |
boolean |
isNumeric(int offset)
Determines if the character at the specified offset is numeric. |
boolean |
isPenDetect(int offset)
Determines if the character at the specified offset is pen detect. |
boolean |
isReverseVideo(int offset)
Determines if the character at the specified offset is reverse video. |
boolean |
isUnderscore(int offset)
Determines if the character at the specified offset is underscore. |
boolean |
isVisible(int offset)
Determines if the character at the specified offset is visible. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminalScreen(int rows, int cols, int cursrow, int curscol, java.lang.String entityName, java.lang.String text, byte[] attrs, java.util.Map attrValues, java.util.List attrLocations, java.util.List attrReadables, java.util.List attrWritables, java.lang.String reachableEntities, int sessionType, boolean fConnected, java.util.List operationNames, java.lang.String defaultOperation, boolean legacyRejuvenation)
rows
- rowscols
- colscursrow
- cursrowcurscol
- curscolentityName
- entityNametext
- textattrs
- attrsattrValues
- attrValuesattrLocations
- attrLocationsattrReadables
- attrReadablesattrWritables
- attrWriteablesreachableEntities
- reachableEntitiessessionType
- sessionTypefConnected
- fConnectedoperationNames
- operationNamesdefaultOperation
- defaultOperationlegacyRejuvenation
- flag indicating that legacy rejuvenation naming conventions are in effect.public TerminalScreen(int rows, int cols, int cursrow, int curscol, java.lang.String entityName, java.lang.String text, byte[] attrs, java.util.Map attrValues, java.util.List attrLocations, java.util.List attrReadables, java.util.List attrWritables, java.lang.String reachableEntities, int sessionType, boolean fConnected, java.util.List operationNames, java.lang.String defaultOperation, boolean legacyRejuvenation, java.util.List hiddenAttrs)
rows
- rowscols
- colscursrow
- cursrowcurscol
- curscolentityName
- entityNametext
- textattrs
- attrsattrValues
- attrValuesattrLocations
- attrLocationsattrReadables
- attrReadablesattrWritables
- attrWriteablesreachableEntities
- reachableEntitiessessionType
- sessionTypefConnected
- fConnectedoperationNames
- operationNamesdefaultOperation
- defaultOperationlegacyRejuvenation
- flag indicating that legacy rejuvenation naming conventions are in effect.Method Detail |
---|
public int getRows()
public int getColumns()
public int getCursorRow()
public int getCursorColumn()
public int getCursorPosition()
public java.lang.String get3270KeyboardDisabledReason()
Expected return values are:
public java.lang.String get3270PartitionId()
public java.lang.String get3270PartitionOwner()
Expected return values are:
public java.lang.String get3270CommErrorCode()
public boolean get5250SystemAvailable()
public boolean get5250MessageWaiting()
public boolean get5250InputInhibit()
public java.lang.String get5250ErrorCode()
public int getFieldCount()
public ScreenField getField(int i)
i
- Index of field to return.
java.lang.IndexOutOfBoundsException
- if the i
argument
is out of range.public boolean isFieldStructured()
protected void computeFields()
public java.lang.String getEntityName()
public java.util.List getReachableEntities()
public java.util.List getOperationNames()
public java.lang.String getDefaultOperationName()
public java.util.Map getReadableAttributes()
public java.util.Map getWriteableAttributes()
public java.lang.String getText()
public java.lang.String getText(int offset, int length)
offset
- 0-based offset starting characterlength
- number of characters to return
java.lang.IndexOutOfBoundsException
- if the arguments
are out of range.public java.lang.String getTextRow(int row)
row
- 0-based row for which text is to be obtained.
java.lang.IndexOutOfBoundsException
- if the row
argument
is out of range.public int getColor(int offset)
offset
- 0-based offset of character for which color is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.
Expected return values are:
public boolean isConnectedToHost()
public boolean isBlink(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isColumnSeparated(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isFieldStart(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isFieldEnd(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isInput(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isHighIntensity(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isVisible(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isNumeric(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isPenDetect(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isReverseVideo(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public boolean isUnderscore(int offset)
offset
- 0-based offset of character for which data is to be obtained.
java.lang.IndexOutOfBoundsException
- if the offset
argument
is out of range.public Screen getEntity()
public Screen getScreen()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |