English | Site Directory

Android - An Open Handset Alliance Project

android.text.method
public abstract class

android.text.method.ReplacementTransformationMethod

java.lang.Object
android.text.method.ReplacementTransformationMethod TransformationMethod

This transformation method causes the characters in the getOriginal() array to be replaced by the corresponding characters in the getReplacement() array.

Known Direct Subclasses

Summary

Public Constructors

          ReplacementTransformationMethod()

Public Methods

        CharSequence  getTransformation(CharSequence source)
Returns a CharSequence that will mirror the contents of the source CharSequence but with the characters in getOriginal() replaced by ones from getReplacement().
        void  onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect)

Protected Methods

abstract        char[]  getOriginal()
Returns the list of characters that are to be replaced by other characters when displayed.
abstract        char[]  getReplacement()
Returns a parallel array of replacement characters for the ones that are to be replaced.
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.method.TransformationMethod

Details

Public Constructors

public ReplacementTransformationMethod()

Public Methods

public CharSequence getTransformation(CharSequence source)

Returns a CharSequence that will mirror the contents of the source CharSequence but with the characters in getOriginal() replaced by ones from getReplacement().

public void onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect)

Protected Methods

protected abstract char[] getOriginal()

Returns the list of characters that are to be replaced by other characters when displayed.

protected abstract char[] getReplacement()

Returns a parallel array of replacement characters for the ones that are to be replaced.
Build m5-rc15g - 14 May 2008 12:50