English | Site Directory

Android - An Open Handset Alliance Project

android.text.method
public class

android.text.method.SingleLineTransformationMethod

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

This transformation method causes any newline characters (\n) to be made visible and prevented from causing a line break by displaying them as arrow characters.

Summary

Public Constructors

          SingleLineTransformationMethod()

Public Methods

      static  SingleLineTransformationMethod  getInstance()

Protected Methods

        char[]  getOriginal()
The character to be replaced is \n.
        char[]  getReplacement()
The character \n is replaced with is ?.
Methods inherited from class android.text.method.ReplacementTransformationMethod
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.method.TransformationMethod

Details

Public Constructors

public SingleLineTransformationMethod()

Public Methods

public static SingleLineTransformationMethod getInstance()

Protected Methods

protected char[] getOriginal()

The character to be replaced is \n.

protected char[] getReplacement()

The character \n is replaced with is ?. (Subject to change if there is ever a better character in our fonts.)
Build m5-rc15g - 14 May 2008 12:50