FileDocCategorySizeDatePackage
SimpleRecipientChip.javaAPI DocAndroid 5.1 API2733Thu Mar 12 22:22:50 GMT 2015com.android.ex.chips.recipientchip

SimpleRecipientChip

public class SimpleRecipientChip extends Object implements BaseRecipientChip

Fields Summary
private final CharSequence
mDisplay
private final CharSequence
mValue
private final long
mContactId
private final Long
mDirectoryId
private final String
mLookupKey
private final long
mDataId
private final com.android.ex.chips.RecipientEntry
mEntry
private boolean
mSelected
private CharSequence
mOriginalText
Constructors Summary
public SimpleRecipientChip(com.android.ex.chips.RecipientEntry entry)


        
        mDisplay = entry.getDisplayName();
        mValue = entry.getDestination().trim();
        mContactId = entry.getContactId();
        mDirectoryId = entry.getDirectoryId();
        mLookupKey = entry.getLookupKey();
        mDataId = entry.getDataId();
        mEntry = entry;
    
Methods Summary
public longgetContactId()

        return mContactId;
    
public longgetDataId()

        return mDataId;
    
public java.lang.LonggetDirectoryId()

        return mDirectoryId;
    
public java.lang.CharSequencegetDisplay()

        return mDisplay;
    
public com.android.ex.chips.RecipientEntrygetEntry()

        return mEntry;
    
public java.lang.StringgetLookupKey()

        return mLookupKey;
    
public java.lang.CharSequencegetOriginalText()

        return !TextUtils.isEmpty(mOriginalText) ? mOriginalText : mEntry.getDestination();
    
public java.lang.CharSequencegetValue()

        return mValue;
    
public booleanisSelected()

        return mSelected;
    
public voidsetOriginalText(java.lang.String text)

        if (TextUtils.isEmpty(text)) {
            mOriginalText = text;
        } else {
            mOriginalText = text.trim();
        }
    
public voidsetSelected(boolean selected)

        mSelected = selected;
    
public java.lang.StringtoString()

        return mDisplay + " <" + mValue + ">";