|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.ibm.eNetwork.HOD.common.gui.HPanel | +--com.ibm.eNetwork.beans.HOD.HODPanelBean | +--com.ibm.eNetwork.beans.HOD.KeyRemap
The primary purpose of KeyRemap
is to listen to KeyEvents (keystrokes)
fired by the Terminal
bean or Screen bean,
remap those keystrokes to SendKey Mnemonics,
generate a SendKeyEvent
containing those SendKey Mnemonics, and fire that SendKeyEvent back to
the Terminal bean or Screen bean for processing.
KeyRemap provides a Graphical User Interface (GUI) to control the process of remapping keystrokes to functions. Through the GUI you can view the mappings of keystrokes to functions, reassign which keystrokes get remapped to which functions, restore the default mappings for keystrokes, and search the current mappings for a specified keystroke.
KeyRemap also provides an API which supports all the operations performed by the GUI as well as additional advanced operations. The API allows you to define and add custom functions to KeyRemap. Once a custom function is added to KeyRemap both the API and GUI can interact with the custom function assigning keystrokes to it. KeyRemap uses the ActionListener interface of Java to notify interested code when a custom function has been activated.
KeyRemap additionally provides support for controlling the repetition of keys. KeyRemap normally processes keys when they are pressed. When a key is pressed and held, KeyRemap will continue to process the held key over and over until the key is released. You can designate a key to be processed only when it is released by adding the key as a non-repeating key. Both the API and GUI support this operation.
KeyRemap organizes functions into categories. Each category maintains a set of ActionListeners registered to receive ActionEvents from that category. You can register to receive ActionEvents from a specific category by calling the addActionListener(String category, ActionListener listener) method. When a keystroke remaps to a function in that category, an ActionEvent is generated and fired to registered ActionListeners for that category. The getActionCommand() method of ActionEvent will return the function of the remapped keystroke. You can also register to receive ActionEvents from all categories by calling the addActionListener(ActionListener listener) method.
All of the default functions of KeyRemap are assigned to one of two predefined function categories, named by the variables HOST_FUNCTIONS and CHARACTERS. The HOST_FUNCTIONS category contains only SendKey Mnemonics, which are documented in Appendix A. SendKey Mnemonics of the Host Access Class Library Reference. You can add custom functions to the HOST_FUNCTIONS category but they must conform to the SendKey interface. The CHARACTERS category contains special characters that may or may not appear on a keyboard. You can add additional characters to the CHARACTERS category but they must also conform to the SendKey interface. When a keystroke remaps to a function in one of these two categories, a SendKeyEvent in addition to an ActionEvent is generated and fired to registered SendKeyListeners. Only the HOST_FUNCTIONS and CHARACTERS categories cause an ActionEvent/SendKeyEvent pair to be fired from KeyRemap.
KeyRemap is sensitive to both the session type and codepage. It remaps different sets of default functions for 3270, 5250, VT, and CICS sessions and for single-byte, double-byte, bi-directional, Thai, Hindi, and Euro codepages.
The KeyRemap Bean has a set of public properties that can be accessed through the standard bean accessor methods. For example, KeyRemap has a sessionType property that affects the set of functions to which keystrokes can be remapped. SessionType is a read/write property and correspondingly has a getSessionType() method and a setSessionType() method that provide access to the property.
The properties can also be initialized when the bean is constructed using a Properties object with the appropriate keyword/value pairs. In the Properties object, the keyword for properties is the same as the property name. For example, the keyword for the sessionType property is "sessionType"--the constant, SESSION_TYPE, is provided for convenience.
Property Name | Type | Default | Access |
---|---|---|---|
sessionType | enum* | ECLSession.SESSION_TYPE_3270_STR | read/write |
codePage | enum* | ECLSession.SESSION_CODE_PAGE_US | read/write |
autoApply | boolean | true | read/write |
Event Type | Fired To | Event Handler Method |
---|---|---|
ActionEvent - Fired when a keystroke remaps to a function. | Any ActionListener | actionPerformed(ActionEvent) |
SendKeyEvent - Fired when a keystroke remaps to a function within the HOST_FUNCTIONS or CHARACTERS category. Also fired when a keystroke produces a printable character and does not remap to any function. | Terminal, Screen, Session | sendKeys(SendKeyEvent) |
PropertyChangeEvent - Fired after a bound property of the Bean is changed. | Any PropertyChangeListener | propertyChange(propertyChangeEvent) |
Vetoable PropertyChangeEvent - Fired before a vetoable property of the Bean is changed. | Any VetoableChangeListener | vetoableChange(PropertyChangeEvent) |
Event Type | Fired From | Event Handler Method |
---|---|---|
KeyEvent - Standard Java key event fired when keystrokes are typed while a Component has focus. | Terminal, Screen | keyPressed(KeyEvent), keyTyped(KeyEvent), keyReleased(KeyEvent) |
PropertyChangeEvent - Fired when a property of the source Bean is changed. Because KeyRemap is sensitive to the sessionType and codePage properties, it can listen to Property change events of other Beans and sync its own properties to correspond to those of the source Bean. | Terminal, Session | propertyChange(propertyChangeEvent) |
The alternative library was compiled with JDK 1.1.8. The result is a slightly different derivation, illustrated in this following class inheritance fragment.
| +--java.awt.Container | +--java.awt.Panel | +--com.ibm.eNetwork.HOD.common.gui.HPanel | +--
Inner classes inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static java.lang.String |
AUTO_APPLY
autoApply property keyword |
static java.lang.String |
CHARACTERS
Characters category definition string |
static java.lang.String |
CODE_PAGE
codePage property keyword |
static java.lang.String |
FIELD_SEPARATOR
Field separator character |
static java.lang.String |
HOST_FUNCTIONS
Host Functions category definition string |
static java.lang.String |
SESSION_TYPE
sessionType property keyword |
Fields inherited from class com.ibm.eNetwork.beans.HOD.HODPanelBean |
---|
BEAN_VERSION_STRING, TRACE_LEVEL, TRACE_MAXIMUM, TRACE_MINIMUM, TRACE_NONE, TRACE_NORMAL |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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.ibm.eNetwork.HOD.common.HODConstants |
---|
DEFAULT_WIN_FONT, HOD_ICON_EVENT, HOD_MSG_FILE, HOD_RAS_COMPID_ADVMACRO, HOD_RAS_COMPID_ASSOC_PRT, HOD_RAS_COMPID_BLINKREMAP, HOD_RAS_COMPID_CODEPAGE, HOD_RAS_COMPID_COLORREMAP, HOD_RAS_COMPID_CONFIG, HOD_RAS_COMPID_FILETRANSFER, HOD_RAS_COMPID_FTP_SCREEN, HOD_RAS_COMPID_FTP_SESSION, HOD_RAS_COMPID_FTP_TERMINAL, HOD_RAS_COMPID_FUDOMA, HOD_RAS_COMPID_HOD_API, HOD_RAS_COMPID_IMPEXP, HOD_RAS_COMPID_JNILOAD, HOD_RAS_COMPID_KEYPAD, HOD_RAS_COMPID_KEYREMAP, HOD_RAS_COMPID_MACRO, HOD_RAS_COMPID_MACROMANGR, HOD_RAS_COMPID_PRT_TERMINAL, HOD_RAS_COMPID_SCREEN, HOD_RAS_COMPID_SESSION, HOD_RAS_COMPID_SESSION_MGR, HOD_RAS_COMPID_SLP, HOD_RAS_COMPID_TERMINAL, HOD_RAS_COMPID_ZIPPRINT, HOD_RAS_FUNC_NAME, HOD_START_UP, HOD_TRANSFER_FILE_INFO, MOUSE_DOUBLE_CLICK_THRESHOLD, XFER_ASCII_GET_OPTIONS, XFER_ASCII_GET_OPTIONS_DEFAULT, XFER_ASCII_PUT_OPTIONS, XFER_ASCII_PUT_OPTIONS_DEFAULT, XFER_BINARY_GET_OPTIONS, XFER_BINARY_GET_OPTIONS_DEFAULT, XFER_BINARY_PUT_OPTIONS, XFER_BINARY_PUT_OPTIONS_DEFAULT, XFER_DEFAULT_OPTIONS, XFER_FILETYPE_DTA, XFER_FILETYPE_SAVF, XFER_FILETYPE_SRC, XFER_HOST_TYPE, XFER_HOST_TYPE_CICS, XFER_HOST_TYPE_CMS, XFER_HOST_TYPE_DEFAULT, XFER_HOST_TYPE_OS400, XFER_HOST_TYPE_TSO, XFER_PACKET_SIZE, XFER_PACKET_SIZE_DEFAULT, XFER_TIME_OUT_VALUE, XFER_TIME_OUT_VALUE_DEFAULT, XFER_TRANSFER_MODE, XFER_TRANSFER_MODE_ASCII, XFER_TRANSFER_MODE_BINARY, XFER_TRANSFER_MODE_DEFAULT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
KeyRemap()
Constructor that uses the default values for all properties. |
|
KeyRemap(java.util.Properties properties)
Constructor that takes a Properties object containing the initial property settings. |
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Registers the specified ActionListener to receive ActionEvents from all categories. |
void |
addActionListener(java.lang.String category,
java.awt.event.ActionListener listener)
Registers the specified ActionListener to receive ActionEvents from the specified category. |
void |
addButton(java.awt.Component b,
int panel)
Deprecated. |
void |
addButton(com.ibm.eNetwork.HOD.common.gui.HButton button)
Adds a user defined button to the bottom row of the Graphical User Interface. |
void |
addFunction(java.lang.String function,
java.lang.String codePageFlags,
java.lang.String category,
java.lang.String description,
boolean isDefault)
Adds a Function. |
void |
addMapping(java.lang.String keystroke,
java.lang.String function,
boolean isDefault)
Adds a mapping. |
void |
addNonRepeatingKey(int keyCode,
boolean isDefault)
Adds a non-repeating key. |
void |
addSendKeyListener(SendKeyListener l)
Registers the specified SendKeyListener to receive SendKeyEvents. |
void |
apply()
Applies all non-default changes. |
void |
cancel()
Cancels all non-default changes made since the apply() method was last invoked. |
static java.util.Properties |
defaults()
Obtains a Properties object containing the default properties for this Bean. |
java.lang.String |
getCategory(java.lang.String function)
Obtains the Category the specified function belongs to. |
java.lang.String |
getCodePage()
Accessor method for the codePage property. |
java.lang.String |
getCodePageFlags()
Obtains the current Codepage Flags. |
com.ibm.eNetwork.beans.HOD.keyremap.DefaultKeyboardRemap |
getDefaultKeyboardRemap()
Obtains the default keyboard remap |
java.lang.String |
getDescription(java.lang.String function)
Obtains the Description associated with the specified function. |
static java.lang.String |
getKeystroke(java.awt.event.KeyEvent evt)
Obtains the Keystroke associated with the specified KeyEvent. |
java.lang.String |
getMapping(java.lang.String keystroke)
Obtains the function that the specified Keystroke remaps too. |
java.util.Properties |
getProperties()
Obtains a Properties object containing the current properties of the Bean. |
int |
getSelectedPanelIndex()
Obtains the index of the currently displayed panel. |
java.lang.String |
getSessionType()
Accessor method for the sessionType property. |
java.lang.String |
getTraceName()
Obtains a trace identifier for this bean |
boolean |
isAutoApply()
Accessor method for the autoApply property. |
boolean |
isDefaultFunction(java.lang.String function)
Determines if the specified function is a default function. |
boolean |
isDefaultMapping(java.lang.String keystroke)
Determines if the specified Keystroke is currently mapped to its default. |
boolean |
isDefaultNonRepeatingKey(int keyCode)
Determines if the specified key is a default non-repeating key. |
boolean |
isNonRepeatingKey(int keyCode)
Determines if the specified key is a non-repeating key. |
void |
keyPressed(java.awt.event.KeyEvent evt)
KeyListener interface method. |
void |
keyReleased(java.awt.event.KeyEvent evt)
KeyListener interface method. |
void |
keyTyped(java.awt.event.KeyEvent evt)
KeyListener interface method. |
java.util.Enumeration |
listCategories()
Lists the categories currently defined in KeyRemap. |
java.util.Enumeration |
listCodePages()
Lists valid codePages for the current session type. |
static java.util.Enumeration |
listCodePages(java.lang.String sessionType)
Lists valid codePages for the specified session type. |
java.util.Enumeration |
listFunctions()
Lists the functions currently available in KeyRemap. |
java.util.Enumeration |
listMappings(java.lang.String function)
Lists the Keystrokes that remap to the specified function. |
java.util.Enumeration |
listNonRepeatingKeys()
Lists the non-repeating keys added to KeyRemap. |
java.util.Enumeration |
listSessionTypes()
Lists the valid sessionTypes. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
PropertyChangeListener interface method. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Unregisters the specified ActionListener so that it no longer receives ActionEvents from any category. |
void |
removeButton(java.awt.Component b,
int panel)
Deprecated. |
void |
removeButton(com.ibm.eNetwork.HOD.common.gui.HButton button)
Removes a user defined button from the bottom row of the Graphical User Interface |
void |
removeFunction(java.lang.String function)
Removes a function. |
void |
removeMapping(java.lang.String keystroke)
Removes a mapping. |
void |
removeNonRepeatingKey(int keyCode)
Removes a non-repeating key. |
void |
removeSendKeyListener(SendKeyListener l)
Unregisters the specified SendKeyListener so that it no longer receives SendKeyEvents. |
void |
requestFocus()
Transfers focus to the bean. |
void |
reset()
Resets KeyRemap to default functions, mappings, and non-repeating keys. |
void |
resetMapping(java.lang.String keystroke)
Resets the specified Keystroke to its default mapping. |
void |
setAutoApply(boolean autoApply)
Sets the autoApply property. |
void |
setCodePage(java.lang.String codePage)
Sets the codePage property. |
void |
setParentFrame(java.awt.Window parentFrame)
Set the parent Window of KeyRemap to update the reference for centering subsequent windows. |
void |
setProperties(java.util.Properties properties)
Sets the Bean properties using a Properties object containing the appropriate keyword/value pairs. |
void |
setSessionType(java.lang.String type)
Sets the sessionType property. |
void |
setTraceLevel(int traceLevel)
Sets the current tracing level for this object |
Methods inherited from class com.ibm.eNetwork.beans.HOD.HODPanelBean |
---|
addPropertyChangeListener,
addTraceListener,
addVetoableChangeListener,
clone,
dispose,
getComponent,
getFunction,
getTraceLevel,
readExternal,
removePropertyChangeListener,
removeTraceListener,
removeVetoableChangeListener,
toString,
writeExternal |
Methods inherited from class com.ibm.eNetwork.HOD.common.gui.HPanel |
---|
add, createAssociation, paintComponent, setAccessDesc, setAccessibleName |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf |
---|
dispose |
Field Detail |
public static final java.lang.String SESSION_TYPE
public static final java.lang.String CODE_PAGE
public static final java.lang.String AUTO_APPLY
public static final java.lang.String HOST_FUNCTIONS
public static final java.lang.String CHARACTERS
public static final java.lang.String FIELD_SEPARATOR
getProperties()
Constructor Detail |
public KeyRemap()
public KeyRemap(java.util.Properties properties) throws java.beans.PropertyVetoException
properties
- Properties for the Bean.java.beans.PropertyVetoException
- Thrown if an incorrect property value
is given.Method Detail |
public void setParentFrame(java.awt.Window parentFrame)
parentFrame
- the parent Windowpublic void addButton(java.awt.Component b, int panel)
addButton(HButton)
public void addButton(com.ibm.eNetwork.HOD.common.gui.HButton button)
button
- HButton to be added.removeButton(HButton)
public void removeButton(java.awt.Component b, int panel)
removeButton(HButton)
public void removeButton(com.ibm.eNetwork.HOD.common.gui.HButton button)
button
- HButton to be removed.addButton(HButton)
public void setProperties(java.util.Properties properties) throws java.beans.PropertyVetoException
setProperties
in interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf
setProperties
in class HODPanelBean
properties
- Properties for the Bean.java.beans.PropertyVetoException
- Thrown if an incorrect property value
is given.getProperties()
public java.util.Properties getProperties()
Key | Value | Effect |
---|---|---|
| Codepage Flags | Category | Description | Function | Adds a non-default function |
XF:Function | Function | Removes a default function |
TKeycode | Keycode | Adds a non-default non-repeating key |
XT:Keycode | Keycode | Removes a default non-repeating key |
Keystroke | Function | Adds a non-default mapping |
XM:Keystroke | Keystroke | Removes a default mapping |
Note: The FIELD_SEPARATOR character is used to delimit the Codepage Flags, Category, and Description fields.
Codepage Flags
The Codepage Flags field specifies the codepages which the function is valid for.
If the codepage of the KeyRemap bean does not match any of the codepage flags the function
will not be added. If Codepage Flags field is blank the function will be added
for all codepages. You can include more than one codepage flag. Multiple codepage flags
are valid.
Example. BD = Bidi or DBCD codepages.
Flag | Codepages |
---|---|
All codepages | |
Bidi codepages | |
DBCS codepages | |
Thai codepages | |
Hindi codepages | |
Euro codepages |
Category
The Category field specifies the category which the function will be added to.
If the Category field is blank the function will either be added to the
HOST_FUNCTIONS category or the CHARACTERS category. If the Function is one
character in length the function will be added to the CHARACTERS category otherwise
it will be added to the HOST_FUNCTIONS category.
Description
The Description field specifies the text that will appear in the
Graphical User Interface for this function. If the Description
field is blank the Function will appear in the Graphical User
Interface as is.
Function
The Function field can start with the FIELD_SEPARATOR character , or the "[" character.
If the Function field starts with FIELD_SEPARATOR all characters after the first
FIELD_SEPARATOR character are considered part of the function. If the Function field
starts with the "[" character, all of the characters including the first "[" are considered part of
the function. If the Function function does not start with either the FIELD_SEPARATOR
character or the "[" character then the Function must be a String representation of a base
10 integer. The Function is then converted into a single character based on the Unicode point
represented by that integer.
Keycode
The Keycode field specifies the Java keycode obtained by invoking the getKeyCode()
method of a KeyEvent. Java keycodes can be found in the JDK documentation
under the KeyEvent class.
Keystroke
The Keystroke field is defined as Modifiers + Keycode.
Modifiers is a single character that represents the state of the modifier keys.
The Keycode is the same as described above.
The table below lists valid values for the Modifiers character:
Modifiers character | Description |
---|---|
base state, no modifiers | |
Ctrl modifier | |
Alt modifier | |
Shift modifier | |
Ctrl+Shift modifier | |
Alt+Shift modifier | |
Ctrl+Alt modifier | |
Ctrl+Alt+Shift modifier |
Examples:
Key | Value | Effect |
---|---|---|
||host|Logon | |username[tab]password[enter] | Adds a function with the description "Logon" to the HOST_FUNCTIONS category for all codepages |
|B|host| | [bidilayer] | Adds a function with the description "[bidilayer]" to the HOST_FUNCTIONS category for BiDi codepages only |
|||Exclamation Mark | 33 | Adds a function with the description "Exclamation Mark" to the CHARACTERS category for all codepages |
||char|Exclamation Mark | |! | Adds a function with the description "Exclamation Mark" to the CHARACTERS category for all codepages. |
XF:[bidilayer] | [bidilayer] | Removes the [bidilayer] function |
T10 | 10 | Adds the Enter key to the non-repeating key list |
XT:65 | 65 | Removes the A key from the non-repeating key list |
A65 | [altcsr] | Maps the Alt-A key combination to the function [altcsr] |
XM:B10 | B10 | Unmaps the Enter key |
B112 | |username[tab]password[enter] | Maps the F1 key to the "Logon" function added above |
C113 | 33 | Maps the Ctl-F2 key combination to the "Exclamation Mark" function added above |
getProperties
in interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf
getProperties
in class HODPanelBean
setProperties(java.util.Properties)
public static java.util.Properties defaults()
setProperties(java.util.Properties)
,
getProperties()
public void setSessionType(java.lang.String type) throws java.beans.PropertyVetoException
type
- The session type to use.java.beans.PropertyVetoException
- Thrown if an incorrect parameter is
specified or the vetoable PropertyChangeEvent
is vetoed.getSessionType()
,
listSessionTypes()
public java.lang.String getSessionType()
setSessionType(java.lang.String)
,
listSessionTypes()
public java.util.Enumeration listSessionTypes()
setSessionType(java.lang.String)
,
getSessionType()
public void setCodePage(java.lang.String codePage) throws java.beans.PropertyVetoException
codePage
- The code page to use.java.beans.PropertyVetoException
- Thrown if an incorrect parameter is
specified or the vetoable PropertyChangeEvent
is vetoed.getCodePage()
,
listCodePages()
,
listCodePages(java.lang.String)
public java.lang.String getCodePage()
setCodePage(java.lang.String)
,
listCodePages()
,
listCodePages(java.lang.String)
public java.util.Enumeration listCodePages()
setCodePage(java.lang.String)
,
getCodePage()
public static java.util.Enumeration listCodePages(java.lang.String sessionType)
sessionType
- The session type for which to generate the list.setCodePage(java.lang.String)
,
getCodePage()
public void setAutoApply(boolean autoApply) throws java.beans.PropertyVetoException
autoApply
- The value for the autoApply property.java.beans.PropertyVetoException
- Thrown if the PropertyChangeEvent is vetoed.isAutoApply()
,
apply()
public boolean isAutoApply()
setAutoApply(boolean)
,
apply()
public void setTraceLevel(int traceLevel) throws java.beans.PropertyVetoException
setTraceLevel
in class HODPanelBean
traceLevel
- One of the trace level constants.java.beans.PropertyVetoException
- Thrown if the PropertyChangeEvent is vetoed.public void addSendKeyListener(SendKeyListener l)
addSendKeyListener
in interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf
listener
- The SendKeyListener to be added.removeSendKeyListener(com.ibm.eNetwork.beans.HOD.event.SendKeyListener)
public void removeSendKeyListener(SendKeyListener l)
listener
- The SendKeyListener to be removed.addSendKeyListener(com.ibm.eNetwork.beans.HOD.event.SendKeyListener)
public void addActionListener(java.awt.event.ActionListener listener)
listener
- The ActionListener to be added.addActionListener(java.lang.String, java.awt.event.ActionListener)
,
removeActionListener(java.awt.event.ActionListener)
public void addActionListener(java.lang.String category, java.awt.event.ActionListener listener)
category
- The category to receive ActionEvents from.listener
- The ActionListener to be added.addActionListener(java.awt.event.ActionListener)
,
removeActionListener(java.awt.event.ActionListener)
public void removeActionListener(java.awt.event.ActionListener listener)
listener
- The ActionListener to be removed.addActionListener(java.awt.event.ActionListener)
,
addActionListener(java.lang.String, java.awt.event.ActionListener)
public void addNonRepeatingKey(int keyCode, boolean isDefault)
keyCode
- The key-code for the non-repeating key to be added.isDefault
- Specifies whether the non-repeating key is a default
non-repeating key.removeNonRepeatingKey(int)
,
isNonRepeatingKey(int)
,
isDefaultNonRepeatingKey(int)
,
listNonRepeatingKeys()
public void removeNonRepeatingKey(int keyCode)
keyCode
- The key-code for the non-repeating key to be removed.addNonRepeatingKey(int, boolean)
,
isNonRepeatingKey(int)
,
isDefaultNonRepeatingKey(int)
,
listNonRepeatingKeys()
public boolean isNonRepeatingKey(int keyCode)
keyCode
- The key-code for the key to be checked.addNonRepeatingKey(int, boolean)
,
removeNonRepeatingKey(int)
,
isNonRepeatingKey(int)
,
isDefaultNonRepeatingKey(int)
,
listNonRepeatingKeys()
public boolean isDefaultNonRepeatingKey(int keyCode)
keyCode
- The key-code for the key to be checked.addNonRepeatingKey(int, boolean)
,
removeNonRepeatingKey(int)
,
isNonRepeatingKey(int)
,
isDefaultNonRepeatingKey(int)
,
listNonRepeatingKeys()
public java.util.Enumeration listNonRepeatingKeys()
addNonRepeatingKey(int, boolean)
,
removeNonRepeatingKey(int)
,
isNonRepeatingKey(int)
,
isDefaultNonRepeatingKey(int)
,
listNonRepeatingKeys()
public void addFunction(java.lang.String function, java.lang.String codePageFlags, java.lang.String category, java.lang.String description, boolean isDefault)
function
- Any String. Note: The function is not
processed as described above in Function. The
function is exactly the specified string.codePageFlags
- The Codepage Flags for the specified function.category
- The Category for the specified function.description
- The Description for the specified function.isDefault
- Specifies whether the function is a default function.removeFunction(java.lang.String)
,
listFunctions()
,
getDescription(java.lang.String)
,
getCategory(java.lang.String)
,
getCodePageFlags()
public void removeFunction(java.lang.String function)
function
- The function to be removed.addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
listFunctions()
public java.util.Enumeration listFunctions()
addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
removeFunction(java.lang.String)
public java.lang.String getDescription(java.lang.String function)
function
- The specified function.addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
public java.lang.String getCategory(java.lang.String function)
function
- The specified function.addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
listCategories()
public java.lang.String getCodePageFlags()
addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
public boolean isDefaultFunction(java.lang.String function)
function
- The specified function.addFunction(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
listCategories()
public java.util.Enumeration listCategories()
getCategory(java.lang.String)
public void addMapping(java.lang.String keystroke, java.lang.String function, boolean isDefault)
keystroke
- The Keystroke to be remapped.function
- The function the Keystroke is remapped to.isDefault
- Specifies whether this mapping is a default mapping.removeMapping(java.lang.String)
,
getMapping(java.lang.String)
,
listMappings(java.lang.String)
,
resetMapping(java.lang.String)
,
isDefaultMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public void removeMapping(java.lang.String keystroke)
keystroke
- The Keystroke to be unmapped.addMapping(java.lang.String, java.lang.String, boolean)
,
getMapping(java.lang.String)
,
listMappings(java.lang.String)
,
resetMapping(java.lang.String)
,
isDefaultMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public java.lang.String getMapping(java.lang.String keystroke)
keystroke
- The key pressed.addMapping(java.lang.String, java.lang.String, boolean)
,
removeMapping(java.lang.String)
,
listMappings(java.lang.String)
,
resetMapping(java.lang.String)
,
isDefaultMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public java.util.Enumeration listMappings(java.lang.String function)
function
- The specified function.addMapping(java.lang.String, java.lang.String, boolean)
,
removeMapping(java.lang.String)
,
getMapping(java.lang.String)
,
resetMapping(java.lang.String)
,
isDefaultMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public void resetMapping(java.lang.String keystroke)
keystroke
- The specified Keystroke.addMapping(java.lang.String, java.lang.String, boolean)
,
removeMapping(java.lang.String)
,
getMapping(java.lang.String)
,
listMappings(java.lang.String)
,
isDefaultMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public boolean isDefaultMapping(java.lang.String keystroke)
function
- The specified Keystroke.addMapping(java.lang.String, java.lang.String, boolean)
,
removeMapping(java.lang.String)
,
getMapping(java.lang.String)
,
listMappings(java.lang.String)
,
resetMapping(java.lang.String)
,
getKeystroke(java.awt.event.KeyEvent)
public static java.lang.String getKeystroke(java.awt.event.KeyEvent evt)
evt
- A KeyEvent.addMapping(java.lang.String, java.lang.String, boolean)
,
removeMapping(java.lang.String)
,
getMapping(java.lang.String)
,
resetMapping(java.lang.String)
,
isDefaultMapping(java.lang.String)
public void apply()
cancel()
,
reset()
,
setAutoApply(boolean)
,
isAutoApply()
,
getProperties()
public void cancel()
apply()
,
reset()
public void reset()
reset
in interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf
apply()
,
cancel()
,
getProperties()
public void requestFocus()
requestFocus
in interface com.ibm.eNetwork.beans.HOD.intf.KeyRemapIntf
requestFocus
in class javax.swing.JComponent
public int getSelectedPanelIndex()
public java.lang.String getTraceName()
getTraceName
in class HODPanelBean
public com.ibm.eNetwork.beans.HOD.keyremap.DefaultKeyboardRemap getDefaultKeyboardRemap()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in class HODPanelBean
com.ibm.eNetwork.beans.HOD.HODPanelBean
evt
- the PropertyChangeEvent for the property that was changed.public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |