English | Site Directory

Android - An Open Handset Alliance Project

android.text.method
public class

android.text.method.DigitsInputMethod

java.lang.Object
android.text.method.MetaKeyInputMethod
android.text.method.BaseInputMethod InputMethod
android.text.method.NumberInputMethod
android.text.method.DigitsInputMethod

For digits-only text entry

Summary

Constants inherited from class android.text.method.MetaKeyInputMethod

Public Constructors

          DigitsInputMethod()

Public Methods

      static  DigitsInputMethod  getInstance()
Returns a DigitsInputMethod that accepts the digits 0 through 9 and the plus sign.
      static  DigitsInputMethod  getInstance(String accepted)
Returns a DigitsInputMethod that accepts only the characters that appear in the specified String.

Protected Methods

        char[]  getAcceptedChars()
You can say which characters you can accept.
Methods inherited from class android.text.method.NumberInputMethod
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

Details

Public Constructors

public DigitsInputMethod()

Public Methods

public static DigitsInputMethod getInstance()

Returns a DigitsInputMethod that accepts the digits 0 through 9 and the plus sign.

public static DigitsInputMethod getInstance(String accepted)

Returns a DigitsInputMethod that accepts only the characters that appear in the specified String. Note that not all characters may be available on every keyboard.

Protected Methods

protected char[] getAcceptedChars()

You can say which characters you can accept.
Build m5-rc15g - 14 May 2008 12:50