|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.views.KeyEventHandler
sk.baka.ambient.views.gesturelist.keypad.AbstractKeypadHandler
sk.baka.ambient.views.gesturelist.keypad.KeypadDpadSearch
public final class KeypadDpadSearch
Handles search using the DPAD only.
| Field Summary |
|---|
| Fields inherited from class sk.baka.ambient.views.gesturelist.keypad.AbstractKeypadHandler |
|---|
owner |
| Fields inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
keyDownHandled |
| Constructor Summary | |
|---|---|
KeypadDpadSearch(GesturesListView owner)
Creates new instance |
|
| Method Summary | |
|---|---|
boolean |
isActivatedByKey(int keyCode,
android.view.KeyEvent event)
Checks if this handler is activated by given key press. |
boolean |
isStarted()
Checks if this handler is started. |
protected boolean |
onConfirm()
Invoked on center or
KeyEvent.KEYCODE_ENTER key press. |
protected boolean |
onDown()
Invoked on down arrow key press. |
protected boolean |
onKey(int keyCode,
int count,
android.view.KeyEvent event)
Invoked on key press. |
protected boolean |
onLeft()
Invoked on left arrow key press. |
protected boolean |
onRight()
Invoked on right arrow key press. |
protected boolean |
onUp()
Invoked on up arrow key press. |
void |
start()
Starts this key handler. |
void |
stop()
Stops this key handler. |
| Methods inherited from class sk.baka.ambient.views.gesturelist.keypad.AbstractKeypadHandler |
|---|
selectionChanged |
| Methods inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
compose, isConfirm, keyUp, moveFocus, onKey, onKeyDown, onKeyMultiple, onKeyUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeypadDpadSearch(GesturesListView owner)
owner - the owner.| Method Detail |
|---|
public void start()
AbstractKeypadHandler
start in class AbstractKeypadHandlerpublic void stop()
AbstractKeypadHandlerAbstractKeypadHandler.start() is invoked again.
stop in class AbstractKeypadHandler
public boolean isActivatedByKey(int keyCode,
android.view.KeyEvent event)
AbstractKeypadHandler
isActivatedByKey in class AbstractKeypadHandlerkeyCode - the key codeevent - the event.
true if this handler should be activated,
false otherwise.public boolean isStarted()
AbstractKeypadHandler
isStarted in class AbstractKeypadHandlertrue if started, false otherwise.protected boolean onConfirm()
KeyEventHandlercenter or
KeyEvent.KEYCODE_ENTER key press.
onConfirm in class KeyEventHandlertrue if the event was handled and is to be
suppressed, false otherwise.protected boolean onDown()
KeyEventHandlerdown arrow key press.
onDown in class KeyEventHandlertrue if the event was handled and is to be
suppressed, false otherwise.protected boolean onLeft()
KeyEventHandlerleft arrow key press.
onLeft in class KeyEventHandlertrue if the event was handled and is to be
suppressed, false otherwise.protected boolean onRight()
KeyEventHandlerright arrow key press.
onRight in class KeyEventHandlertrue if the event was handled and is to be
suppressed, false otherwise.protected boolean onUp()
KeyEventHandlerup arrow key press.
onUp in class KeyEventHandlertrue if the event was handled and is to be
suppressed, false otherwise.
protected boolean onKey(int keyCode,
int count,
android.view.KeyEvent event)
KeyEventHandleronUp, onDown... event handlers.
onKey in class KeyEventHandlerkeyCode - the key codecount - the key repeat count. 0 is the first key pressevent - the event
true if the event was handled and is to be
suppressed, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||