Lines Matching defs:Item

43  * <p>ClippedData is a complex type containing one or Item instances,
56 * <p>Each Item instance can be one of three main classes of data: a simple
57 * CharSequence of text, a single Intent object, or a Uri. See {@link Item}
71 * the application must correctly interpret the data for its use. If the {@link Item}
78 * can use the convenience method {@link Item#coerceToText Item.coerceToText}.
107 * <p>For example, the implementation of {@link Item#coerceToText Item.coerceToText}
117 * is to contain a simple text, Intent, or URI, this is easy: an {@link Item}
148 * into an editor), then {@link Item#coerceToText(Context)} will ask the content
165 final ArrayList<Item> mItems;
186 public static class Item {
193 * Create an Item consisting of a single block of (possibly styled) text.
195 public Item(CharSequence text) {
203 * Create an Item consisting of a single block of (possibly styled) text,
208 public Item(CharSequence text, String htmlText) {
216 * Create an Item consisting of an arbitrary Intent.
218 public Item(Intent intent) {
226 * Create an Item consisting of an arbitrary URI.
228 public Item(Uri uri) {
236 * Create a complex Item, containing multiple representations of
239 public Item(CharSequence text, Intent intent, Uri uri) {
247 * Create a complex Item, containing multiple representations of
252 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) {
264 * Retrieve the raw text contained in this Item.
271 * Retrieve the raw HTML text contained in this Item.
278 * Retrieve the raw Intent contained in this Item.
285 * Retrieve the raw URI contained in this Item.
314 // If this Item has an explicit textual value, simply return that.
320 // If this Item has a URI value, try using that.
444 // If this Item has a plain text value, return it as HTML.
458 // If this Item has a URI value, try using that.
587 b.append("ClipData.Item { ");
638 public ClipData(CharSequence label, String[] mimeTypes, Item item) {
644 mItems = new ArrayList<Item>();
654 public ClipData(ClipDescription description, Item item) {
660 mItems = new ArrayList<Item>();
673 mItems = new ArrayList<Item>(other.mItems);
685 Item item = new Item(text);
701 Item item = new Item(text, htmlText);
714 Item item = new Item(intent);
731 Item item = new Item(uri);
770 Item item = new Item(uri);
783 * Add a new Item to the overall ClipData container.
785 public void addItem(Item item) {
808 public Item getItemAt(int index) {
820 final Item item = mItems.get(i);
825 item.mUri.checkFileUriExposed("ClipData.Item.getUri()");
834 final Item item = mItems.get(i);
851 final Item item = mItems.get(i);
934 Item item = mItems.get(i);
959 mItems = new ArrayList<Item>();
966 mItems.add(new Item(text, htmlText, intent, uri));