code: 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);
    }
docs: fill entries of the listbox.
  
  @param pids list of entries