Set the list of items in single-choice mode.
@param items The list of items.
@param selectedIndex The index of selected item.
@return The SimpleDialog for chaining methods.
160355
public SimpleDialog items(CharSequence[] items, int selectedIndex){
        if(mListView == null)
            initListView();

        mMode = MODE_ITEMS;
        mAdapter.setItems(items, selectedIndex);
        super.contentView(mListView);
        return this;
    }
1162059
private void setSelectedNavDrawerItem(int itemId) {
        for(DrawerItem item: mDrawerItems){
            formatNavDrawerItem(item, itemId == item.getId());
        }
    }
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);
		}
	}
429333
public void setItems(java.util.Collection<ApiMapping> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<ApiMapping>(items);
    }
1040497
public JQMList addItems(Collection<String> items) {
        for (String item : items)
            addItem(item);
        return this;
    }
684961
public void setAll(int index, Collection<? extends Byte> items) {
    rangeCheck(index, index + items.size());
    for (byte e : items) {
      elements[index++] = e;
    }
  }
140617
public void setItems(java.util.Collection<Route> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Route>(items);
    }
701476
@Deprecated
	public void setSelectedItems(final List<WComponent> selectedItems) {
		if (selectedItems == null || selectedItems.isEmpty()) {
			setSelectedMenuItems(null);
		} else {
			List<MenuItemSelectable> items = new ArrayList(selectedItems);
			setSelectedMenuItems(items);
		}
	}
1123736
public FastItemAdapter<Item> setNewList(List<Item> items, boolean retainFilter) {
        getItemAdapter().setNewList(items, retainFilter);
        return this;
    }
238616
public static Defaultable<Boolean> ifAllExplicitlySet(Defaultable<?>... items) {
        return bool(() -> {
            for (Defaultable<?> item : items) {
                if (!item.isExplicit()) {
                    return false;
                }
            }
            return true;
        });
    }
1267891
public synchronized ComboBox<V> remoteItem(int index) {
        items.remove(index);
        if(index < selectedIndex) {
            setSelectedIndex(selectedIndex - 1);
        }
        else if(index == selectedIndex) {
            setSelectedIndex(-1);
        }
        invalidate();
        return this;
    }
26668
public void setItems(java.util.Collection<Model> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Model>(items);
    }
1261527
@SafeVarargs
    public final FastAdapterBottomSheetDialog<Item> add(int position, Item... items) {
        mItemAdapter.add(position, items);
        return this;
    }
24408
protected void init(Map<String, String> items) {

        initWidget(m_panel);
        m_items = new LinkedHashMap<String, String>(items);
        m_panel.setStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().multiCheckBox());
        m_panel.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().textMedium());
        FocusHandler focusHandler = new FocusHandler() {

            public void onFocus(FocusEvent event) {

                CmsDomUtil.fireFocusEvent(CmsMultiCheckBox.this);
            }
        };
        for (Map.Entry<String, String> entry : items.entrySet()) {
            String value = entry.getValue();
            CmsCheckBox checkbox = new CmsCheckBox(value);
            // wrap the check boxes in FlowPanels to arrange them vertically
            FlowPanel checkboxWrapper = new FlowPanel();
            checkboxWrapper.add(checkbox);
            checkbox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {

                public void onValueChange(ValueChangeEvent<Boolean> valueChanged) {

                    fireValueChanged(getFormValueAsString());
                }
            });
            checkbox.getButton().addFocusHandler(focusHandler);
            m_panel.add(checkboxWrapper);
            m_checkboxes.add(checkbox);
        }
        m_panel.add(m_error);
    }
283375
public void setItems(java.util.Collection<java.util.Map<String,AttributeValue>> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        java.util.List<java.util.Map<String,AttributeValue>> itemsCopy = new java.util.ArrayList<java.util.Map<String,AttributeValue>>(items.size());
        itemsCopy.addAll(items);
        this.items = itemsCopy;
    }
454009
public void changeSelection(Set<CmsAliasTableRow> selectedSet) {

        boolean selectionEmpty = selectedSet.isEmpty();
        m_view.setDeleteButtonEnabled(!selectionEmpty);
    }
1256635
public void setSelected(String s)
    {
        for (int i = 0; i < listBox.getItemCount(); i++)
        {
            if (listBox.getItemText(i).equals(s))
                listBox.setSelectedIndex(i);
        }
    }