junit.extensions.jfcunit.keyboard
Interface KeyMapping

All Known Implementing Classes:
AbstractKeyMapping

public interface KeyMapping

Interface for implementing character to keyboard code mappings.

Author:
Vijay Aravamudhan : ThoughtWorks Inc.

Method Summary
 JFCKeyStroke[] getKeyStrokes(char c)
          Get the key strokes for a character.
 JFCKeyStroke[] getKeyStrokes(int keyCode)
          Get the key strokes for the key code.
 

Method Detail

getKeyStrokes

public JFCKeyStroke[] getKeyStrokes(char c)
Get the key strokes for a character.

Parameters:
c - The character to be coded.
Returns:
Array of key strokes.

getKeyStrokes

public JFCKeyStroke[] getKeyStrokes(int keyCode)
Get the key strokes for the key code.

Parameters:
keyCode - Key code to return the strokes for.
Returns:
Array of key strokes.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999