Android
android.text.method
public class

android.text.method.MultiTapKeyListener

java.lang.Object
android.text.method.MetaKeyKeyListener
android.text.method.BaseKeyListener KeyListener
android.text.method.MultiTapKeyListener 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.

Summary

Constants inherited from class android.text.method.MetaKeyKeyListener

Public Constructors

            MultiTapKeyListener(TextKeyListener.Capitalize cap, boolean autotext)

Public Methods

      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
Methods inherited from class android.text.method.MetaKeyKeyListener
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.SpanWatcher
Methods inherited from interface android.text.method.KeyListener

Details

Public Constructors

public MultiTapKeyListener(TextKeyListener.Capitalize cap, boolean autotext)

Public Methods

public static MultiTapKeyListener getInstance(boolean autotext, TextKeyListener.Capitalize cap)

Returns a new or existing instance with the specified capitalization and correction properties.

public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)

Handles presses of the meta keys.

public 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.

public 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.

public 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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48