本文整理了Java中org.eclipse.swt.widgets.Tree.redrawWidget()
方法的一些代码示例,展示了Tree.redrawWidget()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.redrawWidget()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:redrawWidget
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean setScrollWidth (boolean set, TreeItem[] items, boolean recurse) {
if (items == null) return false;
if (ignoreRedraw || !getDrawing()) return false;
if (columnCount != 0) return false;
GC gc = new GC (this);
int newWidth = calculateWidth (items, 0, gc, recurse);
gc.dispose ();
if (!set) {
int oldWidth = (int)firstColumn.width ();
if (oldWidth >= newWidth) return false;
}
firstColumn.setWidth (newWidth);
if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
return true;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean setScrollWidth (TreeItem item) {
if (ignoreRedraw || !getDrawing()) return false;
if (columnCount != 0) return false;
TreeItem parentItem = item.parentItem;
if (parentItem != null && !parentItem.getExpanded ()) return false;
GC gc = new GC (this);
int newWidth = item.calculateWidth (0, gc);
gc.dispose ();
int oldWidth = (int)firstColumn.width ();
if (oldWidth < newWidth) {
firstColumn.setWidth (newWidth);
if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
return true;
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!