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

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


    }
  }

  private List<Map<String,Object>> doNodeChoose(UserRequest ureq){
    //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);
   
    if (nodeListCtr != null) removeAsListenerAndDispose(nodeListCtr);
    nodeListCtr = new TableController(tableConfig, ureq, getWindowControl(), this.getTranslator(), null);
    listenTo(nodeListCtr);
    // table columns   
View Full Code Here


   */
  private void doNodeChoose(UserRequest ureq, OLATResourceable ores){
   
    ICourse course = CourseFactory.loadCourse(ores);
      //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(), this);
    // table columns   
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0,
        null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, new IndentedNodeRenderer()));
View Full Code Here

  public ScormArchiveWizardController(UserRequest ureq, List<Map<String,Object>> nodesTableObjectArrayList, Long courseId, WindowControl wControl) {
    super(ureq, wControl, Util.createPackageTranslator(GenericArchiveController.class, ureq.getLocale()));
    this.courseId = courseId;

    //table configuraton
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(getTranslator().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(), this);
    // table columns   
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0,
        null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_LEFT, new IndentedNodeRenderer()));
View Full Code Here

        numOfValuesPerLine = sepValInForm.getNumOfValPerLine();
        numOfLines = sepValInForm.getNumOfLines();
       
        // convert user input to an OLAT table
        columnNames = new ArrayList();
        tableConfig = new TableGuiConfiguration();
        tableConfig.setDownloadOffered(false);
        tableConfig.setSortingEnabled(false);
        tableConfig.setColumnMovingOffered(false);
        hcTranslator = new HeaderColumnTranslator(trans);
        sepValTableCtr = new TableController(tableConfig, ureq, getWindowControl(), hcTranslator, this);
View Full Code Here

      Controller messageCtr = MessageUIFactory.createSimpleMessage(ureq, getWindowControl(), text);
      main.setContent(messageCtr.getInitialComponent());
    }
    else {

      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setDownloadOffered(false);
      tableConfig.setColumnMovingOffered(false);
      tableConfig.setSortingEnabled(false);
      tableConfig.setDisplayTableHeader(true);
      tableConfig.setDisplayRowCount(false);
      tableConfig.setPageingEnabled(false);
      tableConfig.setTableEmptyMessage(translate("nodesoverview.emptylist"));

      if (allowTableFiltering) {
        tableFilterCtr = new TableController(tableConfig, ureq, getWindowControl(),
            this.nodesoverviewTableFilters, this.currentTableFilter,
            translate("nodesoverview.filter.title"), null,getTranslator(), this);
View Full Code Here

   * @param ureq
   */
  public EfficiencyStatementsListController(WindowControl wControl, UserRequest ureq) {
    super(ureq, wControl);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("efficiencyStatementsPortlet.nostatements"));
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.course", 0, null, getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.score", 1, null, ureq.getLocale(), ColumnDescriptor.ALIGNMENT_RIGHT));
    tableCtr.addColumnDescriptor(new BooleanColumnDescriptor("table.header.passed", 2, translate("passed.true"), translate("passed.false")));
    StaticColumnDescriptor cd3 = new StaticColumnDescriptor(CMD_SHOW, "table.header.show", translate("table.action.show"));
View Full Code Here

   */
  public UserPropertiesController(UserRequest ureq, WindowControl wControl, Identity identity) {
    super(ureq, wControl);
    PropertyManager pm = PropertyManager.getInstance();
    List l = pm.listProperties(identity, null, null, null, null);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(getTranslator().translate("error.no.props.found"));
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.category", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.grp", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.resource", 2, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.name", 3, null, ureq.getLocale()));
View Full Code Here

  }
 
  protected void init(UserRequest ureq) {
    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()));
View Full Code Here

        }
        if(cmc != null) {
          removeAsListenerAndDispose(cmc);
        }
       
        TableGuiConfiguration tableConfig = new TableGuiConfiguration();
        tableConfig.setPreferencesOffered(true, "scormAssessmentDetails");
       
        cmiTableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
        cmiTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cmis.column.header.itemId", 0, null, ureq.getLocale()));
        cmiTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cmis.column.header.translatedKey", 1, null, ureq.getLocale()));
        cmiTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cmis.column.header.key", 2, null, ureq.getLocale()));
View Full Code Here

      }
    }
  }

  private void initializeTableController(UserRequest ureq) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(pT.translate("error.no.repository.found"));
    if (tableCtr != null) tableCtr.dispose();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), pT, this);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.bgname", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.description", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.type", 2, null, ureq.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.