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

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

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

Tree.setBackground介绍

暂无

代码示例

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

@Override
public void setBackgroundColor(Color background) {
  super.setBackgroundColor(background);
  fDetailPaneComposite.setBackground(background);
  fTree.setBackground(background);
}

代码示例来源:origin: be.yildiz-games/module-window-swt

public static TreeRoot create(Shell shell, int width, int height, TreeElement... elements) {
  Tree tree = new Tree(shell, SWT.NONE);
  tree.setBackground(shell.getBackground());
  return new TreeRoot(tree, width, height, elements);
}

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

private void
swt_updateSideBarColors()
{
  SWTSkinProperties skinProperties = skin.getSkinProperties();
  skinProperties.clearCache();
  bg = skinProperties.getColor("color.sidebar.bg");
  tree.setBackground(bg);
  tree.redraw();
  swt_updateSideBarColors( tree.getItems());
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.connectivity.ui.dse

/**
 * @param flag
 */
public void setEnabled( boolean flag ) {
  if (getNavigatorViewer() != null) {
    getNavigatorViewer().getTree().setEnabled(flag);
    if (flag) {
      getNavigatorViewer().getTree().setBackground(getNavigatorViewer().getTree().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
    }
    else {
      getNavigatorViewer().getTree().setBackground(getNavigatorViewer().getTree().getDisplay().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND));
    }
  }
}

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

COConfigurationManager.addParameterListener( "Side Bar Close Position", configBGColorListener );
tree.setBackground(bg);
tree.setForeground(fg);

相关文章

Tree类方法