Package org.olat.core.gui.components.table

Examples of org.olat.core.gui.components.table.TableGuiConfiguration


      PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(DialogElement.class), "", businessPath);
      csCtr = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
      content.put("subscription", csCtr.getInitialComponent());
    }
    //configure and display table
    tableConf = new TableGuiConfiguration();
    tableConf.setResultsPerPage(TABLE_RESULTS_PER_PAGE);
    tableConf.setPreferencesOffered(true, "FileDialogElementsTable");
    tableConf.setDownloadOffered(true);
    dialogPanel = putInitialPanel(content);
    showOverviewTable(ureq, forumCallback);
View Full Code Here


  /**
   * @param ureq
   */
  private void doNodeChoose(UserRequest ureq) {
    // table configuraton
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("nodesoverview.nonodes"));
    tableConfig.setDownloadOffered(false);
    tableConfig.setColumnMovingOffered(false);
    tableConfig.setSortingEnabled(false);
    tableConfig.setDisplayTableHeader(true);
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);

    nodeListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    // table columns
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0, null, ureq.getLocale(),
        ColumnDescriptor.ALIGNMENT_LEFT, new IndentedNodeRenderer()));
View Full Code Here

  public RepoEntryCategoriesTableController(UserRequest ureq, WindowControl wControl, RepositoryEntry repoEntry, boolean canManageRepoEntry) {
    super(ureq, wControl);
    this.repoEntry = repoEntry;

    // table configuration: use plain vanilla table - no header etc.
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setColumnMovingOffered(false);
    tableConfig.setCustomCssClass("o_catalog_categories_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setDownloadOffered(false);
    tableConfig.setMultiSelect(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setTableEmptyMessage(translate("repo.nocategories"));

    // build categoris list table model
    List<CatalogEntry> catalogEntries = CatalogManager.getInstance().getCatalogCategoriesFor(repoEntry);
    CategoriesListModel categoriesListModel = new CategoriesListModel(catalogEntries, getLocale());
    // create table
View Full Code Here

   
    Date date = new Date();
    String today = DateFormat.getTimeInstance(DateFormat.MEDIUM, ureq.getLocale()).format(date);
    calendarVC.contextPut("today", today);

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("calendar.noEvents"));
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setCustomCssClass("b_portlet_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setDownloadOffered(false);
    tableController = new TableController(tableConfig, ureq, getWindowControl(), trans, this);
    // dummy header key, won't be used since setDisplayTableHeader is set to
    // false
    tableController.addColumnDescriptor(new DefaultColumnDescriptor("calendar.date", 0, null, trans.getLocale()));
    tableController.addColumnDescriptor(new DefaultColumnDescriptor("calendar.subject", 1, CMD_LAUNCH, trans.getLocale(),
View Full Code Here

    wikiVersionDisplayComp.addListener(this);
    wikiVersionDisplayComp.setImageMapperUri(ureq, wikiContainer);
    tabs.addTab(translate("tab.versions"), versioningContent);
    if (this.securityCallback.mayEditAndCreateArticle()) revertVersionButton = LinkFactory.createButton("revert.old.version", versioningContent, this);
   
    tableConfig = new TableGuiConfiguration();
    tableConfig.setPageingEnabled(true);
    tableConfig.setResultsPerPage(10);
    tableConfig.setSelectedRowUnselectable(true);

    content.put("wikiTabs", tabs);
View Full Code Here

    else ureq.getDispatchResult().setResultingMediaResource(new VFSMediaResource(leaf));
  }


  private void refreshTableDataModel(UserRequest ureq) {
    mediaTableCtr = new TableController(new TableGuiConfiguration(), ureq, getWindowControl(), getTranslator(), null);
    mediaTableCtr.setMultiSelect(true);
    mediaTableCtr.addMultiSelectAction(ACTION_DELETE_MEDIAS, ACTION_DELETE_MEDIAS);
    listenTo(mediaTableCtr);
   
    List filelist = getWiki().getMediaFileListWithMetadata();
View Full Code Here

   *
   * @param ureq
   */
  private void doNodeChoose(UserRequest ureq){
      //table configuraton
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("fonodesoverview.nonodes"));
    tableConfig.setDownloadOffered(false);
    tableConfig.setColumnMovingOffered(false);
    tableConfig.setSortingEnabled(false);
    tableConfig.setDisplayTableHeader(true);
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
   
    nodeListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    // table columns   
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0,
        null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, new IndentedNodeRenderer()));
View Full Code Here

      PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(Forum.class), data, businessPath);
      csc = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
      vcListTitles.put("subscription", csc.getInitialComponent());
    }

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setCustomCssClass("o_forum");
    tableConfig.setSelectedRowUnselectable(true);
    tableConfig.setDownloadOffered(false);
    tableConfig.setTableEmptyMessage(translate("forum.emtpy"));

    allThreadTableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this)
    allThreadTableCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.typeimg", 0, null,
        ureq.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, new MessageIconRenderer()));
    allThreadTableCtr.addColumnDescriptor(new StickyRenderColumnDescriptor("table.thread", 1, CMD_SHOWDETAIL, ureq.getLocale(),
View Full Code Here

            return 4;
          }
      };
     
      //prepare the table config
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setCustomCssClass("o_forum");
      tableConfig.setSelectedRowUnselectable(true);
      tableConfig.setDownloadOffered(false);
      tableConfig.setTableEmptyMessage(translate("forum.emtpy"));
     
      //prepare the table controller
      moveMessageTableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
      moveMessageTableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.thread", 0, null, ureq.getLocale()));
      moveMessageTableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.userfriendlyname", 1, null, ureq.getLocale()));
View Full Code Here

    userAutoCompleterCtr = new AutoCompleterController(ureq, wControl, userListProvider, "", false);
    listenTo(userAutoCompleterCtr);
   
    dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, ureq.getLocale());

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setColumnMovingOffered(true);
    tableConfig.setSortingEnabled(true);
   
    userListCtr = new TableController(tableConfig, ureq, wControl, getTranslator(), null);
    DefaultColumnDescriptor  lastNameDesc = new DefaultColumnDescriptor("table.user.lastname", 0, CMD_HOMEPAGE, ureq.getLocale());
    lastNameDesc.setIsPopUpWindowAction(true, "height=600, width=900, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no");
    userListCtr.addColumnDescriptor(lastNameDesc);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.table.TableGuiConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.