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

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


      allThreadTableCtr.addColumnDescriptor(new StickyColumnDescriptor("table.total", 5, null, ureq.getLocale(),
        ColumnDescriptor.ALIGNMENT_RIGHT));
       
    singleThreadTableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    singleThreadTableCtr.addColumnDescriptor(new ThreadColumnDescriptor("table.title", 0, CMD_SHOWDETAIL));
    singleThreadTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.userfriendlyname", 1, null, ureq.getLocale()));
    singleThreadTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.modified", 2, null, ureq.getLocale(),
        ColumnDescriptor.ALIGNMENT_CENTER));
    singleThreadTableCtr
        .addColumnDescriptor(new BooleanColumnDescriptor("table.header.state", 3, "", translate("table.row.new")));
   
    rms = getReadSet(ureq.getIdentity()); // here we fetch which messages had   
View Full Code Here


      tableConfig.setDownloadOffered(false);
      tableConfig.setTableEmptyMessage(translate("forum.emtpy"));
     
      //prepare the table controller
      moveMessageTableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
      moveMessageTableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.thread", 0, null, ureq.getLocale()));
      moveMessageTableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.userfriendlyname", 1, null, ureq.getLocale()));
      moveMessageTableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.lastModified", 2, null, ureq.getLocale()));       
      moveMessageTableCtr.addColumnDescriptor(true, new BooleanColumnDescriptor("table.choose", 3, "move", translate("table.choose"), translate("table.source")));
      moveMessageTableCtr.setTableDataModel(tdm);
     
      //push the modal dialog with the table as content
      cmcMoveMsg = new CloseableModalController(getWindowControl(), "close", moveMessageTableCtr.getInitialComponent());
View Full Code Here

    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")));
    contextListVC.put("contextlist", contextListCtr.getInitialComponent());

    contextTableModel = new BGContextTableModel(groupContexts, getTranslator(), false, true);
View Full Code Here

    }
  }

  public void addColumnDescriptors(TableController tableCtr) {
    Locale loc = trans.getLocale();
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.version",0,WikiMainController.ACTION_SHOW,loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.date",1,null,loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.viewcount",2,null,loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.author",3,null,loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.compare",4,WikiMainController.ACTION_COMPARE,loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.comment",5,null,loc));
   
  }
View Full Code Here

    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");
    userListCtr.addColumnDescriptor(firstNameDesc);
    userListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.user.replies", 2, null, ureq.getLocale()));
    userListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.user.threads", 3, null, ureq.getLocale()));
    userListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.lastModified", 4, null, ureq.getLocale()));
    userListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.numOfCharacters", 5, null, ureq.getLocale()));
    userListCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.numOfWords", 6, null, ureq.getLocale()));
    userListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_SHOW, "viewswitch.title", getTranslator().translate("viewswitch.title")));
   
    usersTableModel = new UsersTableModel(userInfoList);
    userListCtr.setTableDataModel(usersTableModel);
    listenTo(userListCtr);
View Full Code Here

   
    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")));

    CourseEnvironment courseEnv = userCourseEnvironment.getCourseEnvironment();

    String username = userCourseEnvironment.getIdentityEnvironment().getIdentity().getName();
View Full Code Here

       
        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()));
        cmiTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cmis.column.header.value", 3, null, ureq.getLocale()));
        listenTo(cmiTableCtr);

        cmiTableCtr.setTableDataModel(new CmiTableDataModel(getTranslator(), rawDatas));
       
        cmc = new CloseableModalController(getWindowControl(), getTranslator().translate("close"), cmiTableCtr.getInitialComponent());
View Full Code Here

    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()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.quickcount", 5, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.tti", 6, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.ttl", 7, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("cache.maxElements", 8, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("empty", "cache.empty", translate("action.choose")));
    listenTo(tableCtr);//
    myContent.contextPut("title", translate("caches.title"));
   
    // eh cache
View Full Code Here

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

    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()));
    if (withLeaveAndDelete) {
      groupListCtr.addColumnDescriptor(new BooleanColumnDescriptor("table.header.leave", 3, TABLE_ACTION_LEAVE,
          translate("table.header.leave"), null));
      groupListCtr.addColumnDescriptor(new BooleanColumnDescriptor("table.header.delete", 4, TABLE_ACTION_DELETE,
          translate("table.header.delete"), null));
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.table.DefaultColumnDescriptor

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.