Examples of TableController


Examples of mage.server.TableController

        }
        // replace player that quits with draft bot
        if (humans > 1) {
            String replacePlayerName = "Draftbot";
            User user = UserManager.getInstance().getUser(userId);
            TableController tableController = TableManager.getInstance().getController(tableId);
            if (tableController != null) {
                if (user != null) {
                    replacePlayerName = "Draftbot (" + user.getName() + ")";
                }
                tableController.replaceDraftPlayer(leavingPlayer.getPlayer(), replacePlayerName, "Computer - draftbot", 5);
                if (user != null) {
                    user.removeDraft(leavingPlayer.getPlayer().getId());
                    user.removeTable(leavingPlayer.getPlayer().getId());
                    user.removeTournament(leavingPlayer.getPlayer().getId());
                }
View Full Code Here

Examples of net.rim.device.api.ui.component.table.TableController

                        1, 1, 1, 1), Border.STYLE_SOLID), null, null, null,
                        RegionStyles.ALIGN_LEFT, RegionStyles.ALIGN_TOP);

        // Create the view and controller
        final TableView tableView = new TableView(_tableModel);
        final TableController tableController =
                new TableController(_tableModel, tableView);

        // Set the controller focus policy to highlight rows
        tableController.setFocusPolicy(TableController.ROW_FOCUS);

        // Set the behaviour of the controller when a table item is clicked
        tableController.setCommand(new Command(new CommandHandler() {
            /**
             * @see CommandHandler#execute(ReadOnlyCommandMetadata, Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
View Full Code Here

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

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

    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

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

    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

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

   */
  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

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

    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

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

    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

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

  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

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

    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
TOP
Copyright © 2018 www.massapi.com. 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.