com.jagacy.ui
Class Panel3270

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.jagacy.ui.AbstractPanel
                      extended bycom.jagacy.ui.Panel3270
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, Symbols

public class Panel3270
extends AbstractPanel
implements Symbols

Implements a 3270 JPanel.

Since:
Jagacy 3270 1.4
Author:
Robert M. Preston
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.jagacy.ui.AbstractPanel
CONTROL_FONT, TEXT_FONT
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.jagacy.Symbols
ACUTE_ACCENT_SYMBOL, BROKEN_BAR_SYMBOL, CAPITAL_A_ACUTE_SYMBOL, CAPITAL_A_CIRCUMFLEX_SYMBOL, CAPITAL_A_DIAERESIS_SYMBOL, CAPITAL_A_GRAVE_SYMBOL, CAPITAL_A_RING_ABOVE_SYMBOL, CAPITAL_A_TILDE_SYMBOL, CAPITAL_AE_SYMBOL, CAPITAL_C_CEDILLA_SYMBOL, CAPITAL_E_ACUTE_SYMBOL, CAPITAL_E_CIRCUMFLEX_SYMBOL, CAPITAL_E_DIAERESIS_SYMBOL, CAPITAL_E_GRAVE_SYMBOL, CAPITAL_ETH_SYMBOL, CAPITAL_I_ACUTE_SYMBOL, CAPITAL_I_CIRCUMFLEX_SYMBOL, CAPITAL_I_DIAERESIS_SYMBOL, CAPITAL_I_GRAVE_SYMBOL, CAPITAL_N_TILDE_SYMBOL, CAPITAL_O_ACUTE_SYMBOL, CAPITAL_O_CIRCUMFLEX_SYMBOL, CAPITAL_O_DIAERESIS_SYMBOL, CAPITAL_O_GRAVE_SYMBOL, CAPITAL_O_STROKE_SYMBOL, CAPITAL_O_TILDE_SYMBOL, CAPITAL_THORN_SYMBOL, CAPITAL_U_ACUTE_SYMBOL, CAPITAL_U_CIRCUMFLEX_SYMBOL, CAPITAL_U_DIAERESIS_SYMBOL, CAPITAL_U_GRAVE_SYMBOL, CAPITAL_Y_ACUTE_SYMBOL, CEDILLA_SYMBOL, CENT_SIGN_SYMBOL, CIRCUMFLEX_ACCENT_SYMBOL, COPYRIGHT_SIGN_SYMBOL, CURRENCY_SIGN_SYMBOL, DEGREE_SIGN_SYMBOL, DIAERESIS_SYMBOL, DIVISION_SIGN_SYMBOL, FEMININE_SYMBOL, FIELD_MARK_SYMBOL, FRACTION_ONE_HALF_SYMBOL, FRACTION_ONE_QUARTER_SYMBOL, FRACTION_THREE_QUARTERS_SYMBOL, INVERTED_EXCLAMATION_MARK_SYMBOL, INVERTED_QUESTION_MARK_SYMBOL, LEFT_QUOTE_SYMBOL, MACRON_SYMBOL, MASCULINE_SYMBOL, MICRO_SIGN_SYMBOL, MIDDLE_DOT_SYMBOL, MULTIPLICATION_SIGN_SYMBOL, NO_BREAK_SPACE_SYMBOL, NOT_SIGN_SYMBOL, PILCROW_SIGN_SYMBOL, PLUS_MINUS_SIGN_SYMBOL, POUND_SIGN_SYMBOL, REGISTERED_SIGN_SYMBOL, RIGHT_QUOTE_SYMBOL, SECTION_SIGN_SYMBOL, SMALL_A_ACUTE_SYMBOL, SMALL_A_CIRCUMFLEX_SYMBOL, SMALL_A_DIAERESIS_SYMBOL, SMALL_A_GRAVE_SYMBOL, SMALL_A_RING_ABOVE_SYMBOL, SMALL_A_TILDE_SYMBOL, SMALL_AE_SYMBOL, SMALL_C_CEDILLA_SYMBOL, SMALL_E_ACUTE_SYMBOL, SMALL_E_CIRCUMFLEX_SYMBOL, SMALL_E_DIAERESIS_SYMBOL, SMALL_E_GRAVE_SYMBOL, SMALL_ETH_SYMBOL, SMALL_I_ACUTE_SYMBOL, SMALL_I_CIRCUMFLEX_SYMBOL, SMALL_I_DIAERESIS_SYMBOL, SMALL_I_GRAVE_SYMBOL, SMALL_N_TILDE_SYMBOL, SMALL_O_ACUTE_SYMBOL, SMALL_O_CIRCUMFLEX_SYMBOL, SMALL_O_DIAERESIS_SYMBOL, SMALL_O_GRAVE_SYMBOL, SMALL_O_STROKE_SYMBOL, SMALL_O_TILDE_SYMBOL, SMALL_S_SHARP_SYMBOL, SMALL_THORN_SYMBOL, SMALL_U_ACUTE_SYMBOL, SMALL_U_CIRCUMFLEX_SYMBOL, SMALL_U_DIAERESIS_SYMBOL, SMALL_U_GRAVE_SYMBOL, SMALL_Y_ACUTE_SYMBOL, SMALL_Y_DIAERESIS_SYMBOL, SOFT_HYPHEN_SYMBOL, SUPERSCRIPT1_SYMBOL, SUPERSCRIPT2_SYMBOL, SUPERSCRIPT3_SYMBOL, YEN_SIGN_SYMBOL
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected Panel3270(AbstractSwing frame)
          Creates a Panel3270 object.
 
Method Summary
protected  short getFeature(int row, int column)
          Returns the feature (use with FeatureHelper).
protected  com.jagacy.util.LinkedHashMap getKeyMap()
          Returns a map of keys.
 void processKey(java.awt.event.KeyEvent event)
          Process a key.
protected  void processRightClick(int row, int column)
          Process a right mouse click.
 
Methods inherited from class com.jagacy.ui.AbstractPanel
connect, copy, finalize, getFrame, getSession, isManagingFocus, keyPressed, keyReleased, keyTyped, logScreen, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintComponent, paste, resetSelection, setBlink
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Panel3270

protected Panel3270(AbstractSwing frame)
Creates a Panel3270 object.

Parameters:
frame - An AbstractSwing JFrame.
Method Detail

getFeature

protected short getFeature(int row,
                           int column)
                    throws JagacyException
Description copied from class: AbstractPanel
Returns the feature (use with FeatureHelper).

Specified by:
getFeature in class AbstractPanel
Parameters:
row - The row that has the feature.
column - The column that has the feature.
Returns:
The feature.
Throws:
JagacyException - If an exception occurs.

getKeyMap

protected com.jagacy.util.LinkedHashMap getKeyMap()
Description copied from class: AbstractPanel
Returns a map of keys. The key is is a Keystroke, and the value is a KeyAction. For example:
myKeyMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), new KeyAction(Key.PF1));

Specified by:
getKeyMap in class AbstractPanel
Returns:
The key mapping.

processRightClick

protected void processRightClick(int row,
                                 int column)
Description copied from class: AbstractPanel
Process a right mouse click.

Specified by:
processRightClick in class AbstractPanel
Parameters:
row - Row where the mouse pointer is located.
column - Column where the mouse pointer is located.

processKey

public void processKey(java.awt.event.KeyEvent event)
Description copied from class: AbstractPanel
Process a key.

Specified by:
processKey in class AbstractPanel
Parameters:
event - The KeyEvent.