org.eclipse.swt.widgets.Tree.setCursor()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.eclipse.swt.widgets.Tree.setCursor()方法的一些代码示例,展示了Tree.setCursor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.setCursor()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:setCursor

Tree.setCursor介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui

public void mouseMove(MouseEvent e) {
  if ((e.x > columnPosition - columnHitWidth) && (e.x < columnPosition + columnHitWidth)) {
    if (cursor == null) {
      cursor = new Cursor(fTree.getDisplay(), SWT.CURSOR_SIZEWE);
      fTree.setCursor(cursor);
    }
  }
  else {
    if (cursor != null) {
      fTree.setCursor(null);
      cursor.dispose();
      cursor = null;
    }
  }
  if (columnDragged != -1) {
    // using the delay timer will make redraws less flickery
    if (e.x > 20) {
      columnPosition = e.x;
      delayedDrawTimer.reset(20);
    }
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

treeViewer.getTree().setCursor(handCursor);
  IStructuredSelection ssel = (IStructuredSelection) treeViewer
      .getSelection();
  updateStatus(null);
treeViewer.getTree().setCursor(null);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

Object o= tree.getItem(new Point(e.x, e.y));
if (fLastItem == null ^ o == null) {
  tree.setCursor(o == null ? null : tree.getDisplay().getSystemCursor(SWT.CURSOR_HAND));

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

Object o= tree.getItem(new Point(e.x, e.y));
if (fLastItem == null ^ o == null) {
  tree.setCursor(o == null ? null : tree.getDisplay().getSystemCursor(SWT.CURSOR_HAND));

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

TreeItem currentItem = tree.getItem(new Point(e.x, e.y));
if (fLastItem == null ^ currentItem == null) {
  tree.setCursor(currentItem == null ? null : tree.getDisplay()
      .getSystemCursor(SWT.CURSOR_HAND));

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

tree.setCursor(showHandPointer ? tree.getDisplay().getSystemCursor(SWT.CURSOR_HAND) : null);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

tree.setCursor(showHandPointer ? tree.getDisplay().getSystemCursor(SWT.CURSOR_HAND) : null);

代码示例来源:origin: BiglySoftware/BiglyBT

tree.setCursor(cursor);

相关文章

Tree类方法