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

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

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

Table.redrawWidget介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. boolean setScrollWidth (TableItem [] items, boolean set) {
  2. if (items == null) return false;
  3. if (columnCount != 0) return false;
  4. if (!getDrawing()) return false;
  5. if (currentItem != null) {
  6. fixScrollWidth = true;
  7. return false;
  8. }
  9. GC gc = new GC (this);
  10. int newWidth = 0;
  11. for (int i = 0; i < items.length; i++) {
  12. TableItem item = items [i];
  13. if (item != null) {
  14. newWidth = Math.max (newWidth, item.calculateWidth (0, gc, isSelected(indexOf(item))));
  15. }
  16. }
  17. gc.dispose ();
  18. if (!set) {
  19. int oldWidth = (int)firstColumn.width ();
  20. if (oldWidth >= newWidth) return false;
  21. }
  22. firstColumn.setWidth (newWidth);
  23. if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
  24. return true;
  25. }

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. boolean setScrollWidth (TableItem item) {
  2. if (columnCount != 0) return false;
  3. if (!getDrawing()) return false;
  4. if (currentItem != null) {
  5. if (currentItem != item) fixScrollWidth = true;
  6. return false;
  7. }
  8. GC gc = new GC (this);
  9. int newWidth = item.calculateWidth (0, gc, isSelected(indexOf(item)));
  10. gc.dispose ();
  11. int oldWidth = (int)firstColumn.width ();
  12. if (oldWidth < newWidth) {
  13. firstColumn.setWidth (newWidth);
  14. if (horizontalBar != null && horizontalBar.view != null) redrawWidget (horizontalBar.view, false);
  15. return true;
  16. }
  17. return false;
  18. }

相关文章

Table类方法