Build 1.0_r1(from source)

android.text.method
Class SingleLineTransformationMethod

java.lang.Object
  extended by android.text.method.ReplacementTransformationMethod
      extended by android.text.method.SingleLineTransformationMethod
All Implemented Interfaces:
TransformationMethod

public class SingleLineTransformationMethod
extends ReplacementTransformationMethod

This transformation method causes any newline characters (\n) to be displayed as spaces instead of causing line breaks.


Constructor Summary
SingleLineTransformationMethod()
           
 
Method Summary
static SingleLineTransformationMethod getInstance()
           
protected  char[] getOriginal()
          The character to be replaced is \n.
protected  char[] getReplacement()
          The character \n is replaced with is space.
 
Methods inherited from class android.text.method.ReplacementTransformationMethod
getTransformation, onFocusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLineTransformationMethod

public SingleLineTransformationMethod()
Method Detail

getOriginal

protected char[] getOriginal()
The character to be replaced is \n.

Specified by:
getOriginal in class ReplacementTransformationMethod

getReplacement

protected char[] getReplacement()
The character \n is replaced with is space.

Specified by:
getReplacement in class ReplacementTransformationMethod

getInstance

public static SingleLineTransformationMethod getInstance()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature