Package org.eclipse.swt.widgets

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


    col.addListener(SWT.Selection, sorter);
   
    col = new TableColumn(t, SWT.LEFT);
    col.setText("Status");
    col.setWidth(20);
    col.addListener(SWT.Selection, sorter);
    t.setHeaderVisible(true);
   
    viewer.setColumnProperties(new String[] {"Project", "Status", ""});
    viewer.setContentProvider(new JobContentProvider(viewer, buildStatusAction));
    viewer.setLabelProvider(new JobLabelProvider());
View Full Code Here


              }
          }
      });
   
//    Listener for webPositiveIP_LastChecked webPositiveIP_LastChecked_boolean
    webPositiveIP_LastChecked.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              // sort column            
              TableItem[] items_to_sort = webPositiveIPs.getItems();
              String[][] new_items = Sorter.sortList(items_to_sort,3, webPositiveIPs.getColumnCount(),webPositiveIP_LastChecked_boolean);
             
View Full Code Here

                 }
          }
      });
   
    //Listener for bookMarkedIPs_DNS
    bookMarkedIPs_LastVerified.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              TableItem[] items_to_sort = bookMarkedIPs.getItems();
              String[][] new_items = Sorter.sortList(items_to_sort,2, bookMarkedIPs.getColumnCount(),bookMarkedIPs_LastVerified_boolean);
              if(bookMarkedIPs_LastVerified_boolean){
                  bookMarkedIPs_LastVerified_boolean = false;
View Full Code Here

              }
          }
      });
   
   
    bmt_time.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              // sort column            
              TableItem[] items_to_sort = bookMarkedTrackers.getItems();
              String[][] new_items = Sorter.sortList(items_to_sort,4, bookMarkedTrackers.getColumnCount(), bmt_time_boolean);
              if(bmt_time_boolean){
View Full Code Here

     
      TableColumn torrent_table_name = new TableColumn(torrent_table,SWT.NULL);
      torrent_table_name.setText("Torrent Name");
      torrent_table_name.setWidth(450);
     
      torrent_table_name.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              if(torrent_table_name_boolean){
                  type_to_sort=0;
                  read_torrent_dir(pluginInterface,text_filter.getText(),type_to_sort);
                  torrent_table_name_boolean = false;
View Full Code Here

     
      TableColumn torrent_table_date = new TableColumn(torrent_table,SWT.NULL);
      torrent_table_date.setText("Date Downloaded");
      torrent_table_date.setWidth(250);
     
      torrent_table_date.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              if(torrent_table_date_boolean){
                  type_to_sort=2;
                  read_torrent_dir(pluginInterface,text_filter.getText(),type_to_sort);
                  torrent_table_date_boolean = false;
View Full Code Here

            sortList(bookMarkedIPs, "BookmarkedIPs");
          }
      });
   
    //Listener for bookMarkedIPs_DNS
    bookMarkedIPs_DNS.addListener(SWT.Selection, new Listener() {
          public void handleEvent(Event e) {
              // sort column 1
            sortList(bookMarkedIPs, "DNSHostname");
          }
      });
View Full Code Here

   * @param columnList the list of the <code>TableColumn</code> elements.
   */
  private void hookSelectionListener(List<TableColumn> columnList) {
    for (Iterator<TableColumn> i = columnList.iterator(); i.hasNext();) {
      TableColumn column = i.next();
      column.addListener(SWT.Selection, new Listener() {
        public void handleEvent(Event event) {
          String columnKey = (String) event.widget.getData(COLUMN_KEY);
          sortBy(columnKey);
        }
      });
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.