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

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


      }
    });
    revisionListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.author", 1, null, ureq.getLocale()));
    revisionListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.comment", 2, null, ureq.getLocale()));
    revisionListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.date", 3, null, ureq.getLocale()));
    revisionListTableCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_DOWNLOAD, "version.download", getTranslator().translate(
        "version.download")));
    revisionListTableCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_RESTORE, "version.restore", getTranslator().translate(
        "version.restore")));

    revisionListTableCtr.addMultiSelectAction("delete", CMD_DELETE);
    revisionListTableCtr.addMultiSelectAction("cancel", CMD_CANCEL);
    revisionListTableCtr.setMultiSelect(true);
View Full Code Here


    deletedFilesListTableCtr = new TableController(summaryTableConfig, ureq, getWindowControl(), getTranslator(), null);
    deletedFilesListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.name", 0, null, ureq.getLocale()));
    deletedFilesListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.author", 1, null, ureq.getLocale()));
    deletedFilesListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.deletedBy", 2, null, ureq.getLocale()));
    deletedFilesListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.date", 3, null, ureq.getLocale()));
    deletedFilesListTableCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_DOWNLOAD, "version.download", getTranslator().translate(
        "version.download")));

    VFSSecurityCallback secCallback = VFSManager.findInheritedSecurityCallback(container);
    if (secCallback != null) {
      if (secCallback.canDeleteRevisionsPermanently()) {
View Full Code Here

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("column.header.date", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("column.header.duration", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("column.header.assesspoints", 2, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("sel", "column.header.details", getTranslator().translate("select")));

    QTIResultManager qrm = QTIResultManager.getInstance();
    tableModel = new QTIResultTableModel(
        qrm.getResultSets(courseResourceableId, nodeIdent, repositoryEntry.getKey(), identity));
    tableCtr.setTableDataModel(tableModel);
View Full Code Here

    tableConfig.setTableEmptyMessage(translate("note.nonotes"));
    tableC = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    listenTo(tableC); // autodispose on controller dispose
    tableC.addColumnDescriptor(new DefaultColumnDescriptor("table.note.title", 0, "choose", ureq.getLocale()));
    tableC.addColumnDescriptor(new DefaultColumnDescriptor("table.note.resource", 1, null, ureq.getLocale()));
    tableC.addColumnDescriptor(new StaticColumnDescriptor("delete", "table.header.delete", translate(
        "action.delete")));
    populateNLTable();

    putInitialPanel(tableC.getInitialComponent());
   
View Full Code Here

   * @param trans Translator for translating the delete action
   */
  public void addColumnDescriptors(TableController tableCtr, boolean showRemoveAction, Translator trans) {
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("categorieslist.header.category", 0, ACTION_GOTO, getLocale()));
    if (showRemoveAction) {
      tableCtr.addColumnDescriptor(new StaticColumnDescriptor(ACTION_DELETE, "categorieslist.header.action", trans.translate("delete")));
      cols = 2;
    }
  }
View Full Code Here

      tableCtr.addColumnDescriptor(coldesc);
    } else {
      tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.filename", 0, null, loc));
    }
    if (callback != null) {
      StaticColumnDescriptor statColdesc = new StaticColumnDescriptor(DialogElementsController.ACTION_START_FORUM, "table.header.forum",
          translator.translate("dialog.start"));
      // if configured open forum as popup
      String integration = (String) config.get(DialogConfigForm.DIALOG_CONFIG_INTEGRATION);
      if (integration.equals(DialogConfigForm.CONFIG_INTEGRATION_VALUE_POPUP)) {
        statColdesc.setIsPopUpWindowAction(true, DefaultColumnDescriptor.DEFAULT_POPUP_ATTRIBUTES);
      }
      tableCtr.addColumnDescriptor(statColdesc);
    }
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.author", 1, null, loc));
    tableCtr.addColumnDescriptor(false, new DefaultColumnDescriptor("table.header.size", 2, null, loc));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.date", 3, null, loc));
    if (callback != null) tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.newmessages", 4, null, loc));
    if (callback != null) tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.messages", 5, null, loc));
    // callback is null in course editor environement where we dont need
    // security calls
    if (callback != null && callback.mayDeleteMessageAsModerator()) tableCtr.addColumnDescriptor(new StaticColumnDescriptor(
        DialogElementsController.ACTION_DELETE_ELEMENT, "table.header.action", translator.translate("delete")));
  }
View Full Code Here

    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

   
    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();
    rawDatas = ScormAssessmentManager.getInstance().visitScoDatas(username, courseEnv, node);
View Full Code Here

    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
    try {
View Full Code Here

    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), this.propertyHandlerTranslator, this);
       
    List l = UserDeletionManager.getInstance().getIdentitiesInDeletionProcess(UserDeletionManager.getInstance().getDeleteEmailDuration());
    tdm = new UserDeleteTableModel(l, ureq.getLocale(), isAdministrativeUser);
    tdm.addColumnDescriptors(tableCtr, null,"table.identity.deleteEmail")
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor(ACTION_SINGLESELECT_CHOOSE, "table.header.action", translate("action.activate")));
   
    tableCtr.setMultiSelect(false);
    tableCtr.setTableDataModel(tdm);
    userDeleteStatusPanel.setContent(tableCtr.getInitialComponent());
  }
View Full Code Here

TOP

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

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.