|
||||||||||
| 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.KeypadManager
public final class KeypadManager
Manages the keypad.
| Field Summary |
|---|
| Fields inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
keyDownHandled |
| Constructor Summary | |
|---|---|
KeypadManager(GesturesListView owner)
Creates new manager instance. |
|
| Method Summary | |
|---|---|
void |
activate(java.lang.Class<? extends AbstractKeypadHandler> handlerClass)
Activates required handler. |
protected boolean |
onConfirm()
Invoked on center or
KeyEvent.KEYCODE_ENTER key press. |
protected boolean |
onKey(int keyCode,
int count,
android.view.KeyEvent event)
Invoked on key press. |
void |
selectionChanged()
Invoked when the selection is changed in the underlying list view. |
| Methods inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
compose, isConfirm, keyUp, moveFocus, onDown, onKey, onKeyDown, onKeyMultiple, onKeyUp, onLeft, onRight, onUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeypadManager(GesturesListView owner)
owner - the owner list view.| Method Detail |
|---|
public void activate(java.lang.Class<? extends AbstractKeypadHandler> handlerClass)
null then all handlers are
deactivated.
handlerClass - the handler to activate.
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.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.public void selectionChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||