public class DefaultTerminalModel extends Object implements RWTnAction
CONNECTION_ERROR, DISCONNECTED_BY_REMOTE_HOST, READY, X_WAIT| Constructor and Description |
|---|
DefaultTerminalModel() |
DefaultTerminalModel(int modelType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTerminalEventListener(TerminalEventListener tel) |
void |
beep()
This method is called when the host application sends the beep command.
|
void |
broadcastMessage(String message)
This method is called when the SessionServer admin sends a broadcast
message to all currently connected clients.
|
void |
connect(String host,
int port) |
void |
connect(String host,
int port,
boolean encryption) |
void |
connect(String host,
int port,
String host3270,
int port3270,
boolean encryption) |
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 |
disconnect() |
String |
getCurrentPosition() |
RW3270 |
getEmulator() |
String |
getMessage() |
int |
getMessageNumber() |
String |
getStatus()
Gets the current Status Message
|
void |
incomingData()
Is called by the 3270 telnet engine when it has received new data.
|
void |
removeTerminalEventListener(TerminalEventListener tel) |
void |
setCursor(int position)
Called by JTerminal to update the model on cursor moves
|
boolean |
showMessage() |
void |
status(int msg)
This method is called by the 3270 engine to communicate status changes
to the client.
|
boolean |
tooManyConnections() |
public DefaultTerminalModel()
public DefaultTerminalModel(int modelType)
public RW3270 getEmulator()
public void beep()
RWTnAction
public void beep() {
Toolkit.getDefaultToolkit().beep();
}
beep in interface RWTnActionpublic void broadcastMessage(String message)
RWTnAction
If you're implementing Broadcast Messaging in your client, this method
should paint String msg to the client's screen.
broadcastMessage in interface RWTnActionmessage - The broadcast message from the system administrator.public void cursorMove(int oldPos,
int newPos)
RWTnAction
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.
cursorMove in interface RWTnActionoldPos - The previous cursor position.newPos - The new (current) cursor position.public void incomingData()
RWTnActionThis 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.
incomingData in interface RWTnActionpublic void status(int msg)
RWTnActionstatus in interface RWTnActionmsg - The status messagepublic void addTerminalEventListener(TerminalEventListener tel)
public void removeTerminalEventListener(TerminalEventListener tel)
public void setCursor(int position)
public void connect(String host, int port, String host3270, int port3270, boolean encryption)
public void connect(String host, int port) throws IOException, UnknownHostException
IOExceptionUnknownHostExceptionpublic void connect(String host, int port, boolean encryption) throws IOException, UnknownHostException
IOExceptionUnknownHostExceptionpublic void disconnect()
public String getCurrentPosition()
public String getStatus()
public boolean tooManyConnections()
public boolean showMessage()
public String getMessage()
public int getMessageNumber()
Copyright © 2013. All Rights Reserved.