|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.input.InputSettings
public abstract class InputSettings
InputSettings contains a set of attributes associated
with a specific input device, such as a keypad, trackball, or touch screen (see
TouchscreenSettings).
For a list of supported input devices, see net.rim.device.api.ui.input.
InputSettings can be applied to individual Screen objects (see
Screen.addInputSettings(InputSettings)) or to a UiApplication
(see UiEngineInstance.addInputSettings(InputSettings)).
InputSettings applied to a Screen override InputSettings applied to a
UiApplication, which in turn override system-wide settings:
| Method Summary | ||
|---|---|---|
int |
get(int attribute)
Returns the value associated with the specified input attribute. |
|
int |
remove(int attribute)
Removes the value associated with the specified input attribute. |
|
void |
removeAll()
Removes all values contained within this InputSettings
object. |
|
int |
set(int attribute,
int value)
Sets the value for the specified input attribute. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int get(int attribute)
InputSettings.set(int, int).
attribute - Attribute for a given input device, for example, TouchscreenSettings.SWIPE_SENSITIVITY.
attribute if set; otherwise -1.
public int set(int attribute,
int value)
InputSettings.get(int) or removed by invoking InputSettings.remove(int). All values are clamped
to attribute limits.
attribute - Attribute for a given input device, for example, TouchscreenSettings.SWIPE_SENSITIVITY.value - Value to associate with attribute.
attribute, or -1 if
attribute had no previous associated value.
IllegalArgumentException - If attribute is not associated with this input device.public int remove(int attribute)
InputSettings.set(int, int).
attribute - Attribute for a given input device, for example, TouchscreenSettings.SWIPE_SENSITIVITY.
attribute, or -1 if
attribute had no previous associated value.public void removeAll()
InputSettings
object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.