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

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


   
    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){
      tableController.addColumnDescriptor(new DefaultColumnDescriptor("table.manual.sorting.date", columnCounter++, null, ureq.getLocale()));
View Full Code Here


    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) {
        Object a = table.getTableDataModel().getValueAt(rowa, dataColumn);
        Object b = table.getTableDataModel().getValueAt(rowb, dataColumn);
View Full Code Here

    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()));
    deletedFilesListTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("version.date", 3, null, ureq.getLocale()));
    deletedFilesListTableCtr.addColumnDescriptor(new StaticColumnDescriptor(CMD_DOWNLOAD, "version.download", getTranslator().translate(
View Full Code Here

   */
  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);
      tableCtr.setTableDataModel(tableModel);
      tableCtr.setSortColumn(1, true);
View Full Code Here

    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);
   
    this.sortingCriteria = getPersistentSortingConfiguration(ureq);
View Full Code Here

    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);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("notesPortlet.type", 1, null, trans.getLocale(), ColumnDescriptor.ALIGNMENT_RIGHT));
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

    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));
 
    this.sortingCriteria = getPersistentSortingConfiguration(ureq);
View Full Code Here

    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(
        "action.delete")));
View Full Code Here

    dialogPanel = putInitialPanel(content);
    showOverviewTable(ureq, forumCallback);
  }

  private void showOverviewTable(UserRequest ureq, DialogNodeForumCallback callback) {
    tableCtr = new TableController(tableConf, ureq, getWindowControl(), getTranslator(), null);
    DialogPropertyElements elements = dialogElmsMgr.findDialogElements(coursePropMgr, courseNode);
    List list = new ArrayList();
    tableModel = new DialogElementsTableModel(getTranslator(), callback, courseNode.getModuleConfiguration());
    if (elements != null) list = elements.getDialogPropertyElements();
    for (Iterator iter = list.iterator(); iter.hasNext();) {
View Full Code Here

TOP

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

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.