Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TableColumn.addSelectionListener()


      }
    });

    tc = new TableColumn(table, SWT.LEFT);
    tc.setText("FN");
    tc.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent event) {
        ((TypeTableSorter) tableViewer.getSorter())
                .doSort(TypeEvalTableConst.COLUMN_FALSE_NEGATIVES);
        tableViewer.refresh();
View Full Code Here


      }
    });

    tc = new TableColumn(table, SWT.LEFT);
    tc.setText("Prec.");
    tc.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent event) {
        ((TypeTableSorter) tableViewer.getSorter()).doSort(TypeEvalTableConst.COLUMN_PRECISION);
        tableViewer.refresh();
      }
View Full Code Here

      }
    });

    tc = new TableColumn(table, SWT.LEFT);
    tc.setText("Recall");
    tc.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent event) {
        ((TypeTableSorter) tableViewer.getSorter()).doSort(TypeEvalTableConst.COLUMN_RECALL);
        tableViewer.refresh();
      }
View Full Code Here

      }
    });

    tc = new TableColumn(table, SWT.LEFT);
    tc.setText("F1");
    tc.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent event) {
        ((TypeTableSorter) tableViewer.getSorter()).doSort(TypeEvalTableConst.COLUMN_F1);
        tableViewer.refresh();
      }
View Full Code Here

      viewer.getTable().setHeaderVisible(true);
     
      TableColumn columnName = new TableColumn(viewer.getTable(), SWT.NONE);
      columnName.setText(Messages.getString("PodcastListView.Name")); //$NON-NLS-1$
     
      columnName.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          Controller.getInstance().getPlaylistController().sortPodcastList(1);
        }
      });
     
View Full Code Here

      });
     
      TableColumn columnTitle = new TableColumn(viewer.getTable(), SWT.NONE);
      columnTitle.setText(Messages.getString("PodcastListView.Title")); //$NON-NLS-1$
     
      columnTitle.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          Controller.getInstance().getPlaylistController().sortPodcastList(2);
        }
      });
     
View Full Code Here

      });
     
      TableColumn columnDescription = new TableColumn(viewer.getTable(), SWT.NONE);
      columnDescription.setText(Messages.getString("PodcastListView.Description")); //$NON-NLS-1$
     
      columnDescription.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          Controller.getInstance().getPlaylistController().sortPodcastList(3);
        }
      });
     
View Full Code Here

    columnIcon.setText("");     //$NON-NLS-1$
   
    TableColumn columnTrack = new TableColumn(viewer.getTable(), SWT.NONE);
    columnTrack.setText(Messages.getString("PlaylistView.TrackNumber")); //$NON-NLS-1$
   
    columnTrack.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Controller.getInstance().getPlaylistController().sortPlaylist(_thePlaylist, 3);
      }
    });
   
View Full Code Here

    });
   
    TableColumn columnTitle = new TableColumn(viewer.getTable(), SWT.NONE);
    columnTitle.setText(Messages.getString("PlaylistView.Title")); //$NON-NLS-1$
   
    columnTitle.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Controller.getInstance().getPlaylistController().sortPlaylist(_thePlaylist, 0);
      }
    });
   
View Full Code Here

    });
   
    TableColumn columnArtist = new TableColumn(viewer.getTable(), SWT.NONE);
    columnArtist.setText(Messages.getString("PlaylistView.Artist")); //$NON-NLS-1$
   
    columnArtist.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Controller.getInstance().getPlaylistController().sortPlaylist(_thePlaylist, 1);
      }
    });
   
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.