Build 1.0_r1(from source)

android.widget
Class MultiAutoCompleteTextView.CommaTokenizer

java.lang.Object
  extended by android.widget.MultiAutoCompleteTextView.CommaTokenizer
All Implemented Interfaces:
MultiAutoCompleteTextView.Tokenizer
Enclosing class:
MultiAutoCompleteTextView

public static class MultiAutoCompleteTextView.CommaTokenizer
extends Object
implements MultiAutoCompleteTextView.Tokenizer

This simple Tokenizer can be used for lists where the items are separated by a comma and one or more spaces.


Constructor Summary
MultiAutoCompleteTextView.CommaTokenizer()
           
 
Method Summary
 int findTokenEnd(CharSequence text, int cursor)
          Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.
 int findTokenStart(CharSequence text, int cursor)
          Returns the start of the token that ends at offset cursor within text.
 CharSequence terminateToken(CharSequence text)
          Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiAutoCompleteTextView.CommaTokenizer

public MultiAutoCompleteTextView.CommaTokenizer()
Method Detail

findTokenStart

public int findTokenStart(CharSequence text,
                          int cursor)
Description copied from interface: MultiAutoCompleteTextView.Tokenizer
Returns the start of the token that ends at offset cursor within text.

Specified by:
findTokenStart in interface MultiAutoCompleteTextView.Tokenizer

findTokenEnd

public int findTokenEnd(CharSequence text,
                        int cursor)
Description copied from interface: MultiAutoCompleteTextView.Tokenizer
Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.

Specified by:
findTokenEnd in interface MultiAutoCompleteTextView.Tokenizer

terminateToken

public CharSequence terminateToken(CharSequence text)
Description copied from interface: MultiAutoCompleteTextView.Tokenizer
Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).

Specified by:
terminateToken in interface MultiAutoCompleteTextView.Tokenizer

Build 1.0_r1(from source)

Please submit a feedback, bug or feature