code: protected void addFiles(List<CmsFileInfo> fileInfos) {
  
          if (fileInfos != null) {
              for (CmsFileInfo file : fileInfos) {
  
                  // store all files
                  m_allFiles.put(file.getFileName(), file);
  
                  // add those files to the list of files to upload that potential candidates
                  if (!isTooLarge(file) && (file.getFileSize() != 0)) {
                      m_filesToUpload.put(file.getFileName(), file);
                  }
  
                  // remove those files from the list to upload that were previously unchecked by the user
                  if ((m_listItems.get(file.getFileName()) != null)
                      && (m_listItems.get(file.getFileName()).getCheckBox() != null)
                      && !m_listItems.get(file.getFileName()).getCheckBox().isChecked()) {
                      m_filesToUpload.remove(file.getFileName());
                  }
              }
  
              // now rebuild the list: handle all files
              m_fileList.clearList();
              List<String> sortedFileNames = new ArrayList<String>(m_allFiles.keySet());
              Collections.sort(sortedFileNames, String.CASE_INSENSITIVE_ORDER);
              for (String filename : sortedFileNames) {
                  CmsFileInfo file = m_allFiles.get(filename);
                  addFileToList(file, false, false, isTooLarge(file));
              }
              doResize();
          }
          loadAndShow();
      }
docs: Adds the given file input field to this dialog.<p>
  
  @param fileInfos the file info objects