|
CICS® Transaction Gateway Programming Reference v1.1.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.ibm.ctg.epi.TerminalEvent
public class TerminalEvent
This event is raised by the EPITerminal bean when the terminal connects or disconnects, when a new screen is received from the server, or when an exception occurs. It is also used to request screen handlers to take specific actions, such as exiting the current transaction to allow the terminal to disconnect.
A screen handler that receives this event can set the event 'handled' to notify other screen handlers that the event is being processed. Screen handlers should check whether the event is being handled before attempting to drive the terminal, set fields on the screen etc.
Field Summary | |
---|---|
static int |
EXIT_SCREEN_REQUEST
The terminal requests the screen handler to exit this screen. |
static int |
NO_REQUEST
No terminal request. |
Constructor Summary | |
---|---|
TerminalEvent(java.lang.Object s,
TerminalSession t)
Construct a terminal event. |
|
TerminalEvent(java.lang.Object s,
TerminalSession t,
java.lang.Exception e)
Construct a terminal exception event. |
|
TerminalEvent(java.lang.Object s,
TerminalSession t,
int id)
Construct a terminal event. |
Method Summary | |
---|---|
java.lang.Exception |
getException()
Returns the exception associated with this event. |
TerminalSession |
getTerminal()
Returns the terminal associated with this event. |
int |
getTerminalRequest()
Returns the terminal request ID. |
boolean |
isHandled()
Returns true if the event is already being handled by another listener. |
void |
setHandled()
Set the event to be handled. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EXIT_SCREEN_REQUEST
public static final int NO_REQUEST
Constructor Detail |
---|
public TerminalEvent(java.lang.Object s, TerminalSession t)
s
- the source of the eventt
- the terminalpublic TerminalEvent(java.lang.Object s, TerminalSession t, int id)
s
- the source of the eventt
- the terminalid
- the terminal request identifierpublic TerminalEvent(java.lang.Object s, TerminalSession t, java.lang.Exception e)
s
- the source of the eventt
- the terminale
- the exceptionMethod Detail |
---|
public TerminalSession getTerminal()
public void setHandled()
public boolean isHandled()
public java.lang.Exception getException()
public int getTerminalRequest()
|
©Copyright IBM Corp. 1994, 2014 Legal |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |