Android
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, View v)
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)
This method is called when the TextView that uses this TransformationMethod gains or loses focus.

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, View v)

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)

This method is called when the TextView that uses this TransformationMethod gains or loses focus.

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