code: public CmsFileExplorerSettings getTableSettings() {
  
          CmsFileExplorerSettings fileTableState = new CmsFileExplorerSettings();
  
          fileTableState.setSortAscending(m_fileTable.isSortAscending());
          fileTableState.setSortColumnId((CmsResourceTableProperty)m_fileTable.getSortContainerPropertyId());
          List<CmsResourceTableProperty> collapsedCollumns = new ArrayList<CmsResourceTableProperty>();
          Object[] visibleCols = m_fileTable.getVisibleColumns();
          for (int i = 0; i < visibleCols.length; i++) {
              if (m_fileTable.isColumnCollapsed(visibleCols[i])) {
                  collapsedCollumns.add((CmsResourceTableProperty)visibleCols[i]);
              }
          }
          fileTableState.setCollapsedColumns(collapsedCollumns);
          return fileTableState;
      }
docs: Returns the current table state.<p>
  
  @return the table state