Build 1.0_r1(from source)

android.text.method
Class MultiTapKeyListener

java.lang.Object
  extended by android.text.method.MetaKeyKeyListener
      extended by android.text.method.BaseKeyListener
          extended by android.text.method.MultiTapKeyListener
All Implemented Interfaces:
KeyListener, SpanWatcher

public class MultiTapKeyListener
extends BaseKeyListener
implements SpanWatcher

This is the standard key listener for alphabetic input on 12-key keyboards. You should generally not need to instantiate this yourself; TextKeyListener will do it for you.


Field Summary
 
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
MultiTapKeyListener(TextKeyListener.Capitalize cap, boolean autotext)
           
 
Method Summary
static MultiTapKeyListener getInstance(boolean autotext, TextKeyListener.Capitalize cap)
          Returns a new or existing instance with the specified capitalization and correction properties.
 boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)
          Handles presses of the meta keys.
 void onSpanAdded(Spannable s, Object what, int start, int end)
          This method is called to notify you that the specified object has been attached to the specified range of the text.
 void onSpanChanged(Spannable buf, Object what, int s, int e, int start, int stop)
          This method is called to notify you that the specified object has been relocated from the range ostart…oend to the new range nstart…nend of the text.
 void onSpanRemoved(Spannable s, Object what, int start, int end)
          This method is called to notify you that the specified object has been detached from the specified range of the text.
 
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
 

Constructor Detail

MultiTapKeyListener

public MultiTapKeyListener(TextKeyListener.Capitalize cap,
                           boolean autotext)
Method Detail

getInstance

public static MultiTapKeyListener getInstance(boolean autotext,
                                              TextKeyListener.Capitalize cap)
Returns a new or existing instance with the specified capitalization and correction properties.


onKeyDown

public boolean onKeyDown(View view,
                         Editable content,
                         int keyCode,
                         KeyEvent event)
Description copied from class: MetaKeyKeyListener
Handles presses of the meta keys.

Specified by:
onKeyDown in interface KeyListener
Overrides:
onKeyDown in class BaseKeyListener

onSpanChanged

public void onSpanChanged(Spannable buf,
                          Object what,
                          int s,
                          int e,
                          int start,
                          int stop)
Description copied from interface: SpanWatcher
This method is called to notify you that the specified object has been relocated from the range ostart…oend to the new range nstart…nend of the text.

Specified by:
onSpanChanged in interface SpanWatcher

onSpanAdded

public void onSpanAdded(Spannable s,
                        Object what,
                        int start,
                        int end)
Description copied from interface: SpanWatcher
This method is called to notify you that the specified object has been attached to the specified range of the text.

Specified by:
onSpanAdded in interface SpanWatcher

onSpanRemoved

public void onSpanRemoved(Spannable s,
                          Object what,
                          int start,
                          int end)
Description copied from interface: SpanWatcher
This method is called to notify you that the specified object has been detached from the specified range of the text.

Specified by:
onSpanRemoved in interface SpanWatcher

Build 1.0_r1(from source)

Please submit a feedback, bug or feature