Searched refs:sliceItem (Results 1 – 2 of 2) sorted by relevance
449 private boolean addItem(SliceItem sliceItem, int color, boolean isStart) { in addItem() argument454 if (FORMAT_SLICE.equals(sliceItem.getFormat()) in addItem()455 || FORMAT_ACTION.equals(sliceItem.getFormat())) { in addItem()456 if (sliceItem.hasHint(HINT_SHORTCUT)) { in addItem()457 addAction(new SliceActionImpl(sliceItem), color, container, isStart); in addItem()460 sliceItem = sliceItem.getSlice().getItems().get(0); in addItem()464 if (FORMAT_IMAGE.equals(sliceItem.getFormat())) { in addItem()465 icon = sliceItem.getIcon(); in addItem()466 imageMode = sliceItem.hasHint(HINT_NO_TINT) ? SMALL_IMAGE : ICON_IMAGE; in addItem()467 } else if (FORMAT_LONG.equals(sliceItem.getFormat())) { in addItem()[all …]
388 public static boolean isValidHeader(SliceItem sliceItem) { in isValidHeader() argument389 if (FORMAT_SLICE.equals(sliceItem.getFormat()) && !sliceItem.hasAnyHints(HINT_LIST_ITEM, in isValidHeader()392 SliceItem item = SliceQuery.find(sliceItem, FORMAT_TEXT, (String) null, null); in isValidHeader()