Examples of TableController


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

  private void doInitContextList(UserRequest ureq, List groupContexts) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("contextlist.no.contexts"));
    // init group list filter controller
    removeAsListenerAndDispose(contextListCtr);
    contextListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo(contextListCtr);
    contextListCtr.addColumnDescriptor(new DefaultColumnDescriptor("contextlist.table.name", 0, CMD_CONTEXT_RUN, ureq.getLocale()));
    contextListCtr.addColumnDescriptor(new DefaultColumnDescriptor("contextlist.table.desc", 1, null, ureq.getLocale()));
    contextListCtr.addColumnDescriptor(new BooleanColumnDescriptor("contextlist.table.default", 2, null,
        translate("contextlist.table.default.true"), translate("contextlist.table.default.false")));
View Full Code Here

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

    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);
    DefaultColumnDescriptor  firstNameDesc = new DefaultColumnDescriptor("table.user.firstname", 1, CMD_HOMEPAGE, ureq.getLocale());
    firstNameDesc.setIsPopUpWindowAction(true, "height=600, width=900, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no");
View Full Code Here

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

    main = createVelocityContainer("scores");
   
    TableGuiConfiguration summaryTableConfig = new TableGuiConfiguration();
    summaryTableConfig.setDownloadOffered(true);
   
    summaryTableCtr = new TableController(summaryTableConfig, ureq, getWindowControl(), getTranslator(), this);
    summaryTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("summary.column.header.date", 0, null, ureq.getLocale()));
    summaryTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("summary.column.header.duration", 1, null, ureq.getLocale()));
    summaryTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("summary.column.header.assesspoints", 2, null, ureq.getLocale()));
    summaryTableCtr.addColumnDescriptor(new StaticColumnDescriptor("sel", "summary.column.header.details", getTranslator().translate("select")));
View Full Code Here

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

    //create page
    myContent = createVelocityContainer("index");
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    //use null as listener argument because we are using listenTo(..) from basiccontroller
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.name", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.disk", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.hitcnt", 2, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.mcexp", 3, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.mcnotfound", 4, null, ureq.getLocale()));
View Full Code Here

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

      btnNext = LinkFactory.createButton("next", vc, this);
      vc.put("table.users.found", tblCtrFound.getInitialComponent());
    }
   
    if(lstLoginsNotfound.size() > 0) {
      TableController tblCtrNotfound = new TableController(null, ureq, wControl, getTranslator(), this);
      tblCtrNotfound.addColumnDescriptor(new DefaultColumnDescriptor("table.col.login", 0, null, ureq.getLocale()));
      TableDataModel tblData = new LoginTableDataModel(lstLoginsNotfound);
      tblCtrNotfound.setTableDataModel(tblData);
     
      vc.put("table.users.notfound", tblCtrNotfound.getInitialComponent());
    }
   
    vc.contextPut("reason", this.reason);
   
    putInitialPanel(vc);
View Full Code Here

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

  private void initGroupListCtrAndModel(boolean withLeaveAndDelete, UserRequest ureq) {
    // 1) init listing controller
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("index.table.nogroup"));
    removeAsListenerAndDispose(groupListCtr);
    groupListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo(groupListCtr);
   
    groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.bgname", 0, TABLE_ACTION_LAUNCH, getLocale()));
    groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.description", 1, null, getLocale()));
    groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.type", 2, null, getLocale()));
View Full Code Here

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

  private void initializeTableController(UserRequest ureq) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("error.no.user.found"));
    if (tableCtr != null) tableCtr.dispose();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), this.propertyHandlerTranslator, this);
       
    List l = UserDeletionManager.getInstance().getIdentitiesInDeletionProcess(UserDeletionManager.getInstance().getDeleteEmailDuration());
    tdm = new UserDeleteTableModel(l, ureq.getLocale(), isAdministrativeUser);
    tdm.addColumnDescriptors(tableCtr, null,"table.identity.deleteEmail")
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor(ACTION_SINGLESELECT_CHOOSE, "table.header.action", translate("action.activate")));
View Full Code Here

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

    tableConfig.setDownloadOffered(true);
    tableConfig.setPreferencesOffered(true, "ExtendedIdentitiesTable");   
    tableConfig.setTableEmptyMessage(trans.translate("error.no.user.found"));

    trans = UserManager.getInstance().getPropertyHandlerTranslator(trans);
    TableController tableCtr = new TableController(tableConfig, ureq, wControl, trans, listeningController);
    dataModel.addColumnDescriptors(tableCtr, trans);
    tableCtr.setTableDataModel(dataModel);
    return tableCtr;
  }
View Full Code Here

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

    vc.put("searchform",searchForm);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (selectButtonLabel != null) tableConfig.setPreferencesOffered(true, "repositorySearchResult");
   
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), translator, this);
    repoTableModel = new RepositoryTableModel(translator);
    repoTableModel.addColumnDescriptors(tableCtr, selectButtonLabel, enableDirectLaunch);
    tableCtr.addMultiSelectAction("resource.table.select", ACTION_MULTI_SELECT);
    tableCtr.setMultiSelect(true);
    tableCtr.setTableDataModel(repoTableModel);
View Full Code Here

Examples of org.olat.core.gui.components.table.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()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.comment", 4, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participants.num", 5, null, ureq.getLocale()));
    tableCntrl.addMultiSelectAction("dates.table.edit.change", DENEditTableDataModel.CHANGE_ACTION);
    tableCntrl.addMultiSelectAction("dates.table.edit.delete", DENEditTableDataModel.DELETE_ACTION);
    tableCntrl.setMultiSelect(true);
    tableCntrl.setTableDataModel(tableData);
    tableCntrl.setSortColumn(2, true);//begin + multi select column
   
    return tableCntrl;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.