Build 1.0_r1(from source)

android.text.method
Class DialerKeyListener

java.lang.Object
  extended by android.text.method.MetaKeyKeyListener
      extended by android.text.method.BaseKeyListener
          extended by android.text.method.NumberKeyListener
              extended by android.text.method.DialerKeyListener
All Implemented Interfaces:
InputFilter, KeyListener

public class DialerKeyListener
extends NumberKeyListener

For dialing-only text entry


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.InputFilter
InputFilter.AllCaps, InputFilter.LengthFilter
 
Field Summary
static char[] CHARACTERS
          The characters that are used.
 
Fields inherited from class android.text.method.BaseKeyListener
OLD_SEL_START
 
Fields inherited from class android.text.method.MetaKeyKeyListener
META_ALT_LOCKED, META_ALT_ON, META_CAP_LOCKED, META_SHIFT_ON, META_SYM_LOCKED, META_SYM_ON
 
Constructor Summary
DialerKeyListener()
           
 
Method Summary
protected  char[] getAcceptedChars()
          You can say which characters you can accept.
static DialerKeyListener getInstance()
           
protected  int lookup(KeyEvent event, Spannable content)
          Overrides the superclass's lookup method to prefer the number field from the KeyEvent.
 
Methods inherited from class android.text.method.NumberKeyListener
filter, ok, onKeyDown
 
Methods inherited from class android.text.method.BaseKeyListener
backspace
 
Methods inherited from class android.text.method.MetaKeyKeyListener
adjustMetaAfterKeypress, getMetaState, getMetaState, isMetaTracker, onKeyUp, resetLockedMeta, resetMetaState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.text.method.KeyListener
onKeyUp
 

Field Detail

CHARACTERS

public static final char[] CHARACTERS
The characters that are used.

See Also:
KeyEvent.getMatch(char[]), getAcceptedChars()
Constructor Detail

DialerKeyListener

public DialerKeyListener()
Method Detail

getAcceptedChars

protected char[] getAcceptedChars()
Description copied from class: NumberKeyListener
You can say which characters you can accept.

Specified by:
getAcceptedChars in class NumberKeyListener

getInstance

public static DialerKeyListener getInstance()

lookup

protected int lookup(KeyEvent event,
                     Spannable content)
Overrides the superclass's lookup method to prefer the number field from the KeyEvent.

Overrides:
lookup in class NumberKeyListener

Build 1.0_r1(from source)

Please submit a feedback, bug or feature