|
||||||||||
| 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.activity.main.MenuHandler
final class MenuHandler
Handles activities from the MainActivity menu.
| Field Summary |
|---|
| Fields inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
keyDownHandled |
| Constructor Summary | |
|---|---|
MenuHandler(MainActivity mainActivity)
Creates new handler instance. |
|
| Method Summary | |
|---|---|
void |
cancelResize()
Cancels the resizing operation. |
(package private) boolean |
dispatchTrackballEvent(android.view.MotionEvent ev)
See MainActivity.dispatchTrackballEvent(MotionEvent) |
protected void |
keyUp(int keyCode,
android.view.KeyEvent event)
Handles the key-up event. |
protected boolean |
onKey(int keyCode,
int count,
android.view.KeyEvent event)
Invoked on key press. |
(package private) boolean |
onOptionsItemSelected(android.view.MenuItem item)
MainActivity.onOptionsItemSelected(MenuItem) |
(package private) void |
onPrepareOptionsMenu(android.view.Menu menu)
MainActivity.onPrepareOptionsMenu(Menu) |
void |
startResizing()
Starts the controller resizing if available. |
| Methods inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
compose, isConfirm, moveFocus, onConfirm, 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 |
|---|
MenuHandler(MainActivity mainActivity)
mainActivity - owner activity| Method Detail |
|---|
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 void keyUp(int keyCode,
android.view.KeyEvent event)
KeyEventHandler
keyUp in class KeyEventHandlerkeyCode - the key codeevent - the eventpublic void cancelResize()
boolean dispatchTrackballEvent(android.view.MotionEvent ev)
MainActivity.dispatchTrackballEvent(MotionEvent)
ev - event
public void startResizing()
void onPrepareOptionsMenu(android.view.Menu menu)
MainActivity.onPrepareOptionsMenu(Menu)
menu - menuboolean onOptionsItemSelected(android.view.MenuItem item)
MainActivity.onOptionsItemSelected(MenuItem)
item - item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||