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

VisibleRecipientChip

public class VisibleRecipientChip extends ReplacementDrawableSpan implements DrawableRecipientChip
VisibleRecipientChip defines a ReplacementSpan that contains information relevant to a particular recipient and renders a background asset to go with it.

Fields Summary
private final SimpleRecipientChip
mDelegate
Constructors Summary
public VisibleRecipientChip(android.graphics.drawable.Drawable drawable, com.android.ex.chips.RecipientEntry entry)

        super(drawable);
        mDelegate = new SimpleRecipientChip(entry);
    
Methods Summary
public voiddraw(android.graphics.Canvas canvas)

        mDrawable.draw(canvas);
    
public android.graphics.RectgetBounds()

        return super.getBounds();
    
public longgetContactId()

        return mDelegate.getContactId();
    
public longgetDataId()

        return mDelegate.getDataId();
    
public java.lang.LonggetDirectoryId()

        return mDelegate.getDirectoryId();
    
public java.lang.CharSequencegetDisplay()

        return mDelegate.getDisplay();
    
public com.android.ex.chips.RecipientEntrygetEntry()

        return mDelegate.getEntry();
    
public java.lang.StringgetLookupKey()

        return mDelegate.getLookupKey();
    
public java.lang.CharSequencegetOriginalText()

        return mDelegate.getOriginalText();
    
public java.lang.CharSequencegetValue()

        return mDelegate.getValue();
    
public booleanisSelected()

        return mDelegate.isSelected();
    
public voidsetOriginalText(java.lang.String text)

        mDelegate.setOriginalText(text);
    
public voidsetSelected(boolean selected)

        mDelegate.setSelected(selected);
    
public java.lang.StringtoString()

        return mDelegate.toString();