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

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


          // Preview Mode, Show only file-name
          DefaultColumnDescriptor columnDescriptor = new DefaultColumnDescriptor("task.table.th_task", 0, ACTION_PREVIEW, ureq.getLocale());
          columnDescriptor.setIsPopUpWindowAction(true,DefaultColumnDescriptor.DEFAULT_POPUP_ATTRIBUTES );
          tableCtr.addColumnDescriptor(columnDescriptor);
        }
        tableCtr.addColumnDescriptor(new StaticColumnDescriptor("seltask", "task.table.th_action", translator.translate("task.table.choose")));
        List availableTasks = compileAvailableTasks();
        if (availableTasks.size() == 0) { // no more tasks available
          myContent.contextPut(VC_NOMORETASKS, translator.translate("task.nomoretasks"));
        }
        taskTableModel = new TaskTableModel(availableTasks);
View Full Code Here


    table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header2", 1, null, ureq.getLocale()));
    table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header3", 2, null, ureq.getLocale()));
    table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header4", 3, null, ureq.getLocale()));
    table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header5", 4, null, ureq.getLocale()));
    table.addColumnDescriptor(new CustomRenderColumnDescriptor("guidemo.table.header6", 5, null, ureq.getLocale(), CustomRenderColumnDescriptor.ALIGNMENT_CENTER, new ImageCellRenderer()));
    table.addColumnDescriptor(new StaticColumnDescriptor("action.select", "guidemo.table.header7", "Select"));
    model = new SampleTableModel();
    table.setTableDataModel(model);
    vcMain.put("table", table.getInitialComponent());
   
    //add source view control
View Full Code Here

    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.bm.resource", 1, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.bm.description", 2, null, ureq.getLocale()));
    listenTo(tableCtr);

    if (allowEdit) {
      tableCtr.addColumnDescriptor(new StaticColumnDescriptor("edit", "table.header.edit", myContent.getTranslator().translate(
          "action.edit")));
      tableCtr.addColumnDescriptor(new StaticColumnDescriptor("delete", "table.header.delete", myContent.getTranslator().translate(
          "action.delete")));
    }
    // Set default search type to search for all bookmarks
    searchType = type;
View Full Code Here

   */
  void addTableColumns(TableController subscriptionsTableCtr) {
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.type", 0, "launch", getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.resname", 1, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new DefaultColumnDescriptor("overview.column.subidentifier", 2, null, getLocale()));
    subscriptionsTableCtr.addColumnDescriptor(new StaticColumnDescriptor("del", "overview.column.action", trans
        .translate("overview.column.action.cellvalue")));
  }
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.