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

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


   
    mainVC = this.createVelocityContainer("manualSorting");
    tablePanel = new Panel("table");
    mainVC.put("table", tablePanel);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setMultiSelect(true);
    tableConfig.setSortingEnabled(true);
    tableConfig.setTableEmptyMessage("manual.sorting.no.entries.found");
    tableController = new TableController(tableConfig, ureq, getWindowControl(), this.getTranslator(), this);
    int maxNumColumns = tableDataModel.getColumnCount();
    int columnCounter=0;
    tableController.addColumnDescriptor(new DefaultColumnDescriptor("table.manual.sorting.title", columnCounter++, null, ureq.getLocale()));
    if(maxNumColumns==2){
View Full Code Here


  public RevisionListController(UserRequest ureq, WindowControl wControl, Versionable versionedFile, String title, String description) {
    super(ureq, wControl);
    this.versionedFile = versionedFile;

    TableGuiConfiguration summaryTableConfig = new TableGuiConfiguration();
    summaryTableConfig.setDownloadOffered(true);
    summaryTableConfig.setTableEmptyMessage(getTranslator().translate("version.noRevisions"));

    revisionListTableCtr = new TableController(summaryTableConfig, ureq, getWindowControl(), getTranslator(), null);
    revisionListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.nr", 0, null, ureq.getLocale()) {
      @Override
      public int compareTo(int rowa, int rowb) {
View Full Code Here

  public DeletedFileListController(UserRequest ureq, WindowControl wControl, VFSContainer container) {
    super(ureq, wControl);
    this.container = container;
    deletedFiles = VersionsManager.getInstance().getDeletedFiles(container);

    TableGuiConfiguration summaryTableConfig = new TableGuiConfiguration();
    summaryTableConfig.setDownloadOffered(false);
    summaryTableConfig.setTableEmptyMessage(getTranslator().translate("version.noDeletedFiles"));

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

  /**
   * rebuild the user list with the latest entries
   */
  private void updateUI(UserRequest ureq, boolean init) {
    if (init) {
      TableGuiConfiguration tableConfig = new TableGuiConfiguration();
      if (tableCtr != null) removeAsListenerAndDispose(tableCtr);
      tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), null);
      listenTo(tableCtr);
      tableModel = new ConnectedUsersTableModel(getTranslator(), InstantMessagingModule.isEnabled());
      tableModel.addColumnDescriptors(tableCtr);
View Full Code Here

   
    this.efficiencyStatementsVC = this.createVelocityContainer("efficiencyStatementsPortlet");
   
    showAllLink = LinkFactory.createLink("efficiencyStatementsPortlet.showAll", efficiencyStatementsVC, this);   
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("efficiencyStatementsPortlet.nostatements"));
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setCustomCssClass("b_portlet_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setDownloadOffered(false);
    //disable the default sorting for this table
    tableConfig.setSortingEnabled(false);
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), trans, this);
    DefaultColumnDescriptor cd0 = new DefaultColumnDescriptor("table.header.course", 0, CMD_LAUNCH, trans.getLocale());
    cd0.setIsPopUpWindowAction(true, "height=600, width=800, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no");
    tableCtr.addColumnDescriptor(cd0);
   
View Full Code Here

  protected NotificationSubscriptionController(Identity subscriberIdentity, UserRequest ureq, WindowControl wControl) {
    // use home fallback for rss translations
    super(ureq, wControl, Util.createPackageTranslator(HomeMainController.class, ureq.getLocale()));
    this.subscriberIdentity = subscriberIdentity;
    // Build the table that contains all the subscriptions
    TableGuiConfiguration tableGuiPrefs = new TableGuiConfiguration();
    tableGuiPrefs.setTableEmptyMessage(translate("subscriptions.no.subscriptions"));
    subscriptionsTableCtr = new TableController(tableGuiPrefs, ureq, wControl, getTranslator(), null);
    subscriptionsTableModel = new NotificationSubscriptionTableDataModel(getTranslator());
    subscriptionsTableModel.addTableColumns(subscriptionsTableCtr);
    updateSubscriptionsDataModel();
    listenTo(subscriptionsTableCtr);
View Full Code Here

    sortingTermsList.add(SortingCriteria.DATE_SORTING);
   
    this.notesVC = this.createVelocityContainer("notesPortlet");
    showAllLink = LinkFactory.createLink("notesPortlet.showAll", notesVC, this);
     
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("notesPortlet.nonotes"));
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setCustomCssClass("b_portlet_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setDownloadOffered(false);
    //disable the default sorting for this table
    tableConfig.setSortingEnabled(false);
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), trans, this);
    // dummy header key, won't be used since setDisplayTableHeader is set to false
    DefaultColumnDescriptor cd0 = new DefaultColumnDescriptor("notesPortlet.bgname", 0, CMD_LAUNCH, trans.getLocale());
    cd0.setIsPopUpWindowAction(true, "height=550, width=750, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no");
    tableCtr.addColumnDescriptor(cd0);
View Full Code Here

 
  private void init(UserRequest ureq) {
    main = createVelocityContainer("qtires");
    details = createVelocityContainer("qtires_details");
   
    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")));
View Full Code Here

    sortingTermsList.add(SortingCriteria.DATE_SORTING);
   
    this.notificationsVC = this.createVelocityContainer("notificationsPortlet");   
    showAllLink = LinkFactory.createLink("notificationsPortlet.showAll", notificationsVC, this);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(trans.translate("notificationsPortlet.nonotifications"));
    tableConfig.setDisplayTableHeader(false);
    tableConfig.setCustomCssClass("b_portlet_table");
    tableConfig.setDisplayRowCount(false);
    tableConfig.setPageingEnabled(false);
    tableConfig.setDownloadOffered(false);
    //disable the default sorting for this table
    tableConfig.setSortingEnabled(false);
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), trans, this);
    // dummy header key, won't be used since setDisplayTableHeader is set to false
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("notificationsPortlet.bgname", 0, CMD_LAUNCH, trans.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("notificationsPortlet.type", 1, null, trans.getLocale(), ColumnDescriptor.ALIGNMENT_RIGHT));
 
View Full Code Here

  public NoteListController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    this.cOwner = ureq.getIdentity();
    this.locale = ureq.getLocale();
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setDownloadOffered(false);
    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(
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.