Package dev.galasa.zos3270.spi
Class Screen
java.lang.Object
dev.galasa.zos3270.spi.Screen
Screen representation of the 3270 terminal
-
Constructor Summary
ConstructorDescriptionScreen()
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[]
void
void
backTab()
@NotNull Field[]
void
void
void
void
cursorUp()
void
erase()
void
void
eraseEof()
void
int
int
getColourAtPosition
(int pos) int
getFieldAt
(int col, int row) getHighlightAtPosition
(int pos) int
int
int
int
int
void
home()
boolean
boolean
isTextInField
(String text) locateFieldAt
(int cursorPos) void
void
void
newLine()
void
nullify
(int col, int row, int len) void
positionCursorToFieldContaining
(@NotNull String text) printExtendedScreen
(boolean printCursor, boolean printColour, boolean printHighlight, boolean printIntensity, boolean printProtected, boolean printNumeric, boolean printModified) void
processInboundMessage
(dev.galasa.zos3270.internal.comms.Inbound3270Message inbound) void
processOrders
(List<dev.galasa.zos3270.internal.datastream.AbstractOrder> orders, dev.galasa.zos3270.internal.datastream.WriteControlCharacter writeControlCharacter) void
void
int
searchFieldContaining
(@NotNull String[] okText, String[] errorText) void
searchFieldContaining
(String text) void
void
setBuffer
(IBufferHolder[] newBuffer) void
setCursorPosition
(int newPosition) void
setCursorPosition
(int column, int row) void
tab()
void
void
int
int
void
void
void
waitForKeyboard
(int maxWait) Wait on the keyboard being freeint
waitForTextInField
(String[] ok, String[] error, long timeoutInMilliseconds) int
waitForTextInField
(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
-
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:
KeyboardLockedException
InterruptedException
TimeoutException
TerminalInterruptedException
-
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() -
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
-
Screen(TerminalSize primarySize, TerminalSize alternateSize, Network network, Charset codePage)
constructor instead.