public abstract class ScreenHandler extends java.lang.Object implements TerminalEventListener, java.io.Serializable, java.awt.event.ActionListener
Constructor and Description |
---|
ScreenHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleScreen
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()
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()