Class TerminalImage
java.lang.Object
dev.galasa.zos3270.common.screens.TerminalImage
Pojo to represent a screen image as received or sent from the client. Inbound
means received by the client.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalImage(int sequence, @NotNull String id, boolean inbound, String type, String aid, TerminalSize imageSize, int cursorColumn, int cursorRow) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetAid()Fetch the AID if outboundintintFetch the fields@NotNull StringgetId()Fetch the idReturn the image size, if null, then it is the default sizeintFetch the sequence numbergetType()Get the filtering type of the imagebooleanIs inbound to the client.
-
Constructor Details
-
TerminalImage
public TerminalImage(int sequence, @NotNull @NotNull String id, boolean inbound, String type, String aid, TerminalSize imageSize, int cursorColumn, int cursorRow) Constructor- Parameters:
sequence- The sequence of the image, for the whole terminal interactionid- Id of this imageinbound- inbound = true if received by the clienttype- Type of interaction, interactions can be labels so can be filteredaid- The AttentionID for outbound messagesimageSize- The size of the image if different to the defaultcursorColumn- The position of the cursor on the screencursorRow- The position of the cursor on the screen
-
-
Method Details
-
getSequence
public int getSequence()Fetch the sequence number- Returns:
- sequence number
-
getId
Fetch the id- Returns:
- the id
-
isInbound
public boolean isInbound()Is inbound to the client. false means being sent from the client- Returns:
- inbound
-
getImageSize
Return the image size, if null, then it is the default size- Returns:
- the terminal size if not default
-
getFields
Fetch the fields- Returns:
- Fields
-
getAid
Fetch the AID if outbound- Returns:
- the aid, only valid for outbound images
-
getType
Get the filtering type of the image- Returns:
- filtering type
-
getCursorColumn
public int getCursorColumn()- Returns:
- the column where the cursor is positioned
-
getCursorRow
public int getCursorRow()- Returns:
- the row where the cursor is positioned
-