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

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


    columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), olatMenuTree, toolC.getInitialComponent(), contextListVC, null);
    listenTo(columnLayoutCtr); // cleanup on dispose
  }

  private void doInitContextList(UserRequest ureq, List groupContexts) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    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()));
View Full Code Here


  public AllCachesController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    //create page
    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()));
View Full Code Here

    vc = new VelocityContainer("bulkdelete", VELOCITY_ROOT + "/bulkdelete.html", getTranslator(), this);
   
    processUserList(this.userlist);
   
    if(toDelete != null && toDelete.size() > 0) {
      tblCtrFound = UserControllerFactory.createTableControllerFor(new TableGuiConfiguration(), toDelete, ureq, getWindowControl(), this, null);
      btnNext = LinkFactory.createButton("next", vc, this);
      vc.put("table.users.found", tblCtrFound.getInitialComponent());
    }
   
    if(lstLoginsNotfound.size() > 0) {
View Full Code Here

   *          showed, false: not showed
   * @param ureq
   */
  private void initGroupListCtrAndModel(boolean withLeaveAndDelete, UserRequest ureq) {
    // 1) init listing controller
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    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()));
View Full Code Here

   * @param ureq
   * @param identitiesList
   */
  private void initUserListCtr(UserRequest ureq, List<Identity> myIdentities, Integer searchStatusField) {
    boolean actionEnabled = true;
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("error.no.user.found"));
    removeAsListenerAndDispose(tableCtr);
    if ((searchStatusField != null) && (searchStatusField.equals(Identity.STATUS_DELETED))) {
      actionEnabled = false;
    }
    tdm = ExtendedIdentitiesTableControllerFactory.createTableDataModel(ureq, myIdentities, actionEnabled);
View Full Code Here

    }
  }


  private void initializeTableController(UserRequest ureq) {
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("error.no.user.found"));
    if (tableCtr != null) tableCtr.dispose();
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), this.propertyHandlerTranslator, this);
       
    List l = UserDeletionManager.getInstance().getIdentitiesInDeletionProcess(UserDeletionManager.getInstance().getDeleteEmailDuration());
    tdm = new UserDeleteTableModel(l, ureq.getLocale(), isAdministrativeUser);
View Full Code Here

   * @param args
   */
  public static TableController createController(ExtendedIdentitiesTableDataModel dataModel, UserRequest ureq, WindowControl wControl, ControllerEventListener listeningController, boolean actionEnabled) {
    Locale loc = ureq.getLocale();
    Translator trans = new PackageTranslator(PACKAGE, loc);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setDownloadOffered(true);
    tableConfig.setPreferencesOffered(true, "ExtendedIdentitiesTable");   
    tableConfig.setTableEmptyMessage(trans.translate("error.no.user.found"));

    trans = UserManager.getInstance().getPropertyHandlerTranslator(trans);
    TableController tableCtr = new TableController(tableConfig, ureq, wControl, trans, listeningController);
    dataModel.addColumnDescriptors(tableCtr, trans);
    tableCtr.setTableDataModel(dataModel);
View Full Code Here

    searchForm = new SearchForm("searchform", translator, withCancel, isUserManager||roles.isOLATAdmin(), limitType, limitUser);
    searchForm.addListener(this);
    searchForm.setVisible(false);
    vc.put("searchform",searchForm);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (selectButtonLabel != null) tableConfig.setPreferencesOffered(true, "repositorySearchResult");
   
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), translator, this);
    repoTableModel = new RepositoryTableModel(translator);
    repoTableModel.addColumnDescriptors(tableCtr, selectButtonLabel, enableDirectLaunch);
    tableCtr.addMultiSelectAction("resource.table.select", ACTION_MULTI_SELECT);
View Full Code Here

    if (mayModifyMembers) {
      groupmemberview.contextPut("mayadduser", Boolean.TRUE);
    }

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (enableTablePreferences) {
      // save table preferences for each group seperatly
      if (mayModifyMembers) {
        tableConfig.setPreferencesOffered(true, "groupcontroller" + securityGroup.getKey());
      } else {
        // different rowcount...
        tableConfig.setPreferencesOffered(true, "groupcontrollerreadonly" + securityGroup.getKey());
      }
    }
    // TODO:fj:c move to UserControllerFactory class
    myTrans = UserManager.getInstance().getPropertyHandlerTranslator(getTranslator());
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), myTrans, null);   
View Full Code Here

    searchForm = new SearchForm("searchform", translator, withCancel, roles.isOLATAdmin(), limitTypes);
    searchForm.addListener(this);
    searchForm.setVisible(false);
    vc.put("searchform",searchForm);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    if (selectButtonLabel != null) tableConfig.setPreferencesOffered(true, "repositorySearchResult");
   
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), translator, this, true);

    repoTableModel = new RepositoryTableModel(translator);
    repoTableModel.addColumnDescriptors(tableCtr, selectButtonLabel, enableDirectLaunch);
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.