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

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


   * @param listener
   * @param tableData DENEditTableDataModel
   * @return TableController
   */
  protected TableController createManageDatesTable(UserRequest ureq, WindowControl wControl, Translator trans, DefaultController listener, DENEditTableDataModel tableData) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setColumnMovingOffered(true);
    tableConfig.setResultsPerPage(15);
    tableConfig.setShowAllLinkEnabled(true);
    TableController tableCntrl = new TableController(tableConfig, ureq, wControl, trans, listener);
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.date", 0, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.begin", 1, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.end", 2, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.location", 3, null, ureq.getLocale()));
View Full Code Here


   * @param listener
   * @param tableData DENRunTableDataModel
   * @return TableController
   */
  protected TableController createRunDatesTable(UserRequest ureq, WindowControl wControl, Translator trans, DefaultController listener, DENRunTableDataModel tableData) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("dates.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    TableController tableCntrl = new TableController(tableConfig, ureq, wControl, trans, listener);
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.date", 0, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.begin", 1, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.end", 2, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.location", 3, null, ureq.getLocale()));
View Full Code Here

   * @param listener
   * @param tableData DENListTableDataModel
   * @return TableController
   */
  protected TableController createListParticipantsTable(UserRequest ureq, WindowControl wControl, Translator trans, DefaultController listener, DENListTableDataModel tableData) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("dates.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    TableController tableCntrl = new TableController(tableConfig, ureq, wControl, trans, listener);
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.date", 0, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.begin", 1, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.end", 2, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.location", 3, null, ureq.getLocale()));
View Full Code Here

      }
    }
    Collections.sort(nextEvents, new KalendarEventComparator());
    List<KalendarEvent> nextThreeEvents = nextEvents.subList(0, Math.min(3, nextEvents.size()));

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

    myContent = createVelocityContainer("sessions");
   
    backLink = LinkFactory.createLinkBack(myContent, this);
    sessKillButton = LinkFactory.createButton("sess.kill", myContent, this);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.last", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.first", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.identity", 2, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.authprovider", 3, null, ureq.getLocale()));
View Full Code Here

   
    sortingTermsList.add(SortingCriteria.ALPHABETICAL_SORTING);       
    repoEntriesVC = this.createVelocityContainer("repositoryPortlet");
    showAllLink = LinkFactory.createLink("repositoryPortlet.showAll", repoEntriesVC, this);
     
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("repositoryPortlet.noentry"));
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setCustomCssClass("b_portlet_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setDownloadOffered(false);
    //disable the default sorting for this table
    tableConfig.setSortingEnabled(false);
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), trans, this);
    // dummy header key, won't be used since setDisplayTableHeader is set to
    // false
    tableCtr.addColumnDescriptor(new RepositoryEntryTypeColumnDescriptor("repositoryPortlet.img", 2, CMD_LAUNCH, trans.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("repositoryPortlet.name", 0, CMD_LAUNCH, trans.getLocale(),  ColumnDescriptor.ALIGNMENT_LEFT));
View Full Code Here

    this.translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    final List entries = ManagerFactory.getManager().getPoliciesOfIdentity(identity);
    TableDataModel tdm = new PolicyTableDataModel(entries);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (tableCtr != null) tableCtr.dispose();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), translator, this);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.secgroup", 0, null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_RIGHT));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.policyimpl", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.resourceimplkey", 2, null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_RIGHT));
View Full Code Here

    }
   
    // prepare table for run view
    manageTableData = new ChecklistManageTableDataModel(this.checklist, lstIdents);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("cl.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    tableConfig.setDownloadOffered(true);
    tableConfig.setPreferencesOffered(true, "ExtendedManageTable");
    if(manageChecklistTable != null) {
      manageChecklistTable.dispose();
      manageChecklistTable = null;
    }
    manageChecklistTable = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
View Full Code Here

  }
 
  private void initEditTable(UserRequest ureq, Identity identity) {
    editTableData = new ChecklistRunTableDataModel(this.checklist.getCheckpoints(), getTranslator());
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("cl.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    tableConfig.setDownloadOffered(true);
    tableConfig.setPreferencesOffered(true, "ExtendedEditTable");
    if(editChecklistTable != null) {
      editChecklistTable.dispose();
      editChecklistTable = null;
    }
    editChecklistTable = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
View Full Code Here

    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    List repoTableModelEntries = contextManager.findRepositoryEntriesForBGContext(businessGroup.getGroupContext());
    repoTableModel.setEntries(repoTableModelEntries);
    // init table controller only once
    if (resourcesCtr == null) {
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setTableEmptyMessage(translate("resources.noresources"));
      resourcesCtr = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans, null);
      listenTo(resourcesCtr);
     
      resourcesVC = createVelocityContainer("resources");
      repoTableModel.addColumnDescriptors(resourcesCtr, translate("resources.launch"), false);
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.