English | Site Directory

Android - An Open Handset Alliance Project

android.text.method
public class

android.text.method.MultiTapInputMethod

java.lang.Object
android.text.method.MetaKeyInputMethod
android.text.method.BaseInputMethod InputMethod
android.text.method.MultiTapInputMethod SpanWatcher

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

Summary

Constants inherited from class android.text.method.MetaKeyInputMethod

Public Constructors

          MultiTapInputMethod(Capitalize cap, boolean autotext)

Public Methods

      static  MultiTapInputMethod  getInstance(boolean autotext, 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.BaseInputMethod
Methods inherited from class android.text.method.MetaKeyInputMethod
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.method.InputMethod
Methods inherited from interface android.text.SpanWatcher

Details

Public Constructors

public MultiTapInputMethod(Capitalize cap, boolean autotext)

Public Methods

public static MultiTapInputMethod getInstance(boolean autotext, 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.
Build m5-rc15g - 14 May 2008 12:50