|
CICS® Transaction Gateway Base API Programming Reference v8.1.0.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.ctg.epi.ScreenHandler
public abstract class ScreenHandler
This class can be used as a base class for screen handlers. It implements some useful screen handler behaviour:
Constructor Summary | |
---|---|
ScreenHandler()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Handles an action event by converting the action command to an AID value and sending the screen to CICS. |
void |
addScreenEventListener(ScreenEventListener l)
The specified ScreenEventListener will be called when this ScreenHandler gains control of the screen and again when it loses control. |
void |
exceptionOccurred(TerminalEvent evt)
Handles a terminal exception. |
void |
exitScreen()
Exit the screen. |
void |
fireEvent()
Send appropriate event to all listeners. |
AID |
getAID()
Get the current AID value. |
int |
getCursorColumn()
Get the cursor column position. |
int |
getCursorRow()
Get the cursor row position. |
boolean |
isHandling()
Returns true if the ScreenHandler is handling the current screen. |
void |
removeScreenEventListener(ScreenEventListener l)
Remove this ScreenEventListener from the internal list. |
void |
send()
Send the screen to CICS. |
void |
setAID(AID aid)
Set the AID. |
void |
setCursor(int row,
int col)
Set the cursor position. |
void |
terminalConnected(TerminalEvent evt)
Handles a terminal connect event. |
void |
terminalDisconnected(TerminalEvent evt)
Handles a terminal disconnect event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.ctg.epi.TerminalEventListener |
---|
handleScreen |
Constructor Detail |
---|
public ScreenHandler()
Method Detail |
---|
public void addScreenEventListener(ScreenEventListener l)
l
- the ScreenEventListenerremoveScreenEventListener(com.ibm.ctg.epi.ScreenEventListener)
public void removeScreenEventListener(ScreenEventListener l)
l
- the ScreenEventListeneraddScreenEventListener(com.ibm.ctg.epi.ScreenEventListener)
public void fireEvent()
addScreenEventListener(com.ibm.ctg.epi.ScreenEventListener)
public void terminalConnected(TerminalEvent evt)
terminalConnected
in interface TerminalEventListener
evt
- the EPI event sentpublic void terminalDisconnected(TerminalEvent evt)
terminal
variable to null,
and sends the screenUnhandled event to any listeners.
terminalDisconnected
in interface TerminalEventListener
evt
- the EPI event sentpublic void exceptionOccurred(TerminalEvent evt)
exceptionOccurred
in interface TerminalEventListener
evt
- the EPI event sentpublic boolean isHandling()
public void setAID(AID aid)
aid
- the AIDpublic void send()
public void setCursor(int row, int col)
row
- the cursor rowcol
- the cursor columnpublic AID getAID()
public int getCursorRow()
public int getCursorColumn()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the action eventpublic void exitScreen()
|
©Copyright IBM Corp. 1994, 2012 Legal |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |