public interface RWTnAction
RW3270| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_ERROR
Status constant passed to
status() indicating that there
was a problem connecting to the 3270 host or SessionServer |
static int |
DISCONNECTED_BY_REMOTE_HOST
Status constant passed to
status() indicating that the
client's connection to the host has been closed. |
static int |
READY
Status constant passed to
status() indicating that the
3270 engine is ready for user input |
static int |
X_WAIT
Status constant passed to
status() indicating that the
3270 engine is waiting for a response from the 3270 host. |
| Modifier and Type | Method and Description |
|---|---|
void |
beep()
This method is called when the host application sends the beep command.
|
void |
broadcastMessage(String msg)
This method is called when the SessionServer admin sends a broadcast
message to all currently connected clients.
|
void |
cursorMove(int oldPos,
int newPos)
This method is called when the cursor position (current buffer
position) of the 3270 engine is changed by host commands or by user
input.
|
void |
incomingData()
Is called by the 3270 telnet engine when it has received new data.
|
void |
status(int msg)
This method is called by the 3270 engine to communicate status changes
to the client.
|
static final int DISCONNECTED_BY_REMOTE_HOST
status() indicating that the
client's connection to the host has been closed.static final int CONNECTION_ERROR
status() indicating that there
was a problem connecting to the 3270 host or SessionServerstatic final int X_WAIT
status() indicating that the
3270 engine is waiting for a response from the 3270 host.static final int READY
status() indicating that the
3270 engine is ready for user inputvoid beep()
public void beep() {
Toolkit.getDefaultToolkit().beep();
}
void broadcastMessage(String msg)
If you're implementing Broadcast Messaging in your client, this method
should paint String msg to the client's screen.
msg - The broadcast message from the system administrator.void cursorMove(int oldPos,
int newPos)
This is useful for 'undrawing' the cursor before drawing it in its new
position. The position is returned as an integer value between 0
(first character position) and len(dataBuffer) - 1 (last
character position). For example using 3270 Model 2. The value would
be between 0 and 1919.
oldPos - The previous cursor position.newPos - The new (current) cursor position.void incomingData()
This method would usually call a paint() method or other display update. Note: this method is useful when the client implementation is stateful. If the 3270 engine does not have direct access to the user's display, the RW3270.waitForNewData() method will suspend the calling thread until new data arrives.
void status(int msg)
msg - The status messageCopyright © 2013. All Rights Reserved.