|
||||||||||
| 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.KeypadController
public final class KeypadController
Controls the GesturesListView component via the keypad.
| 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 | |
|---|---|
KeypadController(GesturesListView ownerView)
Creates new controller instance. |
|
| Method Summary | |
|---|---|
void |
copy(Interval i)
Copies given interval into the clipboard. |
java.util.List<TrackMetadataBean> |
getClipboard()
Returns the contents of the clipboard as a list of tracks. |
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 |
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. |
void |
start()
Starts this key handler. |
void |
stop()
Stops this key handler. |
| Methods inherited from class sk.baka.ambient.views.KeyEventHandler |
|---|
compose, isConfirm, keyUp, 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 |
|---|
public KeypadController(GesturesListView ownerView)
ownerView - the owning view.| Method Detail |
|---|
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.public void start()
AbstractKeypadHandler
start in class AbstractKeypadHandlerpublic void stop()
AbstractKeypadHandlerAbstractKeypadHandler.start() is invoked again.
stop in class AbstractKeypadHandler
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.public void selectionChanged()
AbstractKeypadHandler
selectionChanged in class AbstractKeypadHandlerpublic void copy(Interval i)
i - the interval to copy.public java.util.List<TrackMetadataBean> getClipboard()
null, may be empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||