Package org.rssowl.contrib.podcast.core.download

Examples of org.rssowl.contrib.podcast.core.download.IDownload


  @Override
  protected void measure(Event event, Object element) {
    if (event.index == 3) {
      if (element instanceof IDownload) {
        IDownload lDownload = (IDownload) element;
        int lColumnWidth = mViewer.mTableViewer.getTable().getColumn(
            event.index).getWidth();
        event.width = lColumnWidth;
      }
    }
View Full Code Here


  @Override
  protected void paint(Event event, Object element) {
    if (event.index == 3) {
      if (element instanceof IDownload) {
        IDownload lDownload = (IDownload) element;
        sLog.info("paint(): " + lDownload.getAttachment().getFileName());
        // This is the total client area.
        Scrollable lScrollable = (Scrollable) event.widget;
        Rectangle lClient = lScrollable.getClientArea();

        Rectangle rect = event.getBounds();
View Full Code Here

    public Object doGetContentAt(int col, int row) {
        if (row == 0) {
            return COLUMN_NAMES[col];
        } else {
            if (row < mDownloadList.length + 1) {
                IDownload lDownload = (IDownload) mDownloadList[row - 1];
                if (col == 3) {
                    int lProgress = lDownload.getCurrent();
                    int lLength = lDownload.getLength();
                    float lTemp = ((float) lProgress / (float) lLength);
                    return new Float(lTemp);
                } else {
                    return lDownload;
                }
View Full Code Here

TOP

Related Classes of org.rssowl.contrib.podcast.core.download.IDownload

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.