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

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


  }

  private void doContextList(UserRequest ureq, boolean initializeModel) {
    // 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()));
View Full Code Here


    this.ident = ureq.getIdentity();
   
    this.groupsVC = this.createVelocityContainer("groupsPortlet");
    showAllLink = LinkFactory.createLink("groupsPortlet.showAll", groupsVC, this);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("groupsPortlet.nogroups"));
    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 DefaultColumnDescriptor("groupsPortlet.bgname", 0, CMD_LAUNCH, trans.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("groupsPortlet.type", 1, null, trans.getLocale(),
View Full Code Here

      this.showWarning("nothing.selected.msg");
    }
  }

  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());   
View Full Code Here

  }

  private VelocityContainer doCreateTabResources(UserRequest ureq, boolean initOnlyModel) {
    Translator resourceTrans = Util.createPackageTranslator(RepositoryTableModel.class, getLocale(), getTranslator());
    if (!initOnlyModel) {
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      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);
View Full Code Here

   * @param ureq The user request
   */
  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();
View Full Code Here

        courseNode = this.currentCourseNode;
      }
    }   
    // Init table headers
    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);
View Full Code Here

  }

  private void doSimpleUserChoose(UserRequest ureq, List<Identity> identities) {
    // Init table headers
    removeAsListenerAndDispose(userListCtr);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setPreferencesOffered(true, "assessmentSimpleUserList");
    tableConfig.setTableEmptyMessage(translate("userchoose.nousers"));   
   
    userListCtr = UserControllerFactory.createTableControllerFor(tableConfig, identities, ureq, getWindowControl(), null, CMD_CHOOSE_USER);
    listenTo(userListCtr);

    userChoose.contextPut("showBack", Boolean.FALSE);
View Full Code Here

  private void doNodeChoose(UserRequest ureq) {
    ICourse course = CourseFactory.loadCourse(ores);
    removeAsListenerAndDispose(nodeListCtr);
    // table configuraton
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("nodesoverview.nonodes"));
    tableConfig.setDownloadOffered(false);
    tableConfig.setColumnMovingOffered(false);
    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,
View Full Code Here

    // reload data
    loadData();
    // prepare table for run view
    runTableData = new ChecklistRunTableDataModel(visibleCheckpoints, getTranslator());
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("cl.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    if(runChecklistTable != null) {
      runChecklistTable.dispose();
      runChecklistTable = null;
    }
    runChecklistTable = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
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()));
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.