|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.eNetwork.ECL.ECLField
A field is the fundamental element of a presentation space. A field includes both contents and attributes. The ECLField class encapsulates a presentation space field and provides methods for accessing and manipulating field attributes and contents.
For 3270, 5250, and CICS sessions, ECLField correlates to the fields defined in their respective data streams. For VT emulation, the entire presentation space is represented in a single field.
ECLField objects can be accessed through ECLFieldList objects.
ECLFieldList
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 | |
---|---|
short |
GetAttribute()
Gets the raw attribute byte of the field. |
int |
GetEnd()
Gets the ending linear position of the field. |
int |
GetEndCol()
Gets the ending column of the field. |
int |
GetEndRow()
Gets the ending row of the field. |
int |
GetLength()
Gets the length of the field. |
int |
GetScreen(char[] buffer,
int length,
int plane)
Retrieves information from the different planes (text, color, extended attributes, DBCS, and grid) associated with a field. |
int |
GetStart()
Gets the starting linear position of the field. |
int |
GetStartCol()
Gets the starting column of the field. |
int |
GetStartRow()
Gets the starting row of the field. |
int |
GetString(char[] buffer,
int length)
Retrieves text plane information from the field similarly to GetScreen using the TEXT_PLANE parameter, but it handles DBCS characters differently. |
boolean |
IsDisplay()
Determines whether or not the field is displayable. |
boolean |
IsHighIntensity()
Determines whether or not the field is high-intensity. |
boolean |
IsModified()
Determines whether or not the field has been modified. |
boolean |
IsNumeric()
Determines whether or not the field is numeric-only. |
boolean |
IsPenDetectable()
Determines whether or not the field is pen-detectable. |
boolean |
IsProtected()
Determines whether or not the field is protected. |
void |
SetString(java.lang.String text)
Sets the text plane of the field to the specified string similarly to SetText, but it handles DBCS characters differently. |
void |
SetText(java.lang.String text)
Sets the text plane of the field to the specified string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ohio.iOhioField |
---|
getAttribute, getData, getEnd, getLength, getStart, getString, isHidden, isHighIntensity, isModified, isNumeric, isPenSelectable, isProtected, setString |
Methods inherited from interface org.ohio.iOhio |
---|
getOhioVersion, getVendorName, getVendorObject, getVendorProductVersion |
Method Detail |
public int GetStart()
GetEnd()
public int GetStartRow()
GetEndRow()
,
GetStartCol()
public int GetStartCol()
GetEndCol()
,
GetStartRow()
public int GetEnd()
GetStart()
public int GetEndRow()
GetStartRow()
,
GetEndCol()
public int GetEndCol()
GetStartCol()
,
GetEndRow()
public final int GetLength()
public int GetScreen(char[] buffer, int length, int plane) throws ECLErr
buffer
- An array of characters used to store the return values.length
- The number of characters to copy to the buffer.plane
- The plane to return. The valid values follow:
ECLErr
- Thrown if the buffer parameter is null or if the
plane parameter is incorrect.public int GetString(char[] buffer, int length) throws ECLErr
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 field and continuing until the buffer is full or the entire field contents have been copied. The buffer must include one extra position for the addition of a terminating null character.
Note: GetString functions identically to GetScreen when the text plane of the field 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.
buffer
- An array of characters that contains the
returned data.length
- The length of the buffer.ECLErr
- Thrown if the buffer parameter is null.public void SetText(java.lang.String text) throws ECLErr
text
- The text used to replace the current text.ECLErr
- An ECLErr will be thrown if the field is
protected.SetString(java.lang.String)
public void SetString(java.lang.String text) throws ECLErr
If the string is shorter than the length of the field, the rest of the field is cleared. If the string is longer than the field, the text is truncated.
Note: SetString functions identically to SetText when the given text 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.
text
- The text used to replace the current text.ECLErr
- An ECLErr will be thrown if the field is
protected.SetText(java.lang.String)
public final boolean IsModified()
public final boolean IsProtected()
public boolean IsNumeric()
public boolean IsHighIntensity()
public final boolean IsPenDetectable()
public final boolean IsDisplay()
public final short GetAttribute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |