Examples of DeviceOfflineDownload


Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    });
    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  public void refresh(TableCell cell) {
    DeviceOfflineDownload od = (DeviceOfflineDownload) cell.getDataSource();
    if (od == null) {
      return;
    }

    String text = od.isTransfering()?js_resources[1]:js_resources[0];
   
    if ( text == null || text.length() == 0 ){
     
      return;
    }
View Full Code Here

Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    });
    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  public void refresh(TableCell cell) {
    DeviceOfflineDownload od = (DeviceOfflineDownload) cell.getDataSource();
    if (od == null) {
      return;
    }

    String text = od.getDownload().getName();
   
    if ( text == null || text.length() == 0 ){
     
      return;
    }
View Full Code Here

Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    cell.setText(text);
  }

  public String getObfusticatedText(TableCell cell) {
    DeviceOfflineDownload od = (DeviceOfflineDownload) cell.getDataSource();
    if (od == null) {
      return null;
    }
    String name = od.getDownload().toString();
    int i = name.indexOf('#');
    if (i > 0) {
      name = name.substring(i + 1);
    }
    return name;
View Full Code Here

Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    mapCellLastPercentDone.remove(cell);
  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
    DeviceOfflineDownload od =  (DeviceOfflineDownload) cell.getDataSource();

    int percentDone = getPerThouDone(od);

    Integer intObj = mapCellLastPercentDone.get(cell);
    int lastPercentDone = intObj == null ? 0 : intObj.intValue();
View Full Code Here

Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    }
  }

  // @see org.gudy.azureus2.ui.swt.views.table.TableCellSWTPaintListener#cellPaint(org.eclipse.swt.graphics.GC, org.gudy.azureus2.ui.swt.views.table.TableCellSWT)
  public void cellPaint(GC gcImage, TableCellSWT cell) {
    DeviceOfflineDownload od =  (DeviceOfflineDownload) cell.getDataSource();
   
    Rectangle bounds = cell.getBounds();

    int yOfs = (bounds.height - 13) / 2 ;
    int x1 = bounds.width - borderWidth - 2;
    int y1 = bounds.height - 3 - yOfs;

    if (x1 < 10 || y1 < 3) {
      return;
    }

    if ( !od.isTransfering()){
     
      gcImage.fillRectangle( bounds );
     
      return;
    }
View Full Code Here

Examples of com.aelitis.azureus.core.devices.DeviceOfflineDownload

    });
    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  public void refresh(TableCell cell) {
    DeviceOfflineDownload od = (DeviceOfflineDownload) cell.getDataSource();
    if (od == null) {
      return;
    }

    long remaining = od.getRemaining();
   
    cell.setText( remaining==0?"":DisplayFormatters.formatByteCountToKiBEtc( remaining ));
  }
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.