CICS® Transaction Gateway Programming Reference V3.1

com.ibm.ctg.epi
Class EPIMonitor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Label
              |
              +--com.ibm.ctg.epi.EPIMonitor

public class EPIMonitor
extends java.awt.Label
implements TerminalEventListener

This class demonstrates a simple way to generate a status message to tell the user what the terminal is doing. If this bean is attached to an EPITerminal as a screen handler, the terminal will send it messages as events occur. This class makes no attempt to handle any of these events - it just displays a status string to describe the state of the terminal.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Fields inherited from class java.awt.Label
alignment, CENTER, LEFT, RIGHT, text
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
EPIMonitor()
          Construct an EPIMonitor
 
Method Summary
 void exceptionOccurred(TerminalEvent evt)
          Handle the terminal exception event
 void handleScreen(TerminalEvent evt)
          Handle the screen arrived event
 void terminalConnected(TerminalEvent evt)
          Handle the terminal connected event
 void terminalDisconnected(TerminalEvent evt)
          Handle the terminal disconnected event
 
Methods inherited from class java.awt.Label
, addNotify, constructComponentName, getAlignment, getText, paramString, setAlignment, setText
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, postsOldMouseEvents, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPIMonitor

public EPIMonitor()
Construct an EPIMonitor
Method Detail

terminalConnected

public void terminalConnected(TerminalEvent evt)
Handle the terminal connected event
Specified by:
terminalConnected in interface TerminalEventListener
Parameters:
the - terminal event

terminalDisconnected

public void terminalDisconnected(TerminalEvent evt)
Handle the terminal disconnected event
Specified by:
terminalDisconnected in interface TerminalEventListener
Parameters:
the - terminal event

handleScreen

public void handleScreen(TerminalEvent evt)
Handle the screen arrived event
Specified by:
handleScreen in interface TerminalEventListener
Parameters:
the - terminal event

exceptionOccurred

public void exceptionOccurred(TerminalEvent evt)
Handle the terminal exception event
Specified by:
exceptionOccurred in interface TerminalEventListener
Parameters:
the - terminal event

© Copyright IBM Corp. 1994, 1999