fill entries of the listbox.

@param pids list of entries
542869
public final void fillEntries(final Collection<T> pids) {
    final List<IdAndNameBean<T>> entries = new ArrayList<>();
    for (final T proEnum : pids) {
      entries.add(new IdAndNameBean<>(proEnum, this.messages.name(proEnum)));
    }
    if (this.sortOrder != null) {
      switch (this.sortOrder) {
        case ID_ASC:
          Collections.sort(entries, new IdAndNameIdComperator<T>());
          break;
        case ID_DSC:
          Collections.sort(entries, Collections.reverseOrder(new IdAndNameIdComperator<T>()));
          break;
        case NAME_ASC:
          Collections.sort(entries, new IdAndNameNameComperator<T>());
          break;
        case NAME_DSC:
          Collections.sort(entries, Collections.reverseOrder(new IdAndNameNameComperator<T>()));
          break;
        default:
          break;
      }
    }
    fillEntryCollections(entries);
  }
113266
protected void fill(GroupContainerPopulator containerPopulator, Object controlFactory,
			CommandButtonConfigurer buttonConfigurer, java.util.List previousButtons) {
		Assert.notNull(containerPopulator, "containerPopulator");
		containerPopulator.add(component);
	}
200426
public final void addEntries(Iterator<Entry<?>> entries) {
        if (entries != null) {
            while (entries.hasNext()) {
                addEntry(entries.next());
            }
        }
    }
523029
private function fill()
    {
        foreach ($this->grid as $r => $row) {
            foreach ($row as $c => $cell) {
                if ($cell === null) {
                    $this->grid[$r][$c] = $this->alphabet->randomLetter();
                }
            }
        }
        // fill them
    }
1108942
private void fillUpSphereDelimiters() {
        logger.debug("Sphere: " + sphere);
        for (int f = sphere; f < 4; f++) {
            HOSECode.append(sphereDelimiters[f]);
        }
    }
