Back to index

wims  3.65+svn20090927
Static Package Functions | Static Package Attributes
rene.gui.KeyDictionary Class Reference

This servers as a dictionary to make sure that the key translation will work on localized systems too. More...

Collaboration diagram for rene.gui.KeyDictionary:
Collaboration graph
[legend]

List of all members.

Static Package Functions

 [static initializer]
static void put (int code, String name)
static String translate (int code)

Static Package Attributes

static Hashtable H

Detailed Description

This servers as a dictionary to make sure that the key translation will work on localized systems too.

The key recognition depends on the text translation in KeyEvent. For user defined keyboards this will not matter, but this class makes sure that it does not matter for the default keyboard.

Definition at line 14 of file KeyDictionary.java.


Member Function Documentation

rene.gui.KeyDictionary.[static initializer] ( ) [inline, static, package]
static void rene.gui.KeyDictionary.put ( int  code,
String  name 
) [inline, static, package]

Definition at line 45 of file KeyDictionary.java.

       {      H.put(new Integer(code),name);
       }
static String rene.gui.KeyDictionary.translate ( int  code) [inline, static, package]

Definition at line 48 of file KeyDictionary.java.

       {      Object o=H.get(new Integer(code));
              if (o!=null) return (String)o;
              return KeyEvent.getKeyText(code);
       }

Here is the caller graph for this function:


Member Data Documentation

Hashtable rene.gui.KeyDictionary.H [static, package]

Definition at line 15 of file KeyDictionary.java.


The documentation for this class was generated from the following file: