本文整理了Java中org.eclipse.swt.widgets.Tree.setBackground()
方法的一些代码示例,展示了Tree.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.setBackground()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!