|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.emp.pathway.bean.TerminalField
A representation of a 3270 field.
This class presents a set of methods for obtaining information about a field, along with methods for setting the data in it.
It should be noted that the setting of the data in a field does not affect the 3270 cursor position in the Terminal and does set the MDT for the field.
| Field Summary | |
static int |
OUTLINE_BOTTOM
|
static int |
OUTLINE_LEFT
|
static int |
OUTLINE_NONE
|
static int |
OUTLINE_RIGHT
|
static int |
OUTLINE_TOP
|
| Method Summary | |
boolean |
containsCursor()
Determines if this field contain the cursor of the Terminal. |
boolean |
equals(Object obj)
Determines if this TerminalField object is equal to the specified object. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this TerminalField. |
byte[] |
getCharAttributes()
Gets the extended attributes. |
byte[] |
getCharColors()
Gets the extended colors. |
byte |
getCharSet()
Determines the character set of the field. |
byte |
getColor()
Determines the 3270 color of the field. |
int |
getColumn()
Gets the column of the start of the field. |
char[] |
getData()
Gets a copy of the data associated with this field. |
int |
getDataLength()
Gets the length of the data in the field. |
int |
getFirstCharOffset()
Gets the offset of the first character in the field (as opposed to the attribute byte). |
int |
getLastCharOffset()
Gets the offset of the last character in the field (as opposed to the attribute byte). |
int |
getLength()
Gets the field length. |
int |
getOffset()
Gets the field offset. |
int |
getOutlineFlags()
Returns which edges are outlined on this field. |
int |
getRow()
Gets the row of the start of the field. |
String |
getText()
Gets a textual representation of the data in the field. |
int |
hashCode()
|
boolean |
isAskip()
Determines if the field is auto-skip. |
boolean |
isCursorSelectCapable()
Determines if the field is cursor select capable. |
boolean |
isIntense()
Determines if the field is intense. |
boolean |
isModified()
Determines if the field has the MDT set. |
boolean |
isNumeric()
Determines if the field is Numeric. |
boolean |
isOutlinedBottom()
Determines if the field is outlined on the bottom. |
boolean |
isOutlinedLeft()
Determines if the field is outlined on the left. |
boolean |
isOutlinedRight()
Determines if the field is outlined on the right. |
boolean |
isOutlinedTop()
Determines if the field is outlined on the top. |
boolean |
isProtected()
Determines if the field is protected. |
boolean |
isSOSI()
Determines if the field allows the user to enter SOSI data. |
boolean |
isVisible()
Determines if the field is visible. |
void |
setData(char[] newData)
Sets the data in the field to the data provided. |
void |
setText(String theText)
Sets the value of the field from a String. |
String |
toString()
Creates a string representation of this object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OUTLINE_NONE
public static final int OUTLINE_BOTTOM
public static final int OUTLINE_RIGHT
public static final int OUTLINE_TOP
public static final int OUTLINE_LEFT
| Method Detail |
public AccessibleContext getAccessibleContext()
getAccessibleContext in interface Accessiblepublic int getOutlineFlags()
isOutlinedTop(),
isOutlinedBottom(),
isOutlinedLeft(),
isOutlinedRight()public boolean isOutlinedTop()
true if the field is outlined on the top.getOutlineFlags(),
isOutlinedBottom(),
isOutlinedLeft(),
isOutlinedRight()public boolean isOutlinedBottom()
true if the field is outlined on the bottom.getOutlineFlags(),
isOutlinedTop(),
isOutlinedLeft(),
isOutlinedRight()public boolean isOutlinedLeft()
true if the field is outlined on the left.getOutlineFlags(),
isOutlinedTop(),
isOutlinedBottom(),
isOutlinedRight()public boolean isOutlinedRight()
true if the field is outlined on the right.getOutlineFlags(),
isOutlinedTop(),
isOutlinedBottom(),
isOutlinedLeft()public int getOffset()
getRow(),
getColumn()public int getLength()
public int getRow()
getColumn(),
getOffset()public int getColumn()
getRow(),
getOffset()public int getDataLength()
public boolean isProtected()
true if the field is protected.public boolean isIntense()
true if the field is intense.public boolean isVisible()
true if the field is visible.public boolean isSOSI()
true if SOSI data is allowed.public boolean isModified()
true if the MDT is set.public boolean isNumeric()
true if the field is numeric.public boolean isAskip()
true if it is auto-skip.public boolean isCursorSelectCapable()
true if it is cursor select capable.public byte getColor()
Terminal class.Terminalpublic byte getCharSet()
public char[] getData()
setData(char[]),
getDataLength()public void setData(char[] newData)
newData - the data.
NullPointerException - if newData is null.
IllegalArgumentException - if newData is not equal in length to the
value returned by getDataLength().
IllegalStateException - if the field is protected.getData(),
getDataLength()public String getText()
nulls in the field are removed, and the other
data is placed in a String.
setText(java.lang.String)public void setText(String theText)
String.
theText - the text.
NullPointerException - if theText is null.
IllegalArgumentException - if the text is too long for the field.
IllegalStateException - if the field is protected.getText()public byte[] getCharAttributes()
public byte[] getCharColors()
public int getFirstCharOffset()
getLastCharOffset()public int getLastCharOffset()
getFirstCharOffset()public String toString()
String representation.public boolean containsCursor()
public boolean equals(Object obj)
obj - the reference object with which to compare
public int hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||