APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.javafx.webkit

public final Class KeyCodeMap

extends Object
Class Inheritance
Imports
com.sun.webkit.event.WCKeyEvent, java.util.Map, javafx.scene.input.KeyCode

The static mapping from JavaFX KeyCodes to Windows virtual key codes and WebKit key identifiers. For why there is a need to map to Windows virtual key codes and WebKit key identifiers, see Source/WebCore/platform/PlatformKeyboardEvent.h, Source/WebKit/chromium/public/WebInputEvent.h (WebKeyboardEvent::windowsKeyCode and WebKeyboardEvent::nativeKeyCode), and Source/WebCore/platform/chromium/KeyboardCodes.h.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
KeyCodeMap.Entry

The information associated with a KeyCode.

Field Summary

Modifier and TypeField and Description
private static final Map<KeyCode, KeyCodeMap.Entry>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Map.Entry<KeyCode, KeyCodeMap.Entry>
entry(KeyCode keyCode, int windowsVirtualKeyCode, String keyIdentifier)

private static Map.Entry<KeyCode, KeyCodeMap.Entry>
entry(KeyCode keyCode, int windowsVirtualKeyCode)

public static KeyCodeMap.Entry
lookup(KeyCode keyCode)

Returns an Entry object containing the Windows virtual key code and the key identifier associated with a given KeyCode.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAPback to summary
private static final Map<KeyCode, KeyCodeMap.Entry> MAP

Constructor Detail

KeyCodeMapback to summary
public KeyCodeMap()

Method Detail

entryback to summary
private static Map.Entry<KeyCode, KeyCodeMap.Entry> entry(KeyCode keyCode, int windowsVirtualKeyCode, String keyIdentifier)
entryback to summary
private static Map.Entry<KeyCode, KeyCodeMap.Entry> entry(KeyCode keyCode, int windowsVirtualKeyCode)
lookupback to summary
public static KeyCodeMap.Entry lookup(KeyCode keyCode)

Returns an Entry object containing the Windows virtual key code and the key identifier associated with a given KeyCode.

com.sun.javafx.webkit back to summary

public final Class KeyCodeMap.Entry

extends Object
Class Inheritance

The information associated with a KeyCode.

Field Summary

Modifier and TypeField and Description
private final String
private final int

Constructor Summary

AccessConstructor and Description
private
Entry(int windowsVirtualKeyCode, String keyIdentifier)

Method Summary

Modifier and TypeMethod and Description
public String
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyIdentifierback to summary
private final String keyIdentifier
windowsVirtualKeyCodeback to summary
private final int windowsVirtualKeyCode

Constructor Detail

Entryback to summary
private Entry(int windowsVirtualKeyCode, String keyIdentifier)

Method Detail

getKeyIdentifierback to summary
public String getKeyIdentifier()
getWindowsVirtualKeyCodeback to summary
public int getWindowsVirtualKeyCode()