Package org.eclipse.swt.widgets

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


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


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

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

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

   
    searchResults.setLayout(tableLayout);
   
    TableColumn columnCheck = new TableColumn(searchResults, SWT.NONE);
    columnCheck.setText(""); //$NON-NLS-1$
    columnCheck.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent e) {
        setAllCheckedStatus(!_boAllSelected);
      }
    });
   
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        Controller.getInstance().getPlaylistController().sortPlaylistList(2);
      }
    });
   
    columnDate.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Controller.getInstance().getPlaylistController().sortPlaylistList(3);
      }
    });
   
View Full Code Here

            if (f.name.equals(currentSort)) {
              viewer.getTable().setSortColumn(tableColumn);
              viewer.getTable().setSortDirection(so);
            }
            tableColumn.setText(f.getTitle());
            tableColumn.addSelectionListener(new SortListener(
                tableColumn, f));

            if (f.needsFilter()) {
              Control createFilterControl = f
                  .createFilterControl(filters);
View Full Code Here

            if (f.name.equals(currentSort)) {
              viewer.getTable().setSortColumn(tableColumn);
              viewer.getTable().setSortDirection(so);
            }
            tableColumn.setText(f.getTitle());
            tableColumn.addSelectionListener(new SortListener(
                tableColumn, f));

            if (f.needsFilter()) {
              Control createFilterControl = f
                  .createFilterControl(filters);
View Full Code Here

              layout.addColumnData(columnLayouts[i]);
              TableColumn tc = new TableColumn(getTable(), SWT.NONE,i);
              tc.setResizable(columnLayouts[i].resizable);
              tc.setText(columnHeaders[i]);
              final int j = i;
              tc.addSelectionListener(new SelectionAdapter() {            
                  public void widgetSelected(SelectionEvent e) {
                    ViewerSorter oldSorter = viewer.getSorter();
                    if(oldSorter instanceof ColumnBasedSorter) {
                      ColumnBasedSorter sorter = (ColumnBasedSorter) oldSorter;                        
                      if(sorter.getColumn() == j) {
View Full Code Here

                TableColumn tc = new TableColumn(getTable(), SWT.BORDER, i);
                tc.setResizable(columnLayouts[i].resizable);
                tc.setText(columnHeaders[i]);
                tc.pack();
                final int j = i;
                tc.addSelectionListener(new SelectionAdapter() {
                    public void widgetSelected(SelectionEvent e) {
                        ViewerSorter oldSorter = viewer.getSorter();
                        if (oldSorter instanceof ColumnBasedSorter) {
                            ColumnBasedSorter sorter = (ColumnBasedSorter) oldSorter;
                            if (sorter.getColumn() == j) {
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.