public class Display5250 extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTR_ATTRIBUTE |
static int |
ATTR_NEEDSPROPAGATION |
static int |
ATTR_NEEDSUPDATE |
static int |
ERRCODE_CHECK_DIGIT_ERROR |
static int |
ERRCODE_FIELD_FULL |
static int |
ERRCODE_FIELD_MINUS_NOT_ALLOWED |
static int |
ERRCODE_INVALID_ALPHA_CHAR |
static int |
ERRCODE_INVALID_NUMERIC_CHAR |
static int |
ERRCODE_INVALID_SEND_KEY_AFTER_SYS_REQ |
static int |
ERRCODE_INVALID_SIGNED_NUMERIC_CHAR |
static int |
ERRCODE_MANDATORY_ENTER |
static int |
ERRCODE_MANDATORY_FILL |
static int |
ERRCODE_NOT_RIGHT_ADJUSTED |
static int |
ERRCODE_PROTECTED_FIELD |
static int |
HATTR_ATTRIBUTEMASK |
static int |
HATTR_BLINK |
static int |
HATTR_COLORMASK |
static int |
HATTR_COLUMNSEPARATOR |
static int |
HATTR_INTENSITY |
static int |
HATTR_NONDISPLAY |
static int |
HATTR_REVERSE |
static int |
HATTR_UNDERSCORE |
static int |
IND_ERROR |
static int |
IND_INSERT |
static int |
IND_LOCK |
static int |
IND_MESSAGE_WAITING |
static int |
IND_SYS_REQ |
static int |
IND_SYSTEM_NOT_AVAILABLE |
Constructor and Description |
---|
Display5250(HostSession5250 h)
Creates the display of the specified size.
|
Modifier and Type | Method and Description |
---|---|
int |
addAttr(int addr,
int a)
Adds an attribute character at the specified position.
|
int |
addChar(int addr,
char c)
Adds a character at the specified position.
|
int |
addChar(int addr,
char c,
int ha)
Adds a character with a possible host attribute.
|
boolean |
backTab()
Performs backtab to another nonbypass field.
|
void |
clearIndicator(int indicator)
Clears an indicator value (IND_*).
|
void |
clearScreen()
Clears the presentation space (sets display size to 24 x 80).
|
void |
clearScreenAlternate()
Clears the presentation space (sets display size to 27 x 132).
|
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 |
delete()
Deletes a character at the cursor position.
|
boolean |
destructiveBackSpace()
Performs a destructive backspace.
|
void |
enterErrorState(int errCode)
Enters the error state.
|
boolean |
eraseEOF()
Erases the end of this input field.
|
boolean |
eraseInput()
This key works only on the unprotected fields that the workstation
operator has modified.
|
boolean |
fieldExit()
Performs the field exit function.
|
void |
fieldFull()
Enters the field full error state.
|
boolean |
fieldMinus()
Performs the field minus functions.
|
void |
fieldMinusNotAllowed()
Enters the field minus not allowed enter error state.
|
boolean |
fieldPlus()
Same function as field exit.
|
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 |
getCursorXPosition()
Gets the X position of cursor (zero based).
|
int |
getCursorYPosition()
Gets the Y position of cursor (zero based).
|
int[] |
getDisplayAttr()
Gets the display attributes.
|
char[] |
getDisplayData()
Gets the display data.
|
int |
getHeight()
Gets the height of the display.
|
int |
getIndicatorsValue()
Returns all the indicators as a value.
|
Dimension |
getInitialScreenSize()
Gets the initial screen size.
|
String |
getLastError(boolean doClear)
Gets the last error message of the session.
|
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 screen width.
|
boolean |
insertChar(char c)
Inserts a displayable character at the current cursor position
with the current insert mode and current cursor position.
|
boolean |
insertChar(int addr,
char c,
boolean isInsertMode,
boolean doMoveCursor,
boolean doUpdate)
Inserts a displayable character.
|
boolean |
insertString(String str)
Inserts a string of data into the display at current position.
|
void |
invalidSendKeyAfterSysReq()
Enters the invalid send key state.
|
boolean |
isAttr(int addr)
Checks if a position has an attribute or not.
|
boolean |
isInsertMode()
Checks for the insert mode state.
|
boolean |
isLocked()
Gets the current keyboard lock state.
|
boolean |
isSysReq()
Checks if the system request mode is turned on.
|
void |
mandatoryEnter()
Enters the mandatory enter error state.
|
void |
mandatoryFill()
Enters the mandatory fill error state.
|
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.
|
boolean |
pageDown()
Performs the page down function.
|
boolean |
pageUp()
Performs the page up function.
|
void |
propagateOutputAttributes()
Propagates the colors and flags of attributes to characters
between fields.
|
void |
protectedField()
Enters the protected field state.
|
boolean |
recordBackspace()
Performs the record backspace function.
|
void |
refreshHostFields(HostFields fields)
Refreshes the host fields of the current session.
|
boolean |
resetKeyboard()
Resets the keyboard.
|
boolean |
sendAttention()
Sends the attention key.
|
boolean |
sendEnter()
Sends the Enter key.
|
boolean |
sendHelp()
Sends the help key.
|
boolean |
sendPA(int nn)
Sends a PA 1-3 key.
|
boolean |
sendPF(int nn)
Sends a PF 1-24 key.
|
boolean |
sendTestRequest()
Sends the test request key.
|
int |
setAttributeForCharacter(int addr,
int ha)
Sets the attribute for a character value at a specific
address.
|
void |
setErrorText(String text,
int errLineNo,
char[] errChars,
int[] errAttrs,
int errLineLen)
Enters the error mode.
|
void |
setIndicator(int indicator)
Sets an indicator value (IND_*).
|
void |
setIndicatorsValue(int indicators)
Sets the indicators value.
|
boolean |
setInsertMode(boolean on)
Changes the insert mode.
|
void |
setLastError(String errMsg)
Sets the last error message of the session.
|
void |
setNeedsUpdate()
Sets the need update flag when screen is manipulated directly.
|
void |
setRegenerationSize(boolean is27x132)
Sets a new screen size for the screen regeneration.
|
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.
|
boolean |
systemRequest()
Starts the system request mode.
|
boolean |
tabForward()
Performs tab to another nonbypass field.
|
boolean |
tabForward(boolean isFieldExit)
Performs tab to another nonbypass field.
|
boolean |
toggleInsertMode()
Toggles insert mode.
|
void |
update()
Updates the entire screen character contents.
|
void |
update(int start,
int stop)
Updates a piece of the screen.
|
void |
updateState()
Updates previous states with new ones.
|
public static final int HATTR_COLORMASK
public static final int HATTR_COLUMNSEPARATOR
public static final int HATTR_BLINK
public static final int HATTR_UNDERSCORE
public static final int HATTR_INTENSITY
public static final int HATTR_REVERSE
public static final int HATTR_NONDISPLAY
public static final int HATTR_ATTRIBUTEMASK
public static final int ATTR_NEEDSPROPAGATION
public static final int ATTR_ATTRIBUTE
public static final int ATTR_NEEDSUPDATE
public static final int IND_SYSTEM_NOT_AVAILABLE
public static final int IND_ERROR
public static final int IND_LOCK
public static final int IND_MESSAGE_WAITING
public static final int IND_INSERT
public static final int IND_SYS_REQ
public static final int ERRCODE_PROTECTED_FIELD
public static final int ERRCODE_INVALID_SEND_KEY_AFTER_SYS_REQ
public static final int ERRCODE_MANDATORY_ENTER
public static final int ERRCODE_INVALID_ALPHA_CHAR
public static final int ERRCODE_INVALID_NUMERIC_CHAR
public static final int ERRCODE_INVALID_SIGNED_NUMERIC_CHAR
public static final int ERRCODE_FIELD_FULL
public static final int ERRCODE_MANDATORY_FILL
public static final int ERRCODE_CHECK_DIGIT_ERROR
public static final int ERRCODE_FIELD_MINUS_NOT_ALLOWED
public static final int ERRCODE_NOT_RIGHT_ADJUSTED
public Display5250(HostSession5250 h)
public void setRegenerationSize(boolean is27x132)
public boolean isInsertMode()
public boolean setInsertMode(boolean on)
public boolean toggleInsertMode()
public void setIndicator(int indicator)
public void clearIndicator(int indicator)
public int getIndicatorsValue()
public void setIndicatorsValue(int indicators)
public void updateState()
public boolean isLocked()
public boolean isSysReq()
public boolean resetKeyboard()
public boolean systemRequest()
public void enterErrorState(int errCode)
public void invalidSendKeyAfterSysReq()
public void protectedField()
public void fieldFull()
public void mandatoryFill()
public void mandatoryEnter()
public void fieldMinusNotAllowed()
public void setErrorText(String text, int errLineNo, char[] errChars, int[] errAttrs, int errLineLen)
public void setLastError(String errMsg)
public String getLastError(boolean doClear)
public boolean sendEnter() throws IOException
IOException
- if a data stream problem occurs.public boolean sendPF(int nn) throws IOException
IOException
- if a data stream problem occurs.public boolean sendPA(int nn) throws IOException
IOException
- if a data stream problem occurs.public boolean sendHelp() throws IOException
IOException
- if a data stream problem occurs.public boolean sendTestRequest() throws IOException
IOException
- if a data stream problem occurs.public boolean sendAttention() throws IOException
IOException
- if a data stream problem occurs.public boolean tabForward()
Finds the best suited entry field: after the current the current address (backtab).
public boolean tabForward(boolean isFieldExit)
Finds the best suited entry field: after the current the current address (backtab).
public boolean backTab()
Finds the best suited entry field: before the current address.
public long getPhantomState()
public Dimension getScreenSize()
public int getWidth()
public int getHeight()
public Dimension getInitialScreenSize()
public int getScreenLength()
public char[] getDisplayData()
public int[] getDisplayAttr()
public void update()
public void setNeedsUpdate()
public void update(int start, int stop)
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 addChar(int addr, char c)
public int addChar(int addr, char c, int ha)
public int addAttr(int addr, int a)
public boolean isAttr(int addr)
public int setAttributeForCharacter(int addr, int ha)
public void propagateOutputAttributes()
public void clearScreen()
public void clearScreenAlternate()
public boolean delete()
public boolean insertChar(char c)
public boolean insertChar(int addr, char c, boolean isInsertMode, boolean doMoveCursor, boolean doUpdate)
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 refreshHostFields(HostFields fields)
public int getCursorAddress()
public Point getCursorPosition()
public int getCursorXPosition()
public int getCursorYPosition()
public boolean moveCursor(int addr)
public boolean moveCursor(int x, int y)
public boolean offsetCursor(int xo, int yo)
public boolean cursorHome() throws IOException
IOException
- if a data stream problem occurs.public boolean cursorEnd()
public boolean cursorNewLine()
public boolean pageUp() throws IOException
IOException
- if a data stream problem occurs.public boolean pageDown() throws IOException
IOException
- if a data stream problem occurs.public boolean fieldExit() throws IOException
IOException
- if a data stream problem occurs.public boolean fieldMinus() throws IOException
IOException
- if a data stream problem occurs.public boolean fieldPlus() throws IOException
IOException
- if a data stream problem occurs.fieldExit()
public boolean recordBackspace() throws IOException
IOException
- if a data stream problem occurs.public boolean eraseInput()
public boolean eraseEOF()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.