Examples of TableController


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

    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

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

    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

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

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

    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

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().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

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

      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

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

  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

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

    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

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

    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

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

    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
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.