Lines Matching refs:Item

45  * <p>ClipData is a complex type containing one or more Item instances,
58 * <p>Each Item instance can be one of three main classes of data: a simple
59 * CharSequence of text, a single Intent object, or a Uri. See {@link Item}
73 * the application must correctly interpret the data for its use. If the {@link Item}
80 * can use the convenience method {@link Item#coerceToText Item.coerceToText}.
109 * <p>For example, the implementation of {@link Item#coerceToText Item.coerceToText}
119 * is to contain a simple text, Intent, or URI, this is easy: an {@link Item}
150 * into an editor), then {@link Item#coerceToText(Context)} will ask the content
167 final ArrayList<Item> mItems;
188 public static class Item {
195 public Item(Item other) {
203 * Create an Item consisting of a single block of (possibly styled) text.
205 public Item(CharSequence text) {
213 * Create an Item consisting of a single block of (possibly styled) text,
218 public Item(CharSequence text, String htmlText) {
226 * Create an Item consisting of an arbitrary Intent.
228 public Item(Intent intent) {
236 * Create an Item consisting of an arbitrary URI.
238 public Item(Uri uri) {
246 * Create a complex Item, containing multiple representations of
249 public Item(CharSequence text, Intent intent, Uri uri) {
257 * Create a complex Item, containing multiple representations of
262 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) {
274 * Retrieve the raw text contained in this Item.
281 * Retrieve the raw HTML text contained in this Item.
288 * Retrieve the raw Intent contained in this Item.
295 * Retrieve the raw URI contained in this Item.
324 // If this Item has an explicit textual value, simply return that.
330 // If this Item has a URI value, try using that.
454 // If this Item has a plain text value, return it as HTML.
468 // If this Item has a URI value, try using that.
602 b.append("ClipData.Item { ");
653 public ClipData(CharSequence label, String[] mimeTypes, Item item) {
659 mItems = new ArrayList<Item>();
669 public ClipData(ClipDescription description, Item item) {
675 mItems = new ArrayList<Item>();
688 mItems = new ArrayList<Item>(other.mItems);
700 Item item = new Item(text);
716 Item item = new Item(text, htmlText);
729 Item item = new Item(intent);
746 Item item = new Item(uri);
780 Item item = new Item(uri);
793 * Add a new Item to the overall ClipData container.
797 * Item)} should be used with a complete list of MIME types.
798 * @param item Item to be added.
800 public void addItem(Item item) {
823 public Item getItemAt(int index) {
828 public void setItemAt(int index, Item item) {
840 final Item item = mItems.get(i);
845 item.mUri.checkFileUriExposed("ClipData.Item.getUri()");
854 final Item item = mItems.get(i);
865 final Item item = mItems.get(i);
882 final Item item = mItems.get(i);
951 ClipData.Item item = getItemAt(i);
986 Item item = mItems.get(i);
1011 mItems = new ArrayList<Item>();
1018 mItems.add(new Item(text, htmlText, intent, uri));