fill entries of the listbox.

@param pentries list of entries
10429
public final void fillEntryCollections(final Collection<? extends IdAndNameBean<T>> pentries) {
    this.entries.clear();
    this.entries.addAll(pentries);

    clear();
    for (final IdAndNameBean<T> entry : this.entries) {
      this.addItem(entry.getName(), Objects.toString(entry.getId()));
    }
  }
144806
public void setEntries(java.util.Collection<DatasetEntry> entries) {
        if (entries == null) {
            this.entries = null;
            return;
        }

        this.entries = new java.util.ArrayList<DatasetEntry>(entries);
    }
186034
public final void removeEntries(Entry<?>... entries) {
        if (entries != null) {
            for (Entry<?> entry : entries) {
                entry.setCalendar(null);
            }
        }
    }
666132
@Override
  public final void fill(final Map<String, Object> pAddParam,
    final Object pEntity, final String pFieldName,
      final String pFieldStrValue) throws Exception {
    if (SeSeller.class != pEntity.getClass()) {
      throw new ExceptionWithCode(ExceptionWithCode
        .CONFIGURATION_MISTAKE, "It's wrong service to fill that field: "
          + pEntity + "/" + pFieldName + "/" + pFieldStrValue);
    }
    SeSeller seSeller = (SeSeller) pEntity;
    if ("NULL".equals(pFieldStrValue)) {
      seSeller.setUserAuth(null);
      return;
    }
    try {
      UserTomcat ownedEntity = new UserTomcat();
      ownedEntity.setItsUser(pFieldStrValue);
      seSeller.setUserAuth(ownedEntity);
    } catch (Exception ex) {
      throw new ExceptionWithCode(ExceptionWithCode
        .WRONG_PARAMETER, "Can not fill field: " + pEntity + "/" + pFieldName
          + "/" + pFieldStrValue + ", " + ex.getMessage(), ex);
    }
  }
47086
public void fillDefault(List<CmsSitemapEntryBean> entries) {

        if (!m_disableFillDefault) {
            fill(entries);
            selectSite(m_handler.getDefaultSelectedSiteRoot());
        }
    }
938569
protected void fill(GroupContainerPopulator container,
                        Object factory,
                        CommandButtonConfigurer configurer,
                        List previousButtons) {
        container.addSeparator();
    }
796119
public void setEntries(List<E> entries) {
        if (entries == null) {
            this.entries = new ArrayList<>();
        } else {
            this.entries = entries;
        }
    }
320822
public void fillContent(List<CmsResourceTypeBean> typeInfos, List<String> selectedTypes) {

        if (m_types == null) {
            m_types = new HashMap<String, CmsResourceTypeBean>();
        }
        clearList();
        m_types.clear();
        for (CmsResourceTypeBean typeBean : typeInfos) {
            m_types.put(typeBean.getType(), typeBean);
            CmsListItemWidget listItemWidget;
            listItemWidget = new CmsListItemWidget(typeBean);
            listItemWidget.setUnselectable();
            CmsCheckBox checkBox = new CmsCheckBox();
            CmsListItem listItem = new CmsListItem(checkBox, listItemWidget);
            if (typeBean.isDeactivated()) {
                checkBox.disable("");
                listItem.addStyleName(
                    org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().expired());
            } else {
                SelectionHandler selectionHandler = new SelectionHandler(typeBean.getType(), checkBox);
                checkBox.addClickHandler(selectionHandler);
                listItemWidget.addClickHandler(selectionHandler);
                if ((selectedTypes != null) && selectedTypes.contains(typeBean.getType())) {
                    checkBox.setChecked(true);
                }
                listItemWidget.addButton(createSelectButton(selectionHandler));

                if (typeBean.isCreatableType() && (m_dndHandler != null)) {
                    listItem.initMoveHandle(m_dndHandler, true);
                    listItem.getMoveHandle().setTitle(Messages.get().key(Messages.GUI_TAB_TYPES_CREATE_NEW_0));
                }
            }
            listItem.setId(typeBean.getType());

            if (typeBean.getVisibility() == TypeVisibility.showOptional) {
                listItem.addStyleName(I_CmsLayoutBundle.INSTANCE.galleryDialogCss().shouldOnlyShowInFullTypeList());
            }
            addWidgetToList(listItem);
        }
        updateTypeModeToggle();
    }
