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

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

本文整理了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

void destroyItem (TableItem item) {
  int index = 0;
  while (index < itemCount) {
    if (items [index] == item) break;
    index++;
  }
  if (index != itemCount - 1) fixSelection (index, false); 
  System.arraycopy (items, index + 1, items, index, --itemCount - index);
  items [itemCount] = null;
  updateRowCount();
  if (itemCount == 0) setTableEmpty ();
}

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

/**
 * Removes all of the items from the receiver.
 * 
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void removeAll () {
  checkWidget ();
  for (int i=0; i<itemCount; i++) {
    TableItem item = items [i];
    if (item != null && !item.isDisposed ()) item.release (false);
  }
  setTableEmpty ();
  updateRowCount();
}

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

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

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

/**
 * Removes the item from the receiver at the given
 * zero-relative index.
 *
 * @param index the index for the item
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li>
 * </ul>
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void remove (int index) {
  checkWidget ();
  if (!(0 <= index && index < itemCount)) error (SWT.ERROR_INVALID_RANGE);
  TableItem item = items [index];
  if (item != null) item.release (false);
  if (index != itemCount - 1) fixSelection (index, false);
  System.arraycopy (items, index + 1, items, index, --itemCount - index);
  items [itemCount] = null;
  updateRowCount();
  if (itemCount == 0) {
    setTableEmpty ();
  }
}

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

setTableEmpty();

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

setTableEmpty ();

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

void destroyItem (TableItem item) {
  int count = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0);
  int index = 0;
  while (index < count) {
    if (_getItem (index, false) == item) break;
    index++;
  }
  if (index == count) return;
  setDeferResize (true);
  ignoreSelect = ignoreShrink = true;
  int /*long*/ code = OS.SendMessage (handle, OS.LVM_DELETEITEM, index, 0);
  ignoreSelect = ignoreShrink = false;
  if (code == 0) error (SWT.ERROR_ITEM_NOT_REMOVED);
  _removeItem (index, count);
  --count;
  if (count == 0) setTableEmpty ();
  setDeferResize (false);
}

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

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

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

setTableEmpty ();

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

if (count == 0) setTableEmpty ();
setDeferResize (false);

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

_removeItem (index, count);
--count;
if (count == 0) setTableEmpty ();
setDeferResize (false);

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

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

相关文章

Table类方法