org.havi.ui.event
Class HKeyCapabilities

java.lang.Object
  extended byorg.havi.ui.event.HKeyCapabilities
Direct Known Subclasses:
HRcCapabilities

public class HKeyCapabilities
extends java.lang.Object

This class is used to describe the (basic) keyboard capabilities of the platform.

This class is not intended to be constructed by applications.


The parameters to the constructors are as follows, in cases where parameters are not used, then the constructor should use the default values.

Default parameter values exposed in the constructors

ParameterDescriptionDefault value Set methodGet method
None.

Default parameter values not exposed in the constructors

DescriptionDefault valueSet method Get method
None.


Constructor Summary
protected HKeyCapabilities()
          It is not intended that applications should directly construct HKeyCapabilities objects.
 
Method Summary
static boolean getInputDeviceSupported()
          Determine if keyboard input functionality exists in the system.
static boolean isSupported(int keycode)
          Queries whether the system keyboard can generate an event of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HKeyCapabilities

protected HKeyCapabilities()
It is not intended that applications should directly construct HKeyCapabilities objects.

Creates an HKeyCapabilities object. See the class description for details of constructor parameters and default values.

This method is protected to allow the platform to override it in a different package scope.

Method Detail

getInputDeviceSupported

public static boolean getInputDeviceSupported()
Determine if keyboard input functionality exists in the system. Note that this functionality may be provided through a "virtual" keyboard.

Returns:
true if keyboard input functionality exists in the system, false otherwise.
See Also:
HRcCapabilities.getInputDeviceSupported()

isSupported

public static boolean isSupported(int keycode)
Queries whether the system keyboard can generate an event of the given type. Note that this method does not distinguish between key codes which can only be generated via a virtual keyboard and key codes generated as a result of "real" key presses.

Parameters:
keycode - the keycode to query e.g. VK_SPACE
Returns:
true if events with the given key code can (ever) be generated on this system, false otherwise.
See Also:
HRcCapabilities.isSupported(int)