code: private CmsListItemWidget createFileWidget(CmsFileInfo file) {
  
          String subTitle;
          String resourceType = getResourceType(file);
          if (file.getFileSize() > 0) {
              subTitle = CmsUploadButton.formatBytes(file.getFileSize()) + " (" + getResourceType(file) + ")";
          } else {
              subTitle = resourceType;
          }
          CmsListInfoBean infoBean = new CmsListInfoBean(file.getFileName(), subTitle, null);
          m_fileWidget = new CmsListItemWidget(infoBean);
          m_fileWidget.setIcon(CmsCoreProvider.get().getResourceTypeIcon(file));
          checkFileType();
          return m_fileWidget;
      }
docs: Creates the widget to display the selected file information.<p>
  
  @param file the file info
  
  @return the widget