public class Display3270 extends Object
Modifier and Type | Class and Description |
---|---|
class |
Display3270.Aid
Handles sending Attention IDentifier keys to host.
|
Modifier and Type | Field and Description |
---|---|
Display3270.Aid |
aid
The Aid class instance.
|
static char |
ASCII_FA
Special ASCII code: Field Attribute.
|
static int |
ATTR_BASICMASK
The basic attribute mask when getting the attribute to send it to host.
|
static int |
ATTR_EXTENDEDCOLORMASK
The mask used to find out if a character or field attribute
has extended color properties.
|
static int |
ATTR_FLAG_ALL_FLAGS |
static int |
ATTR_FLAG_BACKCOLOR |
static int |
ATTR_FLAG_CHARSET |
static int |
ATTR_FLAG_FORECOLOR |
static int |
ATTR_FLAG_HIGHLIGHT |
static int |
ATTR_FLAG_OUTLINE |
static int |
ATTR_GECHAR |
static int |
ATTR_HIGHLIGHT_BLINK |
static int |
ATTR_HIGHLIGHT_REVERSE |
static int |
ATTR_HIGHLIGHT_UNDERLINE |
static int |
ATTR_INTENSITY |
static int |
ATTR_MASK_ALL_EQUALIZE |
static int |
ATTR_MASK_ALL_EXTENDED |
static int |
ATTR_MASK_ALL_EXTENDED_BITS
The mask used to find out if a character or field attribute
has extended properties, not including the GE character, the special character and the needs update flag.
|
static int |
ATTR_MASK_BACKCOLOR |
static int |
ATTR_MASK_CHARSET |
static int |
ATTR_MASK_FORECOLOR |
static int |
ATTR_MASK_HIGHLIGHT |
static int |
ATTR_MASK_OUTLINE |
static int |
ATTR_MODIFIED |
static int |
ATTR_NEEDSUPDATE |
static int |
ATTR_NONDISPLAY |
static int |
ATTR_NUMERIC |
static int |
ATTR_PROTECTED |
static int |
ATTR_RESERVED |
static int |
ATTR_SHIFT_BACKCOLOR |
static int |
ATTR_SHIFT_CHARSET |
static int |
ATTR_SHIFT_FORECOLOR |
static int |
ATTR_SHIFT_HIGHLIGHT |
static int |
ATTR_SHIFT_OUTLINE |
static int |
ATTR_SPECIALCHAR |
static int |
ATTR_TRANSGRAPHIC0 |
static int |
ATTR_TRANSGRAPHIC1 |
static int |
STATE_FULL |
static int |
STATE_NUMERIC |
static int |
STATE_PROTECTED |
static int |
STATE_SENDING |
static int |
STATE_SYSTEM |
static int |
STATE_WAITING |
Constructor and Description |
---|
Display3270(HostSession3270 h,
int cols,
int rows)
Creates the display of the specified size.
|
Modifier and Type | Method and Description |
---|---|
void |
clearScreen()
Clears the presentation space.
|
byte |
convertCharToEBCDIC(char c)
Converts a single character to EBCDIC byte.
|
boolean |
cursorBacktab()
Back-tabs the cursor.
|
boolean |
cursorEnd()
Moves the cursor to the end of the field.
|
boolean |
cursorHome()
Moves the cursor to the first unprotected field.
|
boolean |
cursorNewLine()
Moves cursor to a new line.
|
boolean |
cursorTab()
Moves the cursor to the next field.
|
boolean |
delete()
Deletes a character at the cursor position.
|
boolean |
destructiveBackSpace()
Performs a destructive backspace.
|
boolean |
doesFieldHaveExtendedAttributes(HostField hostField)
Checks if a host field has extended attributes or not.
|
boolean |
eraseEOF()
Deletes all characters in the current field from the current cursor
position to end of line.
|
boolean |
eraseInput()
Clears all input capable fields.
|
void |
getCharactersAndAttributes(char[] chars,
int[] attrbs,
int beginPos,
int endPos)
Gets the characters and attributes between two positions, including
the end position.
|
void |
getCharactersAndAttributes(char[] chars,
int[] attrbs,
int beginPos,
int endPos,
char fieldOrNullChar)
Gets the characters and attributes between two positions, including
the end position.
|
int |
getCursorAddress()
Gets the cursor position.
|
Point |
getCursorPosition()
Gets the cursor position.
|
int[] |
getDisplayAttr()
Gets the display attributes.
|
char[] |
getDisplayData()
Gets the display data.
|
int |
getEnteredData(short[] buf)
Gets the user entered data in the buffer, returning the
length.
|
int |
getFieldAttribute(int addr)
Gets the "new character" 3270 host attribute.
|
int |
getHeight()
Gets the display height.
|
int |
getHomeAddress()
Gets the host address index on the screen.
|
Dimension |
getInitialScreenSize()
Gets the initial screen size.
|
int |
getNewCharAttribute(int x,
int y)
Gets the attribute to use for new characters in a field that contains
extended attributes.
|
long |
getPhantomState()
Gets the Phantom-specific state of the display session, except
for the connected and connecting flags that is handled in the
HostSession class.
|
int |
getScreenLength()
Returns the screen length.
|
Dimension |
getScreenSize()
Gets the screen size.
|
int |
getWidth()
Gets the display width.
|
boolean |
insertChar(char c)
Inserts a displayable character at the current cursor position.
|
boolean |
insertChar(char c,
boolean isSpecialChar)
Inserts a displayable character at the current cursor position.
|
boolean |
insertString(String str)
Inserts a string of data into the display at current position.
|
boolean |
isFieldFormatted()
Checks if this host screen is field formatted.
|
boolean |
isLocked()
Gets the current keyboard lock state.
|
boolean |
isNumeric(int x,
int y)
Checks if a host field is numeric or not.
|
void |
lock(int state)
Locks the display.
|
boolean |
moveCursor(int addr)
Moves the cursor position to the specified address.
|
boolean |
moveCursor(int x,
int y)
Moves the cursor position to the specified address.
|
boolean |
offsetCursor(int xo,
int yo)
Offsets the cursor by a value in X/Y.
|
void |
refreshHostFields(HostFields fields)
Refreshes the host fields of the current session.
|
boolean |
resetKeyboard()
Unlocks the keyboard.
|
boolean |
resetKeyboard(boolean fromHost)
Unlocks the keyboard.
|
void |
setHostField(HostField hostField,
String data,
int[] attrs)
Sets a host field fully with text data and perhaps
attributes (if these are non-null).
|
void |
setInitialSize()
Restore display size to initial size, e.g.
|
void |
setInitialSize(int c,
int r)
Sets a new initial size and selects this new size.
|
boolean |
setInsertMode(boolean on)
Changes the insert mode.
|
void |
setSSCPLU(boolean on)
Sets or clears the SSCP-LU data flag.
|
boolean |
setString(int x,
int y,
int offset,
int length,
String string)
Sets a displayable character string at the requested position, without
moving the cursor.
|
void |
setSystemDefaultSize()
Sets display in 80x24.
|
boolean |
toggleInsertMode()
Toggles insert mode.
|
void |
update()
Updates the character contents.
|
public final Display3270.Aid aid
public static final int STATE_SYSTEM
public static final int STATE_SENDING
public static final int STATE_WAITING
public static final int STATE_PROTECTED
public static final int STATE_FULL
public static final int STATE_NUMERIC
public static final int ATTR_MODIFIED
public static final int ATTR_RESERVED
public static final int ATTR_NONDISPLAY
public static final int ATTR_INTENSITY
public static final int ATTR_NUMERIC
public static final int ATTR_PROTECTED
public static final int ATTR_TRANSGRAPHIC0
public static final int ATTR_TRANSGRAPHIC1
public static final int ATTR_SHIFT_FORECOLOR
public static final int ATTR_SHIFT_BACKCOLOR
public static final int ATTR_SHIFT_OUTLINE
public static final int ATTR_SHIFT_HIGHLIGHT
public static final int ATTR_SHIFT_CHARSET
public static final int ATTR_MASK_FORECOLOR
public static final int ATTR_MASK_BACKCOLOR
public static final int ATTR_MASK_OUTLINE
public static final int ATTR_MASK_HIGHLIGHT
public static final int ATTR_MASK_CHARSET
public static final int ATTR_MASK_ALL_EXTENDED
public static final int ATTR_MASK_ALL_EQUALIZE
public static final int ATTR_FLAG_FORECOLOR
public static final int ATTR_FLAG_BACKCOLOR
public static final int ATTR_FLAG_OUTLINE
public static final int ATTR_FLAG_HIGHLIGHT
public static final int ATTR_FLAG_CHARSET
public static final int ATTR_FLAG_ALL_FLAGS
public static final int ATTR_SPECIALCHAR
public static final int ATTR_GECHAR
public static final int ATTR_NEEDSUPDATE
public static final int ATTR_MASK_ALL_EXTENDED_BITS
public static final int ATTR_HIGHLIGHT_BLINK
public static final int ATTR_HIGHLIGHT_REVERSE
public static final int ATTR_HIGHLIGHT_UNDERLINE
public static final int ATTR_BASICMASK
public static final int ATTR_EXTENDEDCOLORMASK
public static final char ASCII_FA
public Display3270(HostSession3270 h, int cols, int rows)
public byte convertCharToEBCDIC(char c)
public boolean setInsertMode(boolean on)
public boolean toggleInsertMode()
public boolean isLocked()
public void lock(int state)
public boolean resetKeyboard()
public boolean resetKeyboard(boolean fromHost)
public void setSSCPLU(boolean on)
public long getPhantomState()
public Dimension getScreenSize()
public int getWidth()
public int getHeight()
public Dimension getInitialScreenSize()
public int getScreenLength()
public void setSystemDefaultSize()
public void setInitialSize()
public void setInitialSize(int c, int r)
public char[] getDisplayData()
public int[] getDisplayAttr()
public void getCharactersAndAttributes(char[] chars, int[] attrbs, int beginPos, int endPos)
public void getCharactersAndAttributes(char[] chars, int[] attrbs, int beginPos, int endPos, char fieldOrNullChar)
public int getNewCharAttribute(int x, int y)
public boolean doesFieldHaveExtendedAttributes(HostField hostField)
public boolean isFieldFormatted()
public void update()
public int getFieldAttribute(int addr)
public void clearScreen()
public boolean delete()
public boolean eraseInput()
public boolean eraseEOF()
public boolean insertChar(char c)
public boolean insertChar(char c, boolean isSpecialChar)
public boolean setString(int x, int y, int offset, int length, String string)
public boolean insertString(String str)
insertChar(char)
public boolean destructiveBackSpace()
public void setHostField(HostField hostField, String data, int[] attrs)
public void refreshHostFields(HostFields fields)
public boolean isNumeric(int x, int y)
public int getCursorAddress()
public Point getCursorPosition()
public boolean moveCursor(int addr)
public boolean moveCursor(int x, int y)
public boolean offsetCursor(int xo, int yo)
public boolean cursorTab()
public boolean cursorBacktab()
public boolean cursorHome()
public int getHomeAddress()
public boolean cursorEnd()
public boolean cursorNewLine()
public int getEnteredData(short[] buf)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.