Package com.aelitis.azureus.ui.swt.columns.utils

Examples of com.aelitis.azureus.ui.swt.columns.utils.ColumnImageClickArea


    setMinWidth(COLUMN_WIDTH);
    setMaxWidth(COLUMN_WIDTH);

    display = SWTThread.getInstance().getDisplay();

    ColumnImageClickArea clickArea;

    clickArea = new ColumnImageClickArea(COLUMN_ID, "up", "image.torrent.up");
    clickArea.setPosition(0, 0);
    listClickAreas.add(clickArea);

    clickArea = new ColumnImageClickArea(COLUMN_ID, "down", "image.torrent.down");
    clickArea.setPosition(16, 0);
    listClickAreas.add(clickArea);
}
View Full Code Here


      cell.setMarginHeight(1);
      cell.setMarginWidth(0);
      cell.setFillCell(true);

      for (Iterator iter = listClickAreas.iterator(); iter.hasNext();) {
        ColumnImageClickArea clickArea = (ColumnImageClickArea) iter.next();
        clickArea.addCell(cell);
      }
    }
View Full Code Here

        GCStringPrinter.printString(gcImage, "" + position + (dm.getAssumedComplete() ? "^" : "v"), bounds, true,
            false, SWT.BOTTOM | SWT.CENTER);
        gcImage.setFont(null);

        for (Iterator iter = listClickAreas.iterator(); iter.hasNext();) {
          ColumnImageClickArea clickArea = (ColumnImageClickArea) iter.next();
          clickArea.drawImage(cell, gcImage);
        }
      } finally {
        gcImage.dispose();
      }
View Full Code Here

        DownloadManager dm = (DownloadManager) event.cell.getDataSource();
        if (dm == null) {
          return;
        }

        ColumnImageClickArea clickArea = (ColumnImageClickArea) event.data;
        log(event.cell, "CLICK ON " + clickArea.getId());
        if (clickArea.getId().equals("up")) {
          dm.getGlobalManager().moveUp(dm);
        } else if (clickArea.getId().equals("down")) {
          dm.getGlobalManager().moveDown(dm);
        }
        event.cell.getTableColumn().invalidateCells();
      }
    }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.swt.columns.utils.ColumnImageClickArea

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.