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

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


    // Init table only once
    if (this.contextListCtr == null) {
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setTableEmptyMessage(translate("contextlist.no.contexts"));
      // init group list filter controller
      this.contextListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);

      this.contextListCtr.addColumnDescriptor(new DefaultColumnDescriptor("contextlist.table.name", 0, CMD_CONTEXT_RUN, ureq.getLocale()));
      this.contextListCtr.addColumnDescriptor(new DefaultColumnDescriptor("contextlist.table.desc", 1, null, ureq.getLocale()));
      this.contextListCtr.addColumnDescriptor(new DefaultColumnDescriptor("contextlist.table.type", 2, null, ureq.getLocale()));
      this.contextListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_CONTEXT_EDIT, "contextlist.table.edit",
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 DefaultColumnDescriptor("groupsPortlet.bgname", 0, CMD_LAUNCH, trans.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("groupsPortlet.type", 1, null, trans.getLocale(),
        ColumnDescriptor.ALIGNMENT_RIGHT));
View Full Code Here

  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().getDeletableIdentities(UserDeletionManager.getInstance().getLastLoginDuration());   
    tdm = new UserDeleteTableModel(l, ureq.getLocale(), isAdministrativeUser);       
    tdm.addColumnDescriptors(tableCtr, null);   
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor(ACTION_SINGLESELECT_CHOOSE, "table.header.action", translate("action.activate")));
View Full Code Here

      tableConfig.setTableEmptyMessage(translate("resources.noresources"));
      //do not use listenTo here as tablecontroller takes listener as parameter
      if (this.resourcesCtr != null) {
        removeAsListenerAndDispose(this.resourcesCtr);
      }
      this.resourcesCtr = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans, this);
      this.tabResourcesVC = createVelocityContainer("tab_resources");
      this.addTabResourcesButton = LinkFactory.createButtonSmall("cmd.addresource", this.tabResourcesVC, this);
    }

    this.repoTableModel = new RepositoryTableModel(resourceTrans);
View Full Code Here

  private void doGroupChoose(UserRequest ureq) {
    ICourse course = CourseFactory.loadCourse(ores);
    removeAsListenerAndDispose(groupListCtr);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("groupchoose.nogroups"));
    groupListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo(groupListCtr);
    groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.group.name", 0, CMD_CHOOSE_GROUP, ureq.getLocale()));
    groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.group.desc", 1, null, ureq.getLocale()));
    CourseGroupManager gm = course.getCourseEnvironment().getCourseGroupManager();
    if (gm.getLearningGroupContexts().size() > 1) {
View Full Code Here

    removeAsListenerAndDispose(userListCtr);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("userchoose.nousers"));
   
    if (mode == MODE_GROUPFOCUS) {
      userListCtr = new TableController(tableConfig, ureq, getWindowControl(),
          this.nodeFilters, courseNode,
          translate("nodesoverview.filter.title"), null,propertyHandlerTranslator, null);
    } else {
      userListCtr = new TableController(tableConfig, ureq, getWindowControl(), propertyHandlerTranslator, null);
    }
    listenTo(userListCtr);
       
    // Wrap identities with user course environment and user score view
    List<AssessedIdentityWrapper> wrappedIdentities = new ArrayList<AssessedIdentityWrapper>();
View Full Code Here

    tableConfig.setSortingEnabled(false);
    tableConfig.setDisplayTableHeader(true);
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
   
    nodeListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo(nodeListCtr);
    // table columns   
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0,
        null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, new IndentedNodeRenderer()));
    nodeListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.action.select", 1,
View Full Code Here

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

    main = new Panel("quotamain");
    myContent = createVelocityContainer("index");
    addQuotaButton = LinkFactory.createButton("qf.new", myContent, this);

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo (tableCtr);

    quotaTableModel = new QuotaTableModel();
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.path", 0, null, getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.quota", 1, null, getLocale()));
View Full Code Here

        TableGuiConfiguration tableConfig = new TableGuiConfiguration();
        tableConfig.setTableEmptyMessage(pT.translate("error.no.user.found"));
        tableConfig.setDownloadOffered(false);// no download because user should not download user-list

        if (tableCtr != null) tableCtr.dispose();
        tableCtr = new TableController(tableConfig, ureq, getWindowControl(), pT, this);
        Roles roles = ureq.getUserSession().getRoles();
        boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
        tdm = new UserTableDataModel(searchUsers(login,  userPropertiesSearch, true), ureq.getLocale(), isAdministrativeUser);
        // add the data column descriptors
        tdm.addColumnDescriptors(tableCtr, null);
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.