Package dev.galasa.zos3270.spi
Class Screen
java.lang.Object
dev.galasa.zos3270.spi.Screen
Screen representation of the 3270 terminal
-
Constructor Summary
ConstructorsConstructorDescriptionScreen()Deprecated, for removal: This API element is subject to removal in a future version.Screen(int columns, int rows, int alternateColumns, int alternateRows, dev.galasa.zos3270.internal.comms.Network network) Deprecated, for removal: This API element is subject to removal in a future version.use theScreen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.Screen(int columns, int rows, dev.galasa.zos3270.internal.comms.Network network) Deprecated, for removal: This API element is subject to removal in a future version.use theScreen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.Screen(TerminalSize primarySize, TerminalSize alternateSize, dev.galasa.zos3270.internal.comms.Network network, Charset codePage) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voidvoidbackTab()@NotNull Field[]voidvoidvoidvoidcursorUp()voiderase()voidvoideraseEof()voidintintgetColourAtPosition(int pos) intintintgetFieldAt(int col, int row) getHighlightAtPosition(int pos) intintintintintvoidhome()booleanbooleanbooleanisTextInField(String text) locateFieldAt(int cursorPos) voidvoidvoidnewLine()voidnullify(int col, int row, int len) voidpositionCursorToFieldContaining(@NotNull String text) printExtendedScreen(boolean printCursor, boolean printColour, boolean printHighlight, boolean printIntensity, boolean printProtected, boolean printNumeric, boolean printModified) voidprocessInboundMessage(dev.galasa.zos3270.internal.comms.Inbound3270Message inbound) voidprocessOrders(List<dev.galasa.zos3270.internal.datastream.AbstractOrder> orders, dev.galasa.zos3270.internal.datastream.WriteControlCharacter writeControlCharacter) voidvoidintsearchFieldContaining(@NotNull String[] okText, String[] errorText) voidsearchFieldContaining(String text) voidvoidsetBuffer(IBufferHolder[] newBuffer) voidsetCursorPosition(int newPosition) voidsetCursorPosition(int column, int row) voidsetDatastreamListenersDirection(String datastreamHex, IDatastreamListener.DatastreamDirection direction) voidsetIsSSCPLUDisplay(boolean isSSCPLUDisplay) voidtab()voidvoidintintvoidvoidvoidwaitForKeyboard(int maxWait) Wait on the keyboard being freeintwaitForTextInField(String[] ok, String[] error, long timeoutInMilliseconds) intwaitForTextInField(String text, long maxWait)
-
Constructor Details
-
Screen
Deprecated, for removal: This API element is subject to removal in a future version.use theScreen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Screen
@Deprecated(since="0.28.0", forRemoval=true) public Screen(int columns, int rows, dev.galasa.zos3270.internal.comms.Network network) throws TerminalInterruptedException Deprecated, for removal: This API element is subject to removal in a future version.use theScreen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Screen
@Deprecated(since="0.28.0", forRemoval=true) public Screen(int columns, int rows, int alternateColumns, int alternateRows, dev.galasa.zos3270.internal.comms.Network network) throws TerminalInterruptedException Deprecated, for removal: This API element is subject to removal in a future version.use theScreen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Screen
public Screen(TerminalSize primarySize, TerminalSize alternateSize, dev.galasa.zos3270.internal.comms.Network network, Charset codePage) throws TerminalInterruptedException - Throws:
TerminalInterruptedException
-
-
Method Details
-
lockKeyboard
- Throws:
TerminalInterruptedException
-
networkClosed
- Throws:
TerminalInterruptedException
-
processInboundMessage
public void processInboundMessage(dev.galasa.zos3270.internal.comms.Inbound3270Message inbound) throws DatastreamException - Throws:
DatastreamException
-
setDatastreamListenersDirection
public void setDatastreamListenersDirection(String datastreamHex, IDatastreamListener.DatastreamDirection direction) -
processOrders
public void processOrders(List<dev.galasa.zos3270.internal.datastream.AbstractOrder> orders, dev.galasa.zos3270.internal.datastream.WriteControlCharacter writeControlCharacter) throws DatastreamException - Throws:
DatastreamException
-
erase
public void erase() -
eraseAlternate
public void eraseAlternate() -
printScreen
-
printScreenTextWithCursor
-
printExtendedScreen
public String printExtendedScreen(boolean printCursor, boolean printColour, boolean printHighlight, boolean printIntensity, boolean printProtected, boolean printNumeric, boolean printModified) throws Zos3270Exception - Throws:
Zos3270Exception
-
retrieveFlatScreen
-
calculateFields
-
searchFieldContaining
- Throws:
TextNotFoundException
-
searchFieldContaining
public int searchFieldContaining(@NotNull @NotNull String[] okText, String[] errorText) throws TextNotFoundException, ErrorTextFoundException -
isTextInField
-
waitForKeyboard
Wait on the keyboard being free- Parameters:
maxWait- - time in milliseconds- Throws:
KeyboardLockedExceptionInterruptedExceptionTimeoutExceptionTerminalInterruptedException
-
waitForTextInField
public int waitForTextInField(String text, long maxWait) throws TerminalInterruptedException, TextNotFoundException, Zos3270Exception -
waitForTextInField
public int waitForTextInField(String[] ok, String[] error, long timeoutInMilliseconds) throws TerminalInterruptedException, TextNotFoundException, ErrorTextFoundException, Zos3270Exception -
positionCursorToFieldContaining
public void positionCursorToFieldContaining(@NotNull @NotNull String text) throws KeyboardLockedException, TextNotFoundException -
eraseEof
-
eraseInput
-
tab
-
backTab
-
cursorUp
- Throws:
KeyboardLockedException
-
cursorDown
- Throws:
KeyboardLockedException
-
cursorLeft
- Throws:
KeyboardLockedException
-
cursorRight
- Throws:
KeyboardLockedException
-
home
- Throws:
KeyboardLockedException
-
newLine
- Throws:
KeyboardLockedException
-
backSpace
-
getNoOfColumns
public int getNoOfColumns() -
getNoOfRows
public int getNoOfRows() -
registerScreenUpdateListener
-
unregisterScreenUpdateListener
-
getCursor
public int getCursor() -
getCursorRow
public int getCursorRow() -
getCursorColumn
public int getCursorColumn() -
locateFieldAt
-
getValueFromFieldContaining
- Throws:
TextNotFoundException
-
type
-
type
public int type(String text, int column, int row) throws KeyboardLockedException, FieldNotFoundException -
type
-
aid
public byte[] aid(AttentionIdentification aid) throws DatastreamException, TerminalInterruptedException -
getScreenSize
public int getScreenSize() -
printFields
-
setBuffer
-
setBuffer
-
nullify
public void nullify(int col, int row, int len) -
getFieldAt
-
setCursorPosition
public void setCursorPosition(int newPosition) -
setCursorPosition
public void setCursorPosition(int column, int row) -
registerDatastreamListener
-
unregisterDatastreamListener
-
getDatastreamListeners
-
getPrimaryColumns
public int getPrimaryColumns() -
getPrimaryRows
public int getPrimaryRows() -
getAlternateColumns
public int getAlternateColumns() -
getAlternateRows
public int getAlternateRows() -
testingSetLastAid
-
isClearScreen
public boolean isClearScreen() -
getColourAtPosition
-
getHighlightAtPosition
-
getCodePage
-
isSSCPLUDisplay
public boolean isSSCPLUDisplay() -
setIsSSCPLUDisplay
public void setIsSSCPLUDisplay(boolean isSSCPLUDisplay)
-
Screen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)constructor instead.