30160
public void setGrants(java.util.Collection<GrantListEntry> grants) {
        if (grants == null) {
            this.grants = null;
            return;
        }

        this.grants = new com.amazonaws.internal.SdkInternalList<GrantListEntry>(grants);
    }
1292325
@JsonProperty(value = "entries")
    public void setEntries(List<Object> entries) {
        if (entries == null) {
            this.entries = new ArrayList<>();
        } else {
            this.entries = entries;
        }
    }
1028296
@Override
    public synchronized void addToList() {
        clearLists();
        meldungStart();
        fillLists();        
        
        if (Config.getStop()) {
            meldungThreadUndFertig();
        } else if (letterPageUrls.isEmpty()  && dayUrls.isEmpty()) {
            meldungThreadUndFertig();
        } else {
            meldungAddMax(letterPageUrls.size() + dayUrls.size());
            
            startLetterPages();
            startDayPages();
            
            addFilms();
            
            meldungThreadUndFertig();
        }
    }
769193
void fill(int depth)
        {
            long seed = clusteringSeeds[depth - 1];
            Generator gen = generator.clusteringComponents.get(depth);
            gen.setSeed(seed);
            clusteringSeeds[depth] = seed(clusteringComponents[depth - 1].peek(), generator.clusteringComponents.get(depth - 1).type, seed);
            fill(clusteringComponents[depth], (int) gen.clusteringDistribution.next(), gen);
        }
1172801
protected static final List<Entry> copy (final List<Entry> entries) {
        if (entries == null) return null;
        final ArrayList<Entry> copy = new ArrayList<>();
        for (Entry e : entries)
            copy.add(e.copy());
        return copy;
    }

    /**
     * The abstract constructor.
     * <p>
     * Calls {@link #initializeEntries()}.
     */
    public SettingsNegotiator () {
        initializeEntries();
    }

    /**
     * Stores an exact copy of {@link #entries} in {@link #backUpEntries}.
     */
    protected final void backUpEntries () {
        backUpEntries = copy(entries);
    }

    /**
     * This method must be called at the end of a parameter negotiation task, either to roll back any changes that must
     * not take effect, or in order to ensure that consecutive negotiations are carried out correctly.
     * 
     * @param commitChanges <code>true</code> if and only if the negotiated changes to the elements in {@link #entries}
     *            are to be remembered.
     */
    protected final void commitOrRollBackChanges (final boolean commitChanges) {
        if (commitChanges)
            for (Entry e : entries)
                // allow renegotiation where allowed
                e.resetAlreadyNegotiated();
        else
            entries = backUpEntries;// roll back
        backUpEntries = null;// won't be needed anymore
    }

    /**
     * Adds a properly initialized {@link Entry} object to {@link #entries} for every parameter managed by this
     * {@link SettingsNegotiator}.
     */
    protected abstract void initializeEntries ();

    /**
     * Checks constraints that cannot be checked at the {@link Entry} level, e.g. because they depend on the values of
     * multiple parameters.
     * 
     * @return <code>true</code> if everything is fine, <code>false</code> if that is not the case
     */
    public abstract boolean checkConstraints ();
}
811455
public void setKeys(java.util.Collection<KeyListEntry> keys) {
        if (keys == null) {
            this.keys = null;
            return;
        }

        this.keys = new com.ibm.cloud.objectstorage.internal.SdkInternalList<KeyListEntry>(keys);
    }
626007
private void putEntry(String key, CacheHeader entry) {
        if (!mEntries.containsKey(key)) {
            mTotalSize += entry.size;
        } else {
            CacheHeader oldEntry = mEntries.get(key);
            mTotalSize += (entry.size - oldEntry.size);
        }
        mEntries.put(key, entry);
    }
669936
private void logHeaders(Set<Map.Entry<String, List<String>>> entries) {
        for (Map.Entry<String, List<String>> header : entries) {
            if (header.getKey() != null) {
                LOGGER.debug("{}: {}", header.getKey(), header.getValue());
            }
        }
    }
1215257
public void fill(List<CmsBrokenLinkBean> brokenLinkBeans) {

        for (CmsBrokenLinkBean brokenLinkBean : brokenLinkBeans) {
            m_linkPanel.add(createTreeItem(brokenLinkBean));
        }
    }