public class SessionPanel extends JPanel implements RubberBandCanvasIF, SessionConfigListener, SessionListener
| Modifier and Type | Class and Description |
|---|---|
class |
SessionPanel.TNRubberBand
RubberBanding end code
|
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected KeyboardHandler |
keyHandler |
protected SessionPanel.TNRubberBand |
rubberband |
protected SessionConfig |
sesConfig |
protected Session5250 |
session |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SessionPanel(Session5250 session) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionAttributes()
Show the session attributes screen for modification of the attribute/
settings of the session.
|
void |
actionCopy()
Copy and Paste start code
|
void |
actionSpool() |
void |
addEmulatorActionListener(EmulatorActionListener listener)
Add a EmulatorActionListener to the listener list.
|
void |
addSessionJumpListener(SessionJumpListener listener)
Add a SessionJumpListener to the listener list.
|
void |
addSessionListener(SessionListener listener)
Add a SessionListener to the listener list.
|
void |
areaBounded(RubberBand band,
int x1,
int y1,
int x2,
int y2) |
boolean |
canDrawRubberBand(RubberBand b) |
void |
closeDown() |
boolean |
confirmCloseSession(boolean reallyclose) |
void |
connect() |
void |
crossHair()
coming up: Change to be mnemonic key.
|
void |
disconnect() |
void |
doKeyBoundArea(KeyEvent ke,
String last)
This routine allows areas to be bounded by using the keyboard
|
void |
executeMacro(ActionEvent ae) |
void |
executeMacro(String macro) |
protected void |
fireEmulatorAction(int action)
Notify all registered listeners of the onEmulatorAction event.
|
String |
getAllocDeviceName() |
Rect |
getBoundingArea() |
void |
getBoundingArea(Rectangle bounds) |
Rectangle |
getDrawingBounds() |
Graphics |
getDrawingGraphics()
Returns a pointer to the graphics area that we can draw on
|
void |
getFocusForMe() |
String |
getHostName() |
int |
getPosFromView(int x,
int y) |
Screen5250 |
getScreen() |
Session5250 |
getSession() |
String |
getSessionName() |
tnvt |
getVT() |
boolean |
isConnected() |
boolean |
isFocusTraversable() |
boolean |
isHotSpots() |
boolean |
isMacroRunning() |
boolean |
isManagingFocus() |
boolean |
isOnSignOnScreen() |
boolean |
isSessionRecording() |
boolean |
isStopMacroRequested() |
void |
nextSession() |
void |
onConfigChanged(SessionConfigEvent configEvent)
Update the configuration settings
|
void |
onSessionChanged(SessionChangeEvent changeEvent) |
protected void |
paintComponent(Graphics g) |
void |
prevSession() |
void |
printMe()
This routine is responsible for setting up a PrinterJob on this component
and initiating the print session.
|
void |
processKeyEvent(KeyEvent evt) |
void |
removeEmulatorActionListener(EmulatorActionListener listener)
Remove a EmulatorActionListener from the listener list.
|
void |
removeSessionJumpListener(SessionJumpListener listener)
Remove a SessionJumpListener from the listener list.
|
void |
removeSessionListener(SessionListener listener)
Remove a SessionListener from the listener list.
|
void |
sendScreenEMail() |
void |
setMacroRunning(boolean mr) |
protected void |
setRubberBand(SessionPanel.TNRubberBand newValue) |
void |
setRunningHeadless(boolean headless) |
void |
setSession(Session5250 session) |
void |
setStopMacroRequested() |
void |
startDuplicateSession() |
void |
startNewSession() |
protected void |
startRecordingMe() |
protected void |
stopRecordingMe() |
protected Vector<Double> |
sumThem(boolean which)
Sum them
|
void |
toggleConnection()
Toggles connection (connect or disconnect)
|
void |
toggleDebug() |
void |
toggleHotSpots() |
Point |
translateEnd(Point end) |
Point |
translateStart(Point start) |
void |
update(Graphics g) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardActionadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMouseListener, addMouseMotionListener, getBackgroundprotected Session5250 session
protected SessionPanel.TNRubberBand rubberband
protected SessionConfig sesConfig
protected KeyboardHandler keyHandler
public SessionPanel(Session5250 session)
public void setRunningHeadless(boolean headless)
public void processKeyEvent(KeyEvent evt)
processKeyEvent in class JComponentpublic void sendScreenEMail()
public void doKeyBoundArea(KeyEvent ke, String last)
ke - key eventlast - lastpublic boolean confirmCloseSession(boolean reallyclose)
reallyclose - TRUE if session/tab should be closed;
FALSE, if only ask for confirmationpublic void getFocusForMe()
public boolean isFocusTraversable()
isFocusTraversable in class Componentpublic boolean isManagingFocus()
isManagingFocus in class JComponentpublic void onConfigChanged(SessionConfigEvent configEvent)
SessionConfigListeneronConfigChanged in interface SessionConfigListenerconfigEvent - sessionConfigEventpublic tnvt getVT()
public void toggleDebug()
public void startNewSession()
public void startDuplicateSession()
public void toggleConnection()
public void nextSession()
public void prevSession()
protected void fireEmulatorAction(int action)
action - The action to be performed.public boolean isMacroRunning()
public boolean isStopMacroRequested()
public boolean isSessionRecording()
public void setMacroRunning(boolean mr)
public void setStopMacroRequested()
public void closeDown()
public void actionAttributes()
public void actionSpool()
public void executeMacro(ActionEvent ae)
public void executeMacro(String macro)
protected void stopRecordingMe()
protected void startRecordingMe()
public Rectangle getDrawingBounds()
protected void paintComponent(Graphics g)
paintComponent in class JComponentpublic void update(Graphics g)
update in class JComponentpublic boolean isHotSpots()
public void toggleHotSpots()
public void crossHair()
public final void actionCopy()
protected final Vector<Double> sumThem(boolean which)
which - formatting option to usepublic final void printMe()
public void addSessionJumpListener(SessionJumpListener listener)
listener - The SessionListener to be addedpublic void removeSessionJumpListener(SessionJumpListener listener)
listener - The SessionJumpListener to be removedpublic void addEmulatorActionListener(EmulatorActionListener listener)
listener - The EmulatorActionListener to be addedpublic void removeEmulatorActionListener(EmulatorActionListener listener)
listener - The EmulatorActionListener to be removedpublic Graphics getDrawingGraphics()
getDrawingGraphics in interface RubberBandCanvasIFprotected final void setRubberBand(SessionPanel.TNRubberBand newValue)
public Rect getBoundingArea()
public Point translateStart(Point start)
translateStart in interface RubberBandCanvasIFpublic Point translateEnd(Point end)
translateEnd in interface RubberBandCanvasIFpublic int getPosFromView(int x,
int y)
public void getBoundingArea(Rectangle bounds)
public void areaBounded(RubberBand band, int x1, int y1, int x2, int y2)
areaBounded in interface RubberBandCanvasIFpublic boolean canDrawRubberBand(RubberBand b)
canDrawRubberBand in interface RubberBandCanvasIFpublic Session5250 getSession()
public void setSession(Session5250 session)
public boolean isConnected()
public boolean isOnSignOnScreen()
public String getSessionName()
Session5250.getSessionName()public String getAllocDeviceName()
public String getHostName()
public Screen5250 getScreen()
public void connect()
public void disconnect()
public void onSessionChanged(SessionChangeEvent changeEvent)
onSessionChanged in interface SessionListenerpublic void addSessionListener(SessionListener listener)
listener - The SessionListener to be addedpublic void removeSessionListener(SessionListener listener)
listener - The SessionListener to be removedCopyright © 2018. All rights reserved.