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

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

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

Tree.isVisible介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

void createItem( TreeItem item, int index ) {
 if( itemCount == items.length ) {
  /*
   * Grow the array faster when redraw is off or the table is not visible.
   * When the table is painted, the items array is resized to be smaller to
   * reduce memory usage.
   */
  boolean small = /* drawCount == 0 && */isVisible();
  int length = small ? items.length + 4 : Math.max( 4, items.length * 3 / 2 );
  TreeItem[] newItems = new TreeItem[ length ];
  System.arraycopy( items, 0, newItems, 0, items.length );
  items = newItems;
 }
 System.arraycopy( items, index, items, index + 1, itemCount - index );
 items[ index ] = item;
 itemCount++;
 adjustItemIndices( index );
}

代码示例来源:origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void setFocus() {
  if (treeViewer.getTree().isVisible()) {
    treeViewer.getTree().setFocus();
  } else {
    mainForm.setFocus();
  }
}

代码示例来源:origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void setFocus() {
  if (treeViewer.getTree().isVisible()) {
    treeViewer.getTree().setFocus();
  } else {
    mainForm.setFocus();
  }
}

代码示例来源:origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void setFocus() {
  if (treeViewer.getTree().isVisible()) {
    treeViewer.getTree().setFocus();
  } else {
    mainForm.setFocus();
  }
}

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

if (!tree.isVisible()) {
  return;

相关文章

Tree类方法