958817
@Override
  public final <T> void fill(final Map<String, Object> pAddParam,
    final T pEntity, final IRecordSet<RS> pSource) throws Exception {
    @SuppressWarnings("unchecked")
    IFillerObjectFields<T> filler = (IFillerObjectFields<T>)
      fillersFieldsFactory.lazyGet(pAddParam, pEntity.getClass());
    TableSql tableSql = this.tablesMap.get(pEntity.getClass().getSimpleName());
    @SuppressWarnings("unchecked")
    Collection<String> fieldsNames = (Collection<String>) pAddParam.
      get(pEntity.getClass().getSimpleName() + "neededFields");
    if (fieldsNames == null) {
      fieldsNames = tableSql.getFieldsMap().keySet();
    }
    boolean isDbgSh = this.logger.getDbgSh(this.getClass())
      && this.logger.getDbgFl() < 7031 && this.logger.getDbgCl() > 7033;
    String currentLevelNm = "currentLevel";
    @SuppressWarnings("unchecked")
    List<Integer> currentLevel = (List<Integer>) pAddParam.get(currentLevelNm);
    String deepLevelNm = "deepLevel";
    @SuppressWarnings("unchecked")
    List<Integer> deepLevel = (List<Integer>) pAddParam.get(deepLevelNm);
    @SuppressWarnings("unchecked")
    List<String> foreignFieldNms = (List<String>)
      pAddParam.get("foreignFieldNms");
    for (String fieldName : fieldsNames) {
      if (!tableSql.getFieldsMap().get(fieldName).getTypeField()
            .equals(ETypeField.DERIVED_FROM_COMPOSITE)) {
        String convName = this.fieldConverterNamesHolder.getFor(pEntity
         .getClass(), fieldName);
        IConverterByName<IRecordSet<RS>, ?> conv = this.convertersFieldsFatory
          .lazyGet(pAddParam, convName);
        if (conv != null) { // e.g. transient or composite (non-foreign) itsId
          try {
            Field field = this.fieldsRapiHolder
              .getFor(pEntity.getClass(), fieldName);
            String parName;
            String tableAlias;
            if (currentLevel.get(0) > 1) { // in TOP level
              String currForeignFieldNm = foreignFieldNms
                .get(foreignFieldNms.size() - 1);
              tableAlias = currForeignFieldNm.toUpperCase();
            } else {
              tableAlias = "";
            }
            if (Enum.class.isAssignableFrom(field.getType())) {
              parName = tableAlias + fieldName.toUpperCase();
              pAddParam.put("fieldClass", field.getType());
            } else {
              if (tableSql.getFieldsMap().get(fieldName)
                .getForeignEntity() != null) {
                Integer deepLevelReq = (Integer) pAddParam.get(pEntity
                  .getClass().getSimpleName() + fieldName + deepLevelNm);
                if (deepLevelReq != null) {
                  //sub-entities with overridden deep:
                  currentLevel.add(1);
                  deepLevel.add(deepLevelReq);
                } //nothing for sub-entities
                if (deepLevel.size() != currentLevel.size()) {
                  throw new Exception(
                "Algorithm error: deepLevel.size/currentLevel.size/Entity/Field"
                  + deepLevel.size() + "/" + currentLevel.size() + "/"
                    + pEntity.getClass().getSimpleName() + "/" + fieldName);
                }
                parName = fieldName;
                 //table current alias for name
                foreignFieldNms.add(fieldName);
                // foreign entity class for factory:
                pAddParam.put("fieldClass", field.getType());
                pAddParam.put("entityClass", pEntity.getClass());
                if (isDbgSh) {
                  StringBuffer sb = new StringBuffer();
                  sb.append("deepLevel size/value1/value...: " + deepLevel
                    .size() + "/");
                  for (Integer dl : deepLevel) {
                    sb.append(dl + "/");
                  }
                  sb.append("\ncurrentLevel size/value1/value...: "
                    + currentLevel.size() + "/");
                  for (Integer cl : currentLevel) {
                    sb.append(cl + "/");
                  }
                  sb.append("\nforeignFieldNms size/value1/value...: "
                    + foreignFieldNms.size() + "/");
                  for (String fln : foreignFieldNms) {
                    sb.append(fln + "/");
                  }
                  sb.append("\nForeign class/fieldNm/type: "
                    + pEntity.getClass().getSimpleName() + "/" + fieldName + "/"
                     + field.getType().getSimpleName());
                  this.logger.debug(null, FillerEntitiesFromRs.class,
                    sb.toString());
                }
              } else {
                parName = tableAlias + fieldName.toUpperCase();
              }
            }
            Object fieldVal = conv.convert(pAddParam, pSource, parName);
            if (isDbgSh) {
              this.logger.debug(null, FillerEntitiesFromRs.class,
                "Converted from RS class/field/type/converter/value: "
                  + pEntity.getClass().getSimpleName() + "/" + fieldName + "/"
                    + field.getType().getSimpleName() + "/"
                      + conv.getClass().getSimpleName() + "/" + fieldVal);
            }
            filler.fill(pAddParam, pEntity, fieldVal, fieldName);
          } catch (Exception ex) {
            String msg = "Can't fill field/class: " + fieldName + "/"
              + pEntity.getClass().getCanonicalName();
            throw new ExceptionWithCode(ExceptionWithCode.SOMETHING_WRONG,
              msg, ex);
          }
        }
      }
    }
    pAddParam.remove("fieldClass");
    pAddParam.remove("entityClass");
  }
75362
public void setFilled(final boolean FILLED) {
        this.filled = FILLED;
        init(INNER_BOUNDS.width, INNER_BOUNDS.height);
        repaint(INNER_BOUNDS);
    }
666368
protected void fill(GroupContainerPopulator containerPopulator,
                        Object controlFactory,
                        CommandButtonConfigurer configurer,
                        List previousButtons) {

        Assert.notNull(containerPopulator, "containerPopulator");
        Assert.notNull(controlFactory, "controlFactory");
        Assert.notNull(configurer, "configurer");

        if (members.size() > 0 && isLeadingSeparator()) {
            containerPopulator.addSeparator();
        }

        for (Iterator iterator = members.iterator(); iterator.hasNext();) {
            GroupMember member = (GroupMember)iterator.next();
            member.fill(containerPopulator, controlFactory, configurer, previousButtons);
        }

        if (members.size() > 0 && isEndingSeparator()) {
            containerPopulator.addSeparator();
        }

    }
243583
public void setPrefixListIds(java.util.Collection<String> prefixListIds) {
        if (prefixListIds == null) {
            this.prefixListIds = null;
            return;
        }

        this.prefixListIds = new com.amazonaws.internal.SdkInternalList<String>(prefixListIds);
    }
1051976
protected void fillMissingParameters() {
    if (dest == null) {
      dest = Key.make();
    }
    if (seed == -1) {
      seed = new Random().nextLong();
      Log.info("Generated seed: " + seed);
    }
  }
