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

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


        tableConfig.setPreferencesOffered(true, "groupcontrollerreadonly" + securityGroup.getKey());
      }
    }
    // TODO:fj:c move to UserControllerFactory class
    myTrans = UserManager.getInstance().getPropertyHandlerTranslator(getTranslator());
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), myTrans, null);   
    initGroupTable(tableCtr, ureq, enableTablePreferences, enableUserSelection);

    // set data model
    List combo = securityManager.getIdentitiesAndDateOfSecurityGroup(this.securityGroup);     
    List<UserPropertyHandler> userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, isAdministrativeUser);
View Full Code Here


   */
  protected TableController createParticipantsTable(UserRequest ureq, WindowControl wControl, Translator trans, DefaultController listener, DENParticipantsTableDataModel 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.participant.firstname", 0, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participant.lastname", 1, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participant.email", 2, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new BooleanColumnDescriptor("dates.table.participant.email.send", 3, DENParticipantsTableDataModel.MAIL_ACTION,
        trans.translate("dates.table.participant.email.send"), ""));
    tableCntrl.addColumnDescriptor(new BooleanColumnDescriptor("dates.table.list.delete", 3, DENParticipantsTableDataModel.REMOVE_ACTION,
        trans.translate("dates.table.list.delete"), ""));
    tableCntrl.setTableDataModel(tableData);
   
    return tableCntrl;
  }
View Full Code Here

    vc.put("searchform",searchForm);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (selectButtonLabel != null) tableConfig.setPreferencesOffered(true, "repositorySearchResult");
   
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), translator, this, true);

    repoTableModel = new RepositoryTableModel(translator);
    repoTableModel.addColumnDescriptors(tableCtr, selectButtonLabel, enableDirectLaunch);
    tableCtr.setTableDataModel(repoTableModel);
    tableCtr.setSortColumn(1, true);
View Full Code Here

    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(),
        ColumnDescriptor.ALIGNMENT_LEFT));
View Full Code Here

   
    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()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.fqdn", 4, null, ureq.getLocale()));   
View Full Code Here

    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

    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));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.resourceimpltype", 3, null, ureq.getLocale()));
    tableCtr.setTableDataModel(tdm);
View Full Code Here

    tableConfig.setPreferencesOffered(true, "ExtendedManageTable");
    if(manageChecklistTable != null) {
      manageChecklistTable.dispose();
      manageChecklistTable = null;
    }
    manageChecklistTable = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    manageChecklistTable.addColumnDescriptor(new DefaultColumnDescriptor("cl.table.identity", 0, DETAILS_ACTION, ureq.getLocale()));
    int i = 1;
    for( Checkpoint checkpoint : checklist.getCheckpoints() ) {
      manageChecklistTable.addColumnDescriptor(new ChecklistMultiSelectColumnDescriptor(checkpoint.getTitle(), i));
      i++;
View Full Code Here

    tableConfig.setPreferencesOffered(true, "ExtendedEditTable");
    if(editChecklistTable != null) {
      editChecklistTable.dispose();
      editChecklistTable = null;
    }
    editChecklistTable = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    editChecklistTable.addColumnDescriptor(new DefaultColumnDescriptor("cl.table.title", 0, null, ureq.getLocale()));
    editChecklistTable.addColumnDescriptor(new DefaultColumnDescriptor("cl.table.description", 1, null, ureq.getLocale()));
    editChecklistTable.addColumnDescriptor(new DefaultColumnDescriptor("cl.table.mode", 2, null, ureq.getLocale()));
    editChecklistTable.setMultiSelect(true);
    editChecklistTable.addMultiSelectAction("cl.close", "close");
View Full Code Here

    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);
      resourcesVC.put("resources", resourcesCtr.getInitialComponent());
View Full Code Here

TOP

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

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.