Fills the given item.<p>

@param item the data view item
@param target the table item
338301
public void fillItem(I_CmsDataViewItem item, Item target) {

        for (CmsDataViewColumn column : m_dataView.getColumns()) {
            String name = column.getId();
            Object value = CmsColumnValueConverter.getColumnValue(item.getColumnData(name), column.getType());
            target.getItemProperty(name).setValue(value);
        }
        target.getItemProperty(CmsDataViewPanel.ID_COLUMN).setValue(item.getId());
    }
549162
public void setItem(java.util.Collection<ApplicationResponse> item) {
        if (item == null) {
            this.item = null;
            return;
        }

        this.item = new java.util.ArrayList<ApplicationResponse>(item);
    }
186285
protected void expandItems(MaterialTreeItem item) {
        item.expand();
        item.setHide(true);
        item.getTreeItems().forEach(this::expandItems);
    }
1003317
public void setItem(java.util.Collection<ImportJobResponse> item) {
        if (item == null) {
            this.item = null;
            return;
        }

        this.item = new java.util.ArrayList<ImportJobResponse>(item);
    }
1339363
public void insertAdapterItem(TwinTextItem item, int index) {
        int selection = getSelectedItemPosition();
        Object selectedItem = getSelectedItem();
        ((PickerSpinnerAdapter) getAdapter()).insert(item, index);
        // select the new item if there was an equal temporary item selected
        if(selectedItem.equals(item))
            setSelectionQuietly(index);
        // otherwise keep track when inserting above the selection
        else if(index <= selection)
            setSelectionQuietly(selection+1);
    }
1197649
public void setFocusedItem(T item) {
        final int itemId = getIdForItem(item);
        if (itemId == INVALID_ID) {
            return;
        }

        performAction(itemId, AccessibilityNodeInfoCompat.ACTION_ACCESSIBILITY_FOCUS, null);
    }
978402
protected void openPopup(final A_CmsContextMenuItem item) {

        m_popup.add(item.getSubMenu());
        m_popup.addAutoHidePartner(item.getElement());
        m_popup.setModal(false);
        m_popup.show();

        setSubMenuPosition(item);

        if (m_isFixed) {
            m_popup.setPositionFixed();
        }
    }
1008819
public void setItem(java.util.Collection<Stage> item) {
        if (item == null) {
            this.item = null;
            return;
        }

        this.item = new java.util.ArrayList<Stage>(item);
    }
735379
public void fillContent(List<CmsGalleryFolderBean> galleryInfos, List<String> selectedGalleries) {

        clearList();
        m_selectedGalleries = selectedGalleries;
        if (!galleryInfos.isEmpty()) {
            for (CmsGalleryFolderBean galleryInfo : galleryInfos) {
                m_galleries.put(galleryInfo.getPath(), galleryInfo);
            }

            m_itemIterator = new ListItemGenerator(galleryInfos);
            loadMoreItems();
        } else {
            showIsEmptyLabel();
        }
        onContentChange();
    }
1020988
public void updateItem (T item)
    {
        if (_items == null) {
            return;
        }
        int idx = _items.indexOf(item);
        if (idx == -1) {
            _items.add(0, item);
        } else {
            _items.set(idx, item);
        }
    }
1341664
public void addSubItem(WebMenuItem item){
		if (subMenu == null){
			subMenu = new ArrayList<WebMenuItem>();
		}
		subMenu.add(item);
	}
791850
public final void set(final int index, @NonNull final AbstractItem item) {
        Condition.INSTANCE.ensureNotNull(item, "The item may not be null");
        AbstractItem replacedItem = items.set(index, item);

        if (replacedItem instanceof Item && ((Item) replacedItem).getIcon() != null) {
            iconCount--;
        } else if (replacedItem instanceof Divider) {
            dividerCount--;
        }

        if (item instanceof Item && ((Item) item).getIcon() != null) {
            iconCount++;
        } else if (item instanceof Divider) {
            dividerCount++;
        }

        rawItems = null;
        notifyOnDataSetChanged();
    }