958376
protected void fillList() {

        try {
            getList().setContent(getListItems());
            // initialize detail columns
            Iterator<CmsListItemDetails> itDetails = getList().getMetadata().getItemDetailDefinitions().iterator();
            while (itDetails.hasNext()) {
                initializeDetail(itDetails.next().getId());
            }
        } catch (Exception e) {
            throw new CmsRuntimeException(
                Messages.get().container(Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null),
                e);
        }
    }
60279
private void processUsers(ConfigurationAdmin configAdmin,
                              String roleName,
                              Dictionary<String, Object> roleProps, Set<String> pids) {

        String[] userPids = (String[]) roleProps.get(CFG_KEY_USER);
        if (userPids == null || userPids.length == 0) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "No users in role " + roleName);
            }
        } else {
            Set<String> badUsers = new HashSet<String>();
            Set<String> badAccessIds = new HashSet<String>();
            for (int i = 0; i < userPids.length; i++) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "user pid " + i + ": " + userPids[i]);
                }
                pids.add(userPids[i]);
                Configuration userConfig = null;
                try {
                    userConfig = configAdmin.getConfiguration(userPids[i], bundleLocation);
                } catch (IOException ioe) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                        Tr.debug(tc, "Invalid user entry " + userPids[i]);
                    }
                    continue;
                }
                if (userConfig == null || userConfig.getProperties() == null) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                        Tr.debug(tc, "Null user element", userPids[i]);
                    }
                    continue;
                }

                Dictionary<String, Object> userProps = userConfig.getProperties();
                final String name = (String) userProps.get("name");
                final String accessId = (String) userProps.get("access-id");
                if (name == null || name.trim().isEmpty()) {
                    continue;
                }
                if (accessId != null && AccessIdUtil.isUserAccessId(accessId)) {
                    if (badAccessIds.contains(accessId)) {
                        // This accessId is already flagged as a duplicate
                        continue;
                    }
                    if (!accessIds.add(accessId)) {
                        Tr.error(tc, "AUTHZ_TABLE_DUPLICATE_ROLE_MEMBER", getRoleName(), CFG_KEY_ACCESSID, accessId);
                        badAccessIds.add(accessId);
                        accessIds.remove(accessId);
                    }
                } else {
                    // TODO: check for bad access id
                    if (badUsers.contains(name)) {
                        // This user is already flagged as a duplicate
                        continue;
                    }
                    if (name.trim().isEmpty()) {
                        // Empty entry, ignoring
                        continue;
                    }
                    if (!users.add(name)) {
                        Tr.error(tc, "AUTHZ_TABLE_DUPLICATE_ROLE_MEMBER", getRoleName(), CFG_KEY_USER, name);
                        badUsers.add(name);
                        users.remove(name);
                    }
                }
            }
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Role " + roleName + " has users:", users);
            }
        }
    }
1057781
public void setWorkerIds(java.util.Collection<String> workerIds) {
        if (workerIds == null) {
            this.workerIds = null;
            return;
        }

        this.workerIds = new java.util.ArrayList<String>(workerIds);
    }
47086
public void fillDefault(List<CmsSitemapEntryBean> entries) {

        if (!m_disableFillDefault) {
            fill(entries);
            selectSite(m_handler.getDefaultSelectedSiteRoot());
        }
    }
815748
public void setItemIds(@Nullable ItemIds<? super T> itemIds) {
        if (this.itemIds != itemIds) {
            this.itemIds = itemIds;
            setHasStableIds(itemIds != null);
        }
    }
870531
protected void fill() throws IOException 
    {
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"fill", "fill");
        } 
        
        // PK79219 Start
        long longLeft = limit-total;
        int len;
    	if (longLeft>Integer.MAX_VALUE)
    		len = buf.length;
    	else
            len = Math.min(buf.length, (int)longLeft);
    	// PK79219 End	
    	
        if ( len > 0 )
        {
            len = in.read(buf, 0, len);
            if ( len > 0 )
            {
                pos = 0;
                count = len;
            }
        }
    }
1030003
private static function populateIds(&$insertModels, $pks, $lastPk, $insertedCount)
    {
        while($insertedCount > 0 && $insertedCount <= count($insertModels))
        {
            $insertedCount--;
            $model = $insertModels[$insertedCount];
            $model->{$pks[0]} = $lastPk;
            $lastPk = intval($lastPk) - 1;
        }
    }