select all items

@param considerSelectableFlag true if the select method should not select an item if its not selectable
543594
public void select(final boolean considerSelectableFlag) {
        mFastAdapter.recursive(new AdapterPredicate<Item>() {
            @Override
            public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
                select(lastParentAdapter, item, -1, false, considerSelectableFlag);
                return false;
            }
        }, false);
        mFastAdapter.notifyDataSetChanged();
    }
870386
protected final boolean callbackOptionsItemSelected(MenuItem item) {
        if (DEBUG) Log.d(TAG, "[callbackOptionsItemSelected] item: " + item.getTitleCondensed());

        boolean result = false;
        if (mActivity instanceof OnMenuItemSelectedListener) {
            OnMenuItemSelectedListener listener = (OnMenuItemSelectedListener)mActivity;
            result = listener.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item);
        } else if (mActivity instanceof OnOptionsItemSelectedListener) {
            OnOptionsItemSelectedListener listener = (OnOptionsItemSelectedListener)mActivity;
            result = listener.onOptionsItemSelected(item);
        }

        if (DEBUG) Log.d(TAG, "[callbackOptionsItemSelected] returning " + result);
        return result;
    }
155650
public void setSelectedMenuItem(final MenuItemSelectable selectedItem) {
		MenuModel model = getOrCreateComponentModel();
		if (selectedItem == null) {
			model.selectedMenuItems = null;
		} else if (selectedItem.isSelectAllowed()) {
			if (model.selectedMenuItems == null) {
				model.selectedMenuItems = new ArrayList<>();
			} else {
				model.selectedMenuItems.clear();
			}
			model.selectedMenuItems.add(selectedItem);
		}
	}
454009
public void changeSelection(Set<CmsAliasTableRow> selectedSet) {

        boolean selectionEmpty = selectedSet.isEmpty();
        m_view.setDeleteButtonEnabled(!selectionEmpty);
    }
649928
function setSelectable(item) {
            if (item.children) {
                item.children.forEach(setSelectable);
            }
            if (item.submenu) {
                item.selectable = !!item.selectable;
            }
        }
733825
private void findSelections(final Request request, final MenuSelectContainer selectContainer,
			final List<MenuItemSelectable> selections) {

		// Don't bother checking disabled or invisible containers
		if (!selectContainer.isVisible()
				|| (selectContainer instanceof Disableable && ((Disableable) selectContainer).isDisabled())) {
			return;
		}

		// Get any selectable children of this container
		List<MenuItemSelectable> selectableItems = getSelectableItems(selectContainer);

		// Now add the selections (if in the request)
		for (MenuItemSelectable selectableItem : selectableItems) {
			// Check if the item is on the request
			if (request.getParameter(selectableItem.getId() + ".selected") != null) {
				selections.add(selectableItem);
				if (SelectionMode.SINGLE.equals(selectContainer.getSelectionMode())) {
					// Only select the first item at this level.
					// We still need to check other levels of the menu for selection.
					break;
				}
			}
		}

		// We need to recurse through and check for other selectable containers
		for (MenuItem item : selectContainer.getMenuItems()) {
			if (item instanceof MenuItemGroup) {
				for (MenuItem groupItem : ((MenuItemGroup) item).getMenuItems()) {
					if (groupItem instanceof MenuSelectContainer) {
						findSelections(request, (MenuSelectContainer) groupItem, selections);
					}
				}
			} else if (item instanceof MenuSelectContainer) {
				findSelections(request, (MenuSelectContainer) item, selections);
			}
		}
	}
857548
protected void onSelectedItemChanged() {
        if (selectedItem == null) {
            anchorLabel();
            getInputWidget().setText("");
        } else {
            getInputWidget().setText(getItemPrinter().print(selectedItem));
            floatLabel();
        }

        if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);
    }
810444
public void setSelectedItems(Collection elements) {
		if (m_selectedItems!=null) {
            for (Object m_selectedItem : m_selectedItems) {
                ((JScoreElement) m_selectedItem).setColor(null);
            }
			m_selectedItems = null;
		}
		if ((elements != null) && (elements.size() > 0)) {
			m_selectedItems = elements;
            for (Object m_selectedItem : m_selectedItems) {
                ((JScoreElement) m_selectedItem).setColor(SELECTED_ITEM_COLOR);
            }
		}
	}
1116735
public void setAllowSelection(boolean allowSelection) {
        if (this.allowSelection == allowSelection) {
            return;
        }
        this.allowSelection = allowSelection;
        setCaretInternal();
        firePropertyChange("allowSelection", !allowSelection, allowSelection);
    }
1191978
void selectTab(final Dockable t) {
        // Remove all previously displayed children
        this.stackPane.getChildren().clear();
        //
        this.stackPane.getChildren().add(model().getModel(t.modelKey()).node());
    }
1247012
public MenuItemSelectable getSelectedMenuItem() {
		List<MenuItemSelectable> selectedItems = getSelectedMenuItems();
		if (selectedItems.isEmpty()) {
			return null;
		} else {
			return selectedItems.get(0);
		}
	}
1233964
public boolean selectAll() {
        boolean result = false;
        WebElement element = getActiveElement();
        if (element != null) {
            if (connectedToMac()) {
                executeJavascript("arguments[0].select()", element);
            } else {
                element.sendKeys(Keys.CONTROL, "a");
            }
            result = true;
        }
        return result;
    }
238138
public void select(Item item, boolean considerSelectableFlag) {
        if (considerSelectableFlag && !item.isSelectable()) {
            return;
        }
        item.withSetSelected(true);
        if (mSelectionListener != null) {
            mSelectionListener.onSelectionChanged(item, true);
        }
    }
481615
public void deselect() {
        SelectExtension<Item> selectExtension = mFastAdapter.getExtension(SelectExtension.class);
        if (selectExtension == null) {
            return;
        }
        for (Item item : AdapterUtil.getAllItems(mFastAdapter)) {
            selectExtension.deselect(item);
        }
        mFastAdapter.notifyDataSetChanged();
    }
877914
function _updateListItemSelection(listItem, selectedFile) {
        var shouldBeSelected = (selectedFile && $(listItem).data(_FILE_KEY).fullPath === selectedFile.fullPath);
        ViewUtils.toggleClass($(listItem), "selected", shouldBeSelected);
    }
598329
@Override
    public void selectTab(final int index) {
        if (index < PAGE_LIMIT) {
            // visible pages
            flagSelected(prevSelectedIndex, false);
            super.selectTab(index);
            flagSelected(index, true);
            prevSelectedIndex = index;

            if (index == PAGE_LIMIT - 1 && offPageContainer.getSelectedDeck() == -1) {
                offPageContainer.selectDeck(0);
            }

        } else {
            // off page
            offPageContainer.selectDeck(offPageIndex(index));
            if (getSelectedIndex() == PAGE_LIMIT - 1) {
                SelectionEvent.fire(this, PAGE_LIMIT - 1);
            }
            tabs.lastTab().setText(offPageContainer.getTexts().get(offPageIndex(index)).getText());
            selectTab(PAGE_LIMIT - 1);
        }
    }
917561
public static <T> List<SelectableItem> listOf(
            Collection<T> items,
            Function<T, String> idFn,
            Function<T, String> nameFn,
            Predicate<T> selectedFn
    ) {
        return items.stream()
                .map(i ->
                        new SelectableItem(
                                selectedFn.test(i),
                                idFn.apply(i),
                                nameFn.apply(i)
                        )
                )
                .collect(Collectors.toList());
    }