2130
public synchronized void push(@Nullable T item) {
        if( waiting == null ) {
            throw new IllegalStateException("Invalid attempt to add an item to a completed list.");
        }
        if( filter != null ) {
            try {
                if( !filter.filter(item) ) {
                    return;
                }
            }
            catch( Throwable t ) {
                logger.error("[" + this + "] Error filtering " + item + ": " + t.getMessage());
                Exception e;
                
                if( t instanceof Exception ) {
                    e = (Exception)t;
                }
                else {
                    e = new RuntimeException(t);
                }
                setLoadException(e);
                return;
            }
        }
        waiting.add(item);
        lastTouch = System.currentTimeMillis();
        notifyAll();
    }
1118573
public void put(T item, String itemId) throws Exception
    {
        put(item, itemId, 0, null);
    }
500062
protected void setUserData(CmsUser user, CmsListItem item) {

        item.set(LIST_COLUMN_LOGIN, user.getName());
        item.set(LIST_COLUMN_DISPLAY, user.getSimpleName());
        item.set(LIST_COLUMN_NAME, user.getFullName());
        item.set(LIST_COLUMN_EMAIL, user.getEmail());
        item.set(LIST_COLUMN_LASTLOGIN, new Date(user.getLastlogin()));
        item.set(LIST_COLUMN_ENABLED, new Boolean(user.isEnabled()));
    }
1277873
@SafeVarargs
    public static <Item> void flatten(final Collection<? super Item> target, final Item... items) {
        flattenAsStream(items).forEachOrdered(target::add);
    }
759060
private void fillItem(final CmsResource resource, final CmsListItem item, final int id) {

        CmsObject cms = getCms();
        CmsXmlContent xmlContent;

        I_CmsResourceType type;
        String iconPath;

        // fill path column:
        String sitePath = cms.getSitePath(resource);
        item.set(LIST_COLUMN_PATH, sitePath);

        // fill language node existence column:
        item.set(LIST_COLUMN_PATH, sitePath);
        boolean languageNodeExists = false;
        String languageNodeHtml;

        List<Locale> sysLocales = OpenCms.getLocaleManager().getAvailableLocales();
        try {
            xmlContent = CmsXmlContentFactory.unmarshal(cms, cms.readFile(resource));
            for (Locale locale : sysLocales) {
                languageNodeExists = xmlContent.hasLocale(locale);
                if (languageNodeExists) {
                    languageNodeHtml = "<input type=\"checkbox\" checked=\"checked\" disabled=\"disabled\"/>";
                } else {
                    languageNodeHtml = "<input type=\"checkbox\" disabled=\"disabled\"/>";
                }
                item.set(locale.toString(), languageNodeHtml);

            }
        } catch (Throwable e1) {
            LOG.error(Messages.get().getBundle().key(Messages.LOG_ERR_LANGUAGECOPY_DETERMINE_LANGUAGE_NODE_1), e1);
            languageNodeHtml = "n/a";
            for (Locale locale : sysLocales) {
                item.set(locale.toString(), languageNodeHtml);
            }
        }

        // type column:
        type = OpenCms.getResourceManager().getResourceType(resource);
        item.set(LIST_COLUMN_RESOURCETYPE, type.getTypeName());

        // icon column with title property for tooltip:
        String title = "";
        try {
            CmsProperty titleProperty = cms.readPropertyObject(resource, CmsPropertyDefinition.PROPERTY_TITLE, true);
            title = titleProperty.getValue();
        } catch (CmsException e) {
            LOG.warn(Messages.get().getBundle().key(Messages.LOG_WARN_LANGUAGECOPY_READPROP_1), e);
        }

        iconPath = getSkinUri()
            + CmsWorkplace.RES_PATH_FILETYPES
            + OpenCms.getWorkplaceManager().getExplorerTypeSetting(type.getTypeName()).getIcon();
        String iconImage;
        iconImage = "<img src=\"" + iconPath + "\" alt=\"" + type.getTypeName() + "\" title=\"" + title + "\" />";
        item.set(LIST_COLUMN_ICON, iconImage);
    }