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

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

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

Table.setTableEmpty介绍

暂无

代码示例

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

  1. void destroyItem (TableItem item) {
  2. int index = 0;
  3. while (index < itemCount) {
  4. if (items [index] == item) break;
  5. index++;
  6. }
  7. if (index != itemCount - 1) fixSelection (index, false);
  8. System.arraycopy (items, index + 1, items, index, --itemCount - index);
  9. items [itemCount] = null;
  10. updateRowCount();
  11. if (itemCount == 0) setTableEmpty ();
  12. }

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

  1. /**
  2. * Removes all of the items from the receiver.
  3. *
  4. * @exception SWTException <ul>
  5. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  6. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  7. * </ul>
  8. */
  9. public void removeAll () {
  10. checkWidget ();
  11. for (int i=0; i<itemCount; i++) {
  12. TableItem item = items [i];
  13. if (item != null && !item.isDisposed ()) item.release (false);
  14. }
  15. setTableEmpty ();
  16. updateRowCount();
  17. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. tableAdapter = new TableAdapter();
  2. columnHolder = new ItemHolder<>( TableColumn.class );
  3. setTableEmpty();
  4. selection = EMPTY_SELECTION;
  5. customItemHeight = -1;

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

  1. /**
  2. * Removes the item from the receiver at the given
  3. * zero-relative index.
  4. *
  5. * @param index the index for the item
  6. *
  7. * @exception IllegalArgumentException <ul>
  8. * <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li>
  9. * </ul>
  10. * @exception SWTException <ul>
  11. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  12. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  13. * </ul>
  14. */
  15. public void remove (int index) {
  16. checkWidget ();
  17. if (!(0 <= index && index < itemCount)) error (SWT.ERROR_INVALID_RANGE);
  18. TableItem item = items [index];
  19. if (item != null) item.release (false);
  20. if (index != itemCount - 1) fixSelection (index, false);
  21. System.arraycopy (items, index + 1, items, index, --itemCount - index);
  22. items [itemCount] = null;
  23. updateRowCount();
  24. if (itemCount == 0) {
  25. setTableEmpty ();
  26. }
  27. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. setTableEmpty();

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

  1. setTableEmpty ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. void destroyItem (TableItem item) {
  2. int count = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);
  3. int index = 0;
  4. while (index < count) {
  5. if (_getItem (index, false) == item) break;
  6. index++;
  7. }
  8. if (index == count) return;
  9. setDeferResize (true);
  10. ignoreSelect = ignoreShrink = true;
  11. int /*long*/ code = OS.SendMessage (handle, OS.LVM_DELETEITEM, index, 0);
  12. ignoreSelect = ignoreShrink = false;
  13. if (code == 0) error (SWT.ERROR_ITEM_NOT_REMOVED);
  14. _removeItem (index, count);
  15. --count;
  16. if (count == 0) setTableEmpty ();
  17. setDeferResize (false);
  18. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. setTableEmpty();
  2. } else {
  3. System.arraycopy( items, index + 1, items, index, itemCount - index );

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

  1. setTableEmpty ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. if (count == 0) setTableEmpty ();
  2. setDeferResize (false);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. _removeItem (index, count);
  2. --count;
  3. if (count == 0) setTableEmpty ();
  4. setDeferResize (false);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. if (code == 0) error (SWT.ERROR_ITEM_NOT_REMOVED);
  2. setTableEmpty ();
  3. setDeferResize (false);

相关文章

Table类方法