|
CICS® Transaction Gateway Programming Reference V3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ctg.epi.ScreenHandler
This class can be used as a base class for screen handlers. It implements some useful screen handler behaviour:
Field Summary | |
protected AID |
aid
the screen AID |
protected int |
cursorCol
the screen cursor column |
protected int |
cursorRow
the screen cursor row |
protected boolean |
handling
true if the ScreenHandler is handling the current screen |
protected java.util.Vector |
listeners
Vector of ScreenEventListeners to be notified when an event occurs |
protected TerminalSession |
terminal
the EPITerminal |
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. |
protected void |
setHandling(boolean b)
Sets the screen handler state and fires events to listeners if the state has changed. |
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 |
|
Field Detail |
protected transient boolean handling
protected transient java.util.Vector listeners
protected transient TerminalSession terminal
protected AID aid
protected int cursorRow
protected int cursorCol
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)
evt
- the EPI event sentpublic void terminalDisconnected(TerminalEvent evt)
terminal
variable to null,
and sends the screenUnhandled event to any listeners.evt
- the EPI event sentpublic void exceptionOccurred(TerminalEvent evt)
evt
- the EPI event sentpublic boolean isHandling()
protected void setHandling(boolean b)
b
- the new handling statuspublic 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)
evt
- the action eventpublic void exitScreen()
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |