android.text.style
Class SuggestionSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.SuggestionSpan
All Implemented Interfaces:
Parcelable, ParcelableSpan

public class SuggestionSpan
extends CharacterStyle
implements ParcelableSpan


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static String ACTION_SUGGESTION_PICKED
           
static Parcelable.Creator<SuggestionSpan> CREATOR
           
static int FLAG_EASY_CORRECT
           
static int FLAG_MISSPELLED
           
static String SUGGESTION_SPAN_PICKED_AFTER
           
static String SUGGESTION_SPAN_PICKED_BEFORE
           
static String SUGGESTION_SPAN_PICKED_HASHCODE
           
static int SUGGESTIONS_MAX_SIZE
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, Class<?> notificationTargetClass)
           
SuggestionSpan(Context context, String[] suggestions, int flags)
           
SuggestionSpan(Locale locale, String[] suggestions, int flags)
           
SuggestionSpan(Parcel src)
           
 
Method Summary
 int describeContents()
           
 boolean equals(Object o)
           
 int getFlags()
           
 String getLocale()
           
 int getSpanTypeId()
           
 String[] getSuggestions()
           
 int hashCode()
           
 void setFlags(int flags)
           
 void updateDrawState(TextPaint tp)
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class android.text.style.CharacterStyle
getUnderlying, wrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_EASY_CORRECT

public static final int FLAG_EASY_CORRECT
See Also:
Constant Field Values

FLAG_MISSPELLED

public static final int FLAG_MISSPELLED
See Also:
Constant Field Values

ACTION_SUGGESTION_PICKED

public static final String ACTION_SUGGESTION_PICKED
See Also:
Constant Field Values

SUGGESTION_SPAN_PICKED_AFTER

public static final String SUGGESTION_SPAN_PICKED_AFTER
See Also:
Constant Field Values

SUGGESTION_SPAN_PICKED_BEFORE

public static final String SUGGESTION_SPAN_PICKED_BEFORE
See Also:
Constant Field Values

SUGGESTION_SPAN_PICKED_HASHCODE

public static final String SUGGESTION_SPAN_PICKED_HASHCODE
See Also:
Constant Field Values

SUGGESTIONS_MAX_SIZE

public static final int SUGGESTIONS_MAX_SIZE
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<SuggestionSpan> CREATOR
Constructor Detail

SuggestionSpan

public SuggestionSpan(Context context,
                      String[] suggestions,
                      int flags)

SuggestionSpan

public SuggestionSpan(Locale locale,
                      String[] suggestions,
                      int flags)

SuggestionSpan

public SuggestionSpan(Context context,
                      Locale locale,
                      String[] suggestions,
                      int flags,
                      Class<?> notificationTargetClass)

SuggestionSpan

public SuggestionSpan(Parcel src)
Method Detail

getSuggestions

public String[] getSuggestions()

getLocale

public String getLocale()

getFlags

public int getFlags()

setFlags

public void setFlags(int flags)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

getSpanTypeId

public int getSpanTypeId()
Specified by:
getSpanTypeId in interface ParcelableSpan

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

updateDrawState

public void updateDrawState(TextPaint tp)
Specified by:
updateDrawState in class CharacterStyle


Copyright © 2008-2012. All Rights Reserved.