Package com.aelitis.azureus.ui.common.table

Examples of com.aelitis.azureus.ui.common.table.TableCellCore


  {
    if ( cells != null ){
     
      for (int i=0;i<cells.length;i++){
       
        TableCellCore cell = cells[i];
        try {cell.refresh();}
        catch (Exception e) {Debug.printStackTrace(e, "Error refreshing cell: " + cells[i].getTableColumn().getName());}
      }
    }
  }
View Full Code Here


   
    if ( cells != null ){
     
      for (int i=0;i<cells.length;i++){
       
        TableCellCore  cell = cells[i];
       
        cell.dispose();
      }
    }
  }
View Full Code Here

    switch (event.type) {
      case SWT.MouseHover: {
        if (toolTipShell != null && !toolTipShell.isDisposed())
          toolTipShell.dispose();

        TableCellCore cell = tv.getTableCell(event.x, event.y);
        if (cell == null)
          return;
        cell.invokeToolTipListeners(TableCellSWT.TOOLTIPLISTENER_HOVER);
        Object oToolTip = cell.getToolTip();
        if ( oToolTip == null ){
          oToolTip = cell.getDefaultToolTip();
        }
       
        // TODO: support composite, image, etc
        if (oToolTip == null)
          return;
View Full Code Here

    if (event.eventType == TableCellMouseEvent.EVENT_MOUSEDOWN) {
      mouseDownOn = false;
      Point pt = new Point(event.x, event.y);
      mouseDownOn = getArea().contains(pt);
      TableCellCore cell = (TableCellCore) event.row.getTableCell(columnID);
      if (cell != null) {
        cell.invalidate();
        cell.refreshAsync();
      }
    } else if (event.eventType == TableCellMouseEvent.EVENT_MOUSEUP
        && mouseDownOn) {
      mouseDownOn = false;
      TableCellMouseEvent mouseEvent = new TableCellMouseEvent();
View Full Code Here

      if (rowContainingMouse == event.row) {
        rowContainingMouse = null;
      }
      setContainsMouse(null, false);
      //System.out.println("d=" + image);
      TableCellCore cell = (TableCellCore) event.row.getTableCell(columnID);
      if (cell != null) {
        cell.invalidate();
        cell.refreshAsync();
      }
    } else if (event.eventType == TableCellMouseEvent.EVENT_MOUSEENTER) {
      rowContainingMouse = event.row;

      //System.out.println("e=" + image);
      TableCellCore cell = (TableCellCore) event.row.getTableCell(columnID);
      if (cell != null) {
        cell.invalidate();
        cell.refreshAsync();
      }
    }
  }
View Full Code Here

  private void setContainsMouse(TableCell cell, boolean contains) {
    if (cellContainsMouse != contains) {
      cellContainsMouse = contains;
     
      if (cell != null) {
        TableCellCore cellCore = (TableCellCore) cell;
        cellCore.invalidate();
        cellCore.refreshAsync();
        cellCore.setCursorID(cellContainsMouse ? SWT.CURSOR_HAND
            : SWT.CURSOR_ARROW);
        if (tooltip != null) {
          if (cellContainsMouse) {
            cellCore.setToolTip(tooltip);
          } else {
            Object oldTT = cellCore.getToolTip();
            if (tooltip.equals(oldTT)) {
              cellCore.setToolTip(null);
            }
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.common.table.TableCellCore

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.