Filters out invisible context menu items from a given list.<p>

@param items the items

@return the list of context menu items
347276
public List<I_CmsContextMenuItem> filterVisible(List<I_CmsContextMenuItem> items) {

        List<I_CmsContextMenuItem> result = Lists.newArrayList();
        for (I_CmsContextMenuItem item : items) {
            CmsMenuItemVisibilityMode visibility = getVisibility(item);
            if (!visibility.isInVisible()) {
                result.add(item);
            }
        }
        return result;
    }
938235
List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        if (m_menuEntries == null) {
            m_menuEntries = new ArrayList<I_CmsSimpleContextMenuEntry<Set<String>>>();
            m_menuEntries.add(new EditEntry());
            m_menuEntries.add(new SchemaEditorEntry());
            m_menuEntries.add(new SearchEntry());
            m_menuEntries.add(new MoveEntry());
            m_menuEntries.add(new DeleteEntry());
        }
        return m_menuEntries;
    }
744077
public ModelAdapter<Model, Item> set(List<Model> items) {
        return set(items, true);
    }
29834
public void setItems(java.util.Collection<DocumentationPart> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<DocumentationPart>(items);
    }
724635
public static List<MenuItem> getVisibleMenuItemList(@NonNull Toolbar toolbar) {
        List<MenuItem> list = new ArrayList<>();
        for (int i = 0; i < toolbar.getChildCount(); i++) {
            final View v = toolbar.getChildAt(i);
            if (v instanceof ActionMenuView) {
                int childCount = ((ActionMenuView) v).getChildCount();
                for (int j = 0; j < childCount; j++) {
                    final View innerView = ((ActionMenuView) v).getChildAt(j);
                    if (innerView instanceof ActionMenuItemView) {
                        list.add(((ActionMenuItemView) innerView).getItemData());
                    }
                }
            }
        }
        return list;
    }
542184
public FacetBuilder setItemsList(Map<String, String> items) {
        ArrayList<FacetWidgetItem> facetWidgetItems = new ArrayList<FacetWidgetItem>();

        for (String key : items.keySet()){
            String label = items.get(key);
            FacetWidgetItem facetWidgetItem = new FacetWidgetItem(key, label);
            facetWidgetItems.add(facetWidgetItem);
        }
        this.listItems = facetWidgetItems;
        return this;
    }
104695
public void setItems(java.util.Collection<ClientCertificate> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<ClientCertificate>(items);
    }
1129818
@SafeVarargs
    public final void addAll(T... items) {
        final int length = items.length;
        if (length == 0) {
            return;
        }
        synchronized (mLock) {
            final int position = getItemCount();
            Collections.addAll(mObjects, items);
            notifyItemRangeInserted(position, length);
        }
    }
1186167
public static String toNameList(Collection<? extends Item> items) {
        StringBuilder buf = new StringBuilder();
        for (Item item : items) {
            if(buf.length()>0)
                buf.append(", ");
            buf.append(item.getFullName());
        }
        return buf.toString();
    }
868718
public List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        if (m_menuEntries == null) {
            m_menuEntries = new ArrayList<I_CmsSimpleContextMenuEntry<Set<String>>>();
            m_menuEntries.add(new EditEntry());
            m_menuEntries.add(new ActivateEntry());
            m_menuEntries.add(new DeActivateEntry());
            m_menuEntries.add(new CopyEntry());
            m_menuEntries.add(new DeleteEntry());
            m_menuEntries.add(new RunEntry());
        }
        return m_menuEntries;
    }
1045235
protected Map<Term, TermContext> getTermContexts(
      List<MtasSpanNotQueryWeight> items) {
    List<SpanWeight> weights = new ArrayList<>();
    for (MtasSpanNotQueryWeight item : items) {
      weights.add(item.spanWeight);
    }
    return getTermContexts(weights);
  }
39400
public void setItems(java.util.Collection<IntegrationResponse> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<IntegrationResponse>(items);
    }
1285472
public static FullTextIndex fullTextIndex(@NonNull FullTextIndexItem... items) {
        if (items == null) {
            throw new IllegalArgumentException("items cannot be null.");
        }
        return new FullTextIndex(items);
    }
694938
List<I_CmsSimpleContextMenuEntry<Set<String>>> getMenuEntries() {

        if (m_menuEntries == null) {
            m_menuEntries = new ArrayList<I_CmsSimpleContextMenuEntry<Set<String>>>();
            m_menuEntries.add(new EntryOpen());
            //            m_menuEntries.add(new EntryEditRole());
            //            m_menuEntries.add(new EntryEditGroup());
            //            m_menuEntries.add(new EntryShowResources());
            //            m_menuEntries.add(new EntryAddInfos());
            //            m_menuEntries.add(new EntrySwitchUser());
            //            m_menuEntries.add(new EntryRemoveFromGroup());
            //            m_menuEntries.add(new EntryDelete());
            //            m_menuEntries.add(new EntryKillSession());
        }
        return m_menuEntries;
    }
988300
public void setItems(Map<String, String> items) {

        clearItems();
        m_items = items;
        for (Map.Entry<String, String> entry : items.entrySet()) {
            addOption(entry.getKey(), entry.getValue());
        }
    }
175304
private I_CmsContextMenuItem findDefaultAction(Collection<I_CmsContextMenuItem> items) {

        I_CmsContextMenuItem result = null;
        int resultRank = -1;
        for (I_CmsContextMenuItem menuItem : items) {
            if ((menuItem instanceof CmsContextMenuActionItem)
                && (((CmsContextMenuActionItem)menuItem).getWorkplaceAction() instanceof I_CmsDefaultAction)) {
                I_CmsDefaultAction action = (I_CmsDefaultAction)((CmsContextMenuActionItem)menuItem).getWorkplaceAction();
                if (getVisibility(menuItem).isActive()) {
                    if (result == null) {
                        result = menuItem;
                        resultRank = action.getDefaultActionRank(m_context);
                    } else {
                        int rank = action.getDefaultActionRank(m_context);
                        if (rank > resultRank) {
                            result = menuItem;
                            resultRank = rank;
                        }
                    }
                }
            }
        }
        return result;
    }
1040497
public JQMList addItems(Collection<String> items) {
        for (String item : items)
            addItem(item);
        return this;
    }