Package org.jmule.core.sharingmanager

Examples of org.jmule.core.sharingmanager.FileQuality


    grid_data.grabExcessHorizontalSpace = true;
    button_ok.setLayoutData(grid_data);
    button_ok.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        String selection = file_quality_combo.getItem(file_quality_combo.getSelectionIndex());
        FileQuality quality = (FileQuality) file_quality_combo.getData(selection);
        shared_file.setFileQuality(quality);
        remove_refreshable();
        shell.close();
      }
    });
View Full Code Here


        if (columnID == SWTPreferences.SEARCH_FILESIZE_COLUMN_ID)
          return Misc.compareAllObjects(object1, object2,
              "getFileSize", order);

        if (columnID == SWTPreferences.SEARCH_FILEQUALITY_COLUMN_ID) {
          FileQuality q1 = object1.getFileQuality();
          FileQuality q2 = object2.getFileQuality();
          int result = 0;
          if (q1.getAsInt() > q2.getAsInt())
            result = 1;
          else if (q1.getAsInt() < q2.getAsInt())
            result = -1;
          if (order)
            return result;
          return Misc.reverse(result);
        }
View Full Code Here

TOP

Related Classes of org.jmule.core.sharingmanager.FileQuality

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.