本文整理了Java中org.eclipse.swt.widgets.Table.redrawWidget()
方法的一些代码示例,展示了Table.redrawWidget()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.redrawWidget()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:redrawWidget
暂无
代码示例来源: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.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.swt.cocoa.macosx/x86_64
boolean setScrollWidth (TableItem [] items, boolean set) {
if (items == null) return false;
if (columnCount != 0) return false;
if (!getDrawing()) return false;
if (currentItem != null) {
fixScrollWidth = true;
return false;
}
GC gc = new GC (this);
int newWidth = 0;
for (int i = 0; i < items.length; i++) {
TableItem item = items [i];
if (item != null) {
newWidth = Math.max (newWidth, item.calculateWidth (0, gc, isSelected(indexOf(item))));
}
}
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 (TableItem item) {
if (columnCount != 0) return false;
if (!getDrawing()) return false;
if (currentItem != null) {
if (currentItem != item) fixScrollWidth = true;
return false;
}
GC gc = new GC (this);
int newWidth = item.calculateWidth (0, gc, isSelected(indexOf(item)));
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;
}
内容来源于网络,如有侵权,请联系作者删除!