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

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


    if (enableTablePreferences) {
      tableCtr.addColumnDescriptor(true, new DefaultColumnDescriptor("table.subject.addeddate", userPropertyHandlers.size() + 1, null, ureq.getLocale()));
      tableCtr.setSortColumn(++visibleColId,true)
    }
    if (enableUserSelection) {
      tableCtr.addColumnDescriptor(new StaticColumnDescriptor(COMMAND_SELECTUSER, "table.subject.action", myTrans.translate("action.general")));
    }
   
    if (mayModifyMembers) {
      tableCtr.addMultiSelectAction("action.remove", COMMAND_REMOVEUSER);
      tableCtr.setMultiSelect(true);
View Full Code Here


    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.authprovider", 3, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.fqdn", 4, null, ureq.getLocale()));   
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.access", 5, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("sess.duration", 6, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new BooleanColumnDescriptor("sess.mode", 7, null, translate("sess.mode.ajax"), translate("sess.mode.standard")));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("sess.details", "table.action", translate("sess.details")));
    listenTo(tableCtr);
    reset();
    myContent.put("sessiontable", tableCtr.getInitialComponent());
    putInitialPanel(myContent);
  }
View Full Code Here

      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",
          translate(CMD_CONTEXT_EDIT)));
      this.contextListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_CONTEXT_DELETE, "contextlist.table.delete",
          translate(CMD_CONTEXT_DELETE)));
      this.contextListVC.put("contextlist", this.contextListCtr.getInitialComponent());
      listenTo(this.contextListCtr);
    }
View Full Code Here

    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")));
    tableCtr.addMultiSelectAction("action.delete.selection", ACTION_MULTISELECT_CHOOSE);   
    tableCtr.setMultiSelect(true);
    tableCtr.setTableDataModel(tdm);   
  }
View Full Code Here

    quotaTableModel = new QuotaTableModel();
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.path", 0, null, getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.quota", 1, null, getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.header.limit", 2, null, getLocale()));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("qf.edit", "table.action", translate("edit")));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("qf.del", "table.action", translate("delete")));
    tableCtr.setTableDataModel(quotaTableModel);
   
    myContent.put("quotatable", tableCtr.getInitialComponent());
    main.setContent(myContent);
View Full Code Here

        if (useMultiSelect) {
          // add multiselect action
          tableCtr.addMultiSelectAction(this.actionKeyChoose, ACTION_MULTISELECT_CHOOSE);
        } else {
          // add single column selec action
          tableCtr.addColumnDescriptor(new StaticColumnDescriptor(ACTION_SINGLESELECT_CHOOSE, "table.header.action", myContent
              .getTranslator().translate("action.choose")));
        }
       
       
        tableCtr.setTableDataModel(tdm);
View Full Code Here

    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), this.propertyHandlerTranslator, null);
   
    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.addMultiSelectAction("action.ready.to.delete", ACTION_MULTISELECT_CHOOSE);   
    tableCtr.setMultiSelect(true);
    tableCtr.setTableDataModel(tdm);
    listenTo(tableCtr);
  }
View Full Code Here

      groupListCtr = new TableController(tableConfig, ureq, getWindowControl(), this.areaFilters, this.currentAreaFilter,
          translate("grouplist.areafilter.title"), translate("grouplist.areafilter.nofilter"), getTranslator(), this);

      groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("grouplist.table.name", 0, CMD_GROUP_RUN, ureq.getLocale()));
      groupListCtr.addColumnDescriptor(new DefaultColumnDescriptor("grouplist.table.desc", 1, null, ureq.getLocale()));
      groupListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_GROUP_EDIT, "grouplist.table.edit", translate(CMD_GROUP_EDIT)));
      if (flags.isEnabled(BGConfigFlags.GROUPS_DELETE)) {
        groupListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_GROUP_DELETE, "grouplist.table.delete",
            translate(CMD_GROUP_DELETE)));
      }
      groupListVC.put("groupListTableCtr", groupListCtr.getInitialComponent());

    }
View Full Code Here

      tableConfig.setTableEmptyMessage(translate("arealist.no.areas"));
      if (areaListCtr != null) areaListCtr.dispose();
      areaListCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
      areaListCtr.addColumnDescriptor(new DefaultColumnDescriptor("arealist.table.name", 0, null, ureq.getLocale()));
      areaListCtr.addColumnDescriptor(new DefaultColumnDescriptor("arealist.table.desc", 1, null, ureq.getLocale()));
      areaListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_AREA_EDIT, "arealist.table.edit", translate(CMD_AREA_EDIT)));
      if (flags.isEnabled(BGConfigFlags.AREAS_DELETE)) {
        areaListCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_AREA_DELETE, "arealist.table.delete",
            translate(CMD_AREA_DELETE)));
      }
      areaListCtr.setTableDataModel(areaListModel);
      areaListVC.put("arealisttable", areaListCtr.getInitialComponent());
    }
View Full Code Here

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.auth.provider", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.auth.login", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.auth.credential", 2, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new StaticColumnDescriptor("delete", "table.header.action", translate("delete")));
    authTableModel = new AuthenticationsTableDataModel(ManagerFactory.getManager().getAuthentications(changeableIdentity));
    tableCtr.setTableDataModel(authTableModel);
    listenTo(tableCtr);

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