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

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


            userPropertiesSearch.put(userPropertyHandler.getName(), uiValue);
          }
        }
        if (userPropertiesSearch.isEmpty()) userPropertiesSearch = null;
        myContent.contextPut("showButton","true");   
        TableGuiConfiguration tableConfig = new TableGuiConfiguration();
        tableConfig.setTableEmptyMessage(pT.translate("error.no.user.found"));
        tableConfig.setDownloadOffered(false);// no download because user should not download user-list

        if (tableCtr != null) tableCtr.dispose();
        tableCtr = new TableController(tableConfig, ureq, getWindowControl(), pT, this);
        Roles roles = ureq.getUserSession().getRoles();
        boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
View Full Code Here


    }
    return strb.toString();
  }

  private void initializeTableController(UserRequest ureq) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("error.no.user.found"));
    tableConfig.setShowAllLinkEnabled(false);
    //use null as listener argument because we are using listenTo(..) from basiccontroller
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), this.propertyHandlerTranslator, null);
   
    List l = UserDeletionManager.getInstance().getIdentitiesInDeletionProcess(UserDeletionManager.getInstance().getDeleteEmailDuration());
    tdm = new UserDeleteTableModel(l, ureq.getLocale(), isAdministrativeUser);
View Full Code Here

        this.rows = bulkStep3Form.getInputRows();
        this.numOfLines = bulkStep3Form.getNumOfLines();
        this.numOfValPerLine = bulkStep3Form.getNumOfValPerLine();

        columnNames = new ArrayList();
        tableConfig = new TableGuiConfiguration();
        tableConfig.setDownloadOffered(false);
        tableConfig.setSortingEnabled(false);
        tableConfig.setColumnMovingOffered(false);
        hcTranslator = new HeaderColumnTranslator(getTranslator());
        dataTableCtr = new TableController(tableConfig, ureq, getWindowControl(), hcTranslator, this);
View Full Code Here

   * @param ureq
   */
  @SuppressWarnings("unchecked")
  private void doNodeChoose(UserRequest ureq){
      //table configuraton
    TableGuiConfiguration tableConfigNodeChoose = new TableGuiConfiguration();
    tableConfigNodeChoose.setTableEmptyMessage(translate("wizard.step2.nonodes"));
    tableConfigNodeChoose.setDownloadOffered(false);
    tableConfigNodeChoose.setColumnMovingOffered(false);
    tableConfigNodeChoose.setSortingEnabled(false);
    tableConfigNodeChoose.setDisplayTableHeader(true);
    tableConfigNodeChoose.setDisplayRowCount(false);
    tableConfigNodeChoose.setPageingEnabled(false);
   
    if(nodeListCtr!=null)nodeListCtr.dispose();
    nodeListCtr = new TableController(tableConfigNodeChoose, ureq, getWindowControl(), getTranslator(), this);
    // table columns   
    nodeListCtr.addColumnDescriptor(new CustomRenderColumnDescriptor("table.header.node", 0,
View Full Code Here

  private void doAddOtherResourcesList(UserRequest ureq) {
    List repoTableModelEntries = contextManager.findRepositoryEntriesForBGContext(this.bgContext);
    if (repoTableModelEntries.size() > 1) {
      Translator resourceTrans = Util.createPackageTranslator(RepositoryTableModel.class, ureq.getLocale(), getTranslator());
     
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();   
      if (resourcesCtr != null) resourcesCtr.dispose();
      resourcesCtr = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans, this);
      RepositoryTableModel repoTableModel = new RepositoryTableModel(resourceTrans);
      repoTableModel.setEntries(repoTableModelEntries);
      repoTableModel.addColumnDescriptors(resourcesCtr, null, false);
View Full Code Here

  }

  private void doGroupList(UserRequest ureq, boolean initializeModel) {
    // Init table only once
    if (groupListCtr == null) {
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setTableEmptyMessage(translate("grouplist.no.groups"));
      // init group list filter controller
      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()));
View Full Code Here

    if (areaListModel == null || initializeModel) {
      List areas = areaManager.findBGAreasOfBGContext(bgContext);
      areaListModel = new BGAreaTableModel(areas, getTranslator());

      if (areaListCtr != null) areaListCtr.dispose();
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      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)));
View Full Code Here

    if (flags.isEnabled(BGConfigFlags.GROUP_OWNERS)) {
      if (ownerListModel == null || initializeModel) {
        List owners = contextManager.getBGOwnersOfBGContext(bgContext);

        if (ownerListCtr != null) ownerListCtr.dispose();
        TableGuiConfiguration tableConfig = new TableGuiConfiguration();
        tableConfig.setPreferencesOffered(true, "ownerListController");
        tableConfig.setTableEmptyMessage(translate("userlist.owners.noOwners"));
        if (ownerListCtr != null) ownerListCtr.dispose();
        ownerListCtr = UserControllerFactory.createTableControllerFor(tableConfig, owners, ureq, getWindowControl(), this, CMD_USER_DETAILS);
        ownerListModel = (UserTableDataModel) ownerListCtr.getTableDataModel();

        userListVC.put("ownerlisttable", ownerListCtr.getInitialComponent());
      }
      userListVC.contextPut("showOwners", Boolean.TRUE);
    } else {
      userListVC.contextPut("showOwners", Boolean.FALSE);
    }

    // 2. init participants list
    if (participantListModel == null || initializeModel) {
      List participants = contextManager.getBGParticipantsOfBGContext(bgContext);

      if (participantListCtr != null) participantListCtr.dispose();
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      tableConfig.setPreferencesOffered(true, "participantsListController");
      tableConfig.setTableEmptyMessage(translate("userlist.participants.noParticipants"));
      //participantListCtr = new TableController(tableConfig, ureq, getWindowControl(), userTrans, this);
      if (participantListCtr != null) participantListCtr.dispose();
      participantListCtr = UserControllerFactory.createTableControllerFor(tableConfig, participants, ureq, getWindowControl(), this, CMD_USER_DETAILS);
      participantListModel = (UserTableDataModel) participantListCtr.getTableDataModel();
View Full Code Here

    super(ureq, wControl);
   
    this.changeableIdentity = changeableIdentity;   
   
    // init main view container as initial component
    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")));
View Full Code Here

   * @param listener
   * @param tableData DENParticipantsTableDataModel
   * @return TableController
   */
  protected TableController createParticipantsTable(UserRequest ureq, WindowControl wControl, Translator trans, DefaultController listener, DENParticipantsTableDataModel tableData) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("dates.table.empty"));
    tableConfig.setColumnMovingOffered(true);
    TableController tableCntrl = new TableController(tableConfig, ureq, wControl, trans, listener);
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participant.firstname", 0, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participant.lastname", 1, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new DefaultColumnDescriptor("dates.table.participant.email", 2, null, ureq.getLocale()));
    tableCntrl.addColumnDescriptor(new BooleanColumnDescriptor("dates.table.participant.email.send", 3, DENParticipantsTableDataModel.MAIL_ACTION,
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.