|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object no.gar.glink.api.GlinkField
public class GlinkField
A field is the fundamental element of a virtual screen. A field includes both data and attributes describing the field. The GlinkField class encapsulates a virtual screen field and provides methods for accessing and manipulating field attributes and data.
GlinkField objects can be accessed only through the GlinkFields object.
GlinkFields
Field Summary | |
---|---|
static int |
ATR_BLINK
|
static int |
ATR_FIELD_ALPHABETIC
|
static int |
ATR_FIELD_ATTRIBUTE
|
static int |
ATR_FIELD_DIGITAL
|
static int |
ATR_FIELD_IBM_PEN
|
static int |
ATR_FIELD_MUST_ENTER
|
static int |
ATR_FIELD_MUST_FILL
|
static int |
ATR_FIELD_NUMERIC
|
static int |
ATR_FIELD_RIGHT_JUSTIFY
|
static int |
ATR_HIDDEN
|
static int |
ATR_INVERSE
|
static int |
ATR_UNDERLINE
|
static int |
ATR_UNPROTECTED
|
Constructor Summary | |
---|---|
GlinkField(java.lang.Object object,
int fldAtrVa,
java.awt.Point start,
java.awt.Point end)
|
Method Summary | |
---|---|
int |
getAttribute()
Returns the the attribute for the field. |
int[] |
getAttributes()
Returns an attribute array for the characters in the field. |
byte[] |
getDataBytes()
Returns the screen characters (bytes) for the field in the character set used internally by Glink. |
char[] |
getDataChars()
Returns the screen characters for the field. |
java.awt.Point |
getEnd()
Returns the ending position of the field. |
int |
getLength()
Returns the length of the field. |
java.awt.Point |
getStart()
Returns the starting position of the field. |
java.lang.String |
getString()
Returns the field text. |
boolean |
isHidden()
Indicates whether or not the field is hidden. |
boolean |
isHighIntensity()
Indicates whether or not the field is high-intensity. |
boolean |
isModified()
Indicates whether or not the field has been modified. |
boolean |
isNumeric()
Indicates whether or not the field is numeric-only. |
boolean |
isProtected()
Indicates whether or not the field is protected. |
boolean |
isUpperCase()
Indicates whether or not the input field is uppercase only. |
void |
setDataBytes(byte[] bytes)
Sets the field text to the specified bytes in the character set used internally by Glink. |
void |
setString(java.lang.String text)
Sets the field text to the specified Unicode string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ATR_BLINK
public static final int ATR_FIELD_ALPHABETIC
public static final int ATR_FIELD_ATTRIBUTE
public static final int ATR_FIELD_DIGITAL
public static final int ATR_FIELD_IBM_PEN
public static final int ATR_FIELD_MUST_ENTER
public static final int ATR_FIELD_MUST_FILL
public static final int ATR_FIELD_NUMERIC
public static final int ATR_FIELD_RIGHT_JUSTIFY
public static final int ATR_HIDDEN
public static final int ATR_INVERSE
public static final int ATR_UNDERLINE
public static final int ATR_UNPROTECTED
Constructor Detail |
---|
public GlinkField(java.lang.Object object, int fldAtrVa, java.awt.Point start, java.awt.Point end)
Method Detail |
---|
public int getAttribute()
Bit Position | Description |
---|---|
0-3 | Foreground colors |
4-6 | Background colors |
7 | Underline |
8 | Reserved |
9 | Reserved |
10 | Blink |
11 | Reserved |
12 | Reserved |
13 | Reserved |
14 | Reserved |
15 | Inverse |
16 | Field, must enter |
17 | Field, must fill |
18 | Field, right justify |
19 | Field, Alpha character |
20 | Field, Numeric |
21 | Field, digital |
22 | Field, IBM Pen selectable |
23 | Hidden |
24 | Reserved |
25 | Reserved |
26 | Reserved |
27 | Reserved |
28 | Field, modified |
29 | Reserved |
30 | Unprotected |
31 | Field flag |
public int[] getAttributes()
Attribute format.
public byte[] getDataBytes()
getString()
public char[] getDataChars()
getString()
public java.awt.Point getEnd()
public int getLength()
public java.awt.Point getStart()
public java.lang.String getString()
getDataBytes()
,
GlinkApi.getScreenCharacterSet()
public boolean isHidden()
public boolean isHighIntensity()
public boolean isModified()
public boolean isNumeric()
public boolean isProtected()
public boolean isUpperCase()
public void setDataBytes(byte[] bytes)
bytes
- The text to be placed in the field's text plane.public void setString(java.lang.String text)
text
- The text to be placed in the field's text plane.GlinkApi.getScreenCharacterSet()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |