org.eclipse.ercp.swt.mobile
Class Input

java.lang.Object
  extended byorg.eclipse.ercp.swt.mobile.Input

public class Input
extends java.lang.Object

Instances of this class represent key based input features.

Input device types:
SOFTKEYS
KEYPAD: ITU-T keypad
LIMITED_KEYBOARD
FULL_KEYBOARD

See Also:
MobileDevice, MobileDeviceListener

Field Summary
static int FULL_KEYBOARD
          input feature has hardware keys typical in a full keyboard.
static int KEYPAD
          input feature has hardware keys labeled 0 - 9, *, and #
static int LIMITED_KEYBOARD
          input feature has more hardware keys than a keypad, but fewer than a full keyboard.
static int SOFTKEYS
          input feature has one or more hardware keys whose meaning can be configured
 
Method Summary
 int getLocation()
          Returns the location of the input device.
 int getType()
          Returns the type of input device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOFTKEYS

public static final int SOFTKEYS
input feature has one or more hardware keys whose meaning can be configured

See Also:
Constant Field Values

KEYPAD

public static final int KEYPAD
input feature has hardware keys labeled 0 - 9, *, and #

See Also:
Constant Field Values

LIMITED_KEYBOARD

public static final int LIMITED_KEYBOARD
input feature has more hardware keys than a keypad, but fewer than a full keyboard. For instance, number keys may overlap a row of letter keys.

See Also:
Constant Field Values

FULL_KEYBOARD

public static final int FULL_KEYBOARD
input feature has hardware keys typical in a full keyboard. For instance, individual keys for all numbers and Latin letters.

See Also:
Constant Field Values
Method Detail

getLocation

public int getLocation()
Returns the location of the input device.

Throws:
SWTException -
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
SWTError -
  • ERROR_CANNOT_GET_SELECTION - if the operation fails because of an operating system failure
See Also:
MobileDevice.LOCAL, MobileDevice.INTERNAL, MobileDevice.EXTERNAL, MobileDevice.REMOTE

getType

public int getType()
Returns the type of input device.

Throws:
SWTException -
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
SWTError -
  • ERROR_CANNOT_GET_SELECTION - if the operation fails because of an operating system failure
See Also:
SOFTKEYS, KEYPAD, LIMITED_KEYBOARD, FULL_KEYBOARD