public class RW3270Char extends Object
Field attributes (Highlighting, Color, etc.) should be manipulated using
the RW3270Field object, which can obtained from any RW3270Char object by
calling the getField() method. An array of RW3270Char objects
representing the current 3270 screen can be obtained by calling the
RW3270.getDataBuffer() method.
RW3270Field,
RW3270| Modifier and Type | Field and Description |
|---|---|
static short |
BGCOLOR_DEFAULT |
static short |
BLACK |
static short |
BLUE |
static short |
DEEP_BLUE |
static short |
FGCOLOR_DEFAULT |
static short |
GREEN |
static short |
GREY |
static short |
HL_BLINK |
static short |
HL_DEFAULT |
static short |
HL_INTENSIFY |
static short |
HL_NORMAL |
static short |
HL_REVERSE |
static short |
HL_UNDERSCORE |
static short |
OL_LEFT |
static short |
OL_NONE |
static short |
OL_OVER |
static short |
OL_OVER_LEFT |
static short |
OL_OVER_LEFT_UNDER |
static short |
OL_OVER_RIGHT_LEFT |
static short |
OL_OVER_RIGHT_UNDER |
static short |
OL_RECTANGLE |
static short |
OL_RIGHT |
static short |
OL_RIGHT_LEFT |
static short |
OL_RIGHT_OVER |
static short |
OL_UNDER |
static short |
OL_UNDER_LEFT |
static short |
OL_UNDER_OVER |
static short |
OL_UNDER_RIGHT |
static short |
OL_UNDER_RIGHT_LEFT |
static short |
ORANGE |
static short |
PALE_GREEN |
static short |
PALE_TURQUOISE |
static short |
PINK |
static short |
PURPLE |
static short |
RED |
static short |
TURQUOISE |
static short |
WHITE |
static short |
YELLOW |
| Modifier | Constructor and Description |
|---|---|
protected |
RW3270Char(int position)
Instanitates a new RW3270 character.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear()
Clears the this location in the character buffer
|
int |
getBackground()
Returns the background color of this character/field.
|
char |
getChar()
Returns the contents of hidden fields.
|
char |
getDisplayChar()
This method returns the actual Screen representation of an object If
the character is hidden or null, this method returns ' '; Use this
method if you plan on displaying this character to the user.
|
RW3270Field |
getField()
DOCUMENT ME!
|
short |
getFieldAttribute()
DOCUMENT ME!
|
int |
getForeground()
Returns the foreground (font) color of this character/field
|
protected short |
getHighlighting()
Returns the highlighting attributes for this character/startField
(assuming it's a StartField.)
|
int |
getOutlining()
DOCUMENT ME!
|
int |
getPosition()
DOCUMENT ME!
|
boolean |
isBold()
DOCUMENT ME!
|
boolean |
isHidden()
DOCUMENT ME!
|
boolean |
isHighIntensity() |
protected boolean |
isModified() |
protected void |
isModified(boolean b)
Sets the MDT for this field (assuming it's a SF character)
|
boolean |
isNumeric() |
boolean |
isProtected()
DOCUMENT ME!
|
void |
isProtected(boolean b) |
boolean |
isStartField()
DOCUMENT ME!
|
protected void |
setBackground(short in)
Sets the background color of this character field.
|
protected void |
setChar(char c)
Sets the actual ASCII char stored in this object.
|
protected void |
setField(RW3270Field field)
Creates a pointer to the RW3270Field object that 'contains' this
character.
|
protected void |
setFieldAttribute(short in)
Stores the short that represents the FA
|
protected void |
setForeground(short in)
Sets the foreground (font) color for this character/field
|
protected void |
setHighlighting(short in)
Sets the highlighting attributes for this character/startField
(assuming it's a StartField.)
|
protected void |
setOutlining(short in)
Sets the outlining attributes for this character/startField (assuming
it's a StartField.)
|
protected void |
setStartField()
Sets this position in the data buffer as a start field
|
protected void |
setValidation(short in)
Sets the validation attributes for this character/field.
|
String |
toString()
DOCUMENT ME!
|
public static final short HL_DEFAULT
public static final short HL_NORMAL
public static final short HL_BLINK
public static final short HL_REVERSE
public static final short HL_UNDERSCORE
public static final short HL_INTENSIFY
public static final short BGCOLOR_DEFAULT
public static final short FGCOLOR_DEFAULT
public static final short BLUE
public static final short RED
public static final short PINK
public static final short GREEN
public static final short TURQUOISE
public static final short YELLOW
public static final short BLACK
public static final short DEEP_BLUE
public static final short ORANGE
public static final short PURPLE
public static final short PALE_GREEN
public static final short PALE_TURQUOISE
public static final short GREY
public static final short WHITE
public static final short OL_NONE
public static final short OL_UNDER
public static final short OL_RIGHT
public static final short OL_OVER
public static final short OL_LEFT
public static final short OL_UNDER_RIGHT
public static final short OL_UNDER_OVER
public static final short OL_UNDER_LEFT
public static final short OL_RIGHT_OVER
public static final short OL_RIGHT_LEFT
public static final short OL_OVER_LEFT
public static final short OL_OVER_RIGHT_UNDER
public static final short OL_UNDER_RIGHT_LEFT
public static final short OL_OVER_LEFT_UNDER
public static final short OL_OVER_RIGHT_LEFT
public static final short OL_RECTANGLE
protected RW3270Char(int position)
Normally is called by RW3270. End-programmers have no reason to create RW3270Objects, as they are managed completely by the data stream and session instantiation.
position - The position of this character in the bufferpublic int getBackground()
public char getChar()
NOTE: Do not use for display of characters, only for testing
contents. For displaying the character, use
getDisplayChar()
public char getDisplayChar()
public RW3270Field getField()
public short getFieldAttribute()
public int getForeground()
public int getOutlining()
public int getPosition()
public boolean isBold()
public boolean isHidden()
public boolean isNumeric()
public boolean isProtected()
public void isProtected(boolean b)
public boolean isStartField()
public boolean isHighIntensity()
public String toString()
protected void clear()
protected short getHighlighting()
protected void isModified(boolean b)
b - DOCUMENT ME!protected boolean isModified()
protected void setBackground(short in)
in - DOCUMENT ME!protected void setChar(char c)
c - character stored in this buffer locationprotected void setField(RW3270Field field)
field - the field in which this character is containedprotected void setFieldAttribute(short in)
in - DOCUMENT ME!protected void setForeground(short in)
in - DOCUMENT ME!protected void setHighlighting(short in)
in - DOCUMENT ME!protected void setOutlining(short in)
in - DOCUMENT ME!protected void setStartField()
protected void setValidation(short in)
in - DOCUMENT ME!Copyright © 2013. All Rights Reserved.