|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.blackledge.david.tivo.widgets.qk.handlers.TextingRowColumnKeyboardHandler
public class TextingRowColumnKeyboardHandler
2-key texting - first key is the phone button containing the character, 2nd key is the position of the character in that list.
| Constructor Summary | |
|---|---|
TextingRowColumnKeyboardHandler()
|
|
| Method Summary | |
|---|---|
void |
abortCharacter()
Reset handler state - the user pressed an aborting key like delete/backspace and the last uncommitted value passed to QuickKeyboard.setCharacter(String) is deleted (no need to do
it yourself. |
boolean |
buttonPress(int keyCode)
Alters the state of the keyboard handler and may cause a character to be set and possibly the cursor to be advanced. |
void |
finishCharacter()
Set a character if you can settle on one in current state, then reset state - the user pressed an escaping action key like left/right/space - if you cannot settle on a character in the current state (i.e. |
String[] |
getCharacterLayout()
Array of strings as character rows {"abcd","efgh"...} - use spaces to create gaps |
List |
getCues()
List of all currently active cues to display to the user indicating what a particular keyCode will activate on the screen given the current state of the keyboard handler. |
Map |
getExtraKeyLabels()
To provide a map of any other keys you want displayed to the user with a short label next to them. |
void |
init(QuickKeyboard keyboard)
initialization - handler needs to hold on to this reference to call QuickKeyboard.setCharacter(String), etc., as appropriate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextingRowColumnKeyboardHandler()
| Method Detail |
|---|
public void abortCharacter()
QuickKeyboardHandlerQuickKeyboard.setCharacter(String) is deleted (no need to do
it yourself. layout/cues will be requested next.
abortCharacter in interface QuickKeyboardHandlerpublic boolean buttonPress(int keyCode)
QuickKeyboardHandlerQuickKeyboard.setCharacter(String) and
usually QuickKeyboard.nextCharacter(). This is also where
the handler should support additional character sets on particular
button presses e.g. Thumbs Up/Down for upper/lowercase set. Use
QuickKeyboardHandler.getExtraKeyLabels() to provide a list of cues for these mode
changing keys. Layout/cues will be requested next.
buttonPress in interface QuickKeyboardHandlerkeyCode - the key pressed by the user
public void finishCharacter()
QuickKeyboardHandlerQuickKeyboard.setCharacter(String)
with a null value here to abort it. layout/cues will be requested
next.
finishCharacter in interface QuickKeyboardHandlerpublic String[] getCharacterLayout()
QuickKeyboardHandler
getCharacterLayout in interface QuickKeyboardHandlerpublic List getCues()
QuickKeyboardHandler
getCues in interface QuickKeyboardHandlerQKCue objectspublic Map getExtraKeyLabels()
QuickKeyboardHandlerQuickKeyboard.getDefaultExtraKeys() and optionally add to
that LinkedHashMap before returning it.
getExtraKeyLabels in interface QuickKeyboardHandlerpublic void init(QuickKeyboard keyboard)
QuickKeyboardHandlerQuickKeyboard.setCharacter(String), etc., as appropriate.
init in interface QuickKeyboardHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||