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

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

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

Table.clearAll介绍

[英]Clears all the items in the receiver. The text, icon and other attributes of the items are set to their default values. If the table was created with the SWT.VIRTUAL style, these attributes are requested again as needed.
[中]清除接收器中的所有项目。项目的文本、图标和其他属性设置为默认值。如果表是用SWT.VIRTUAL样式创建的,则会根据需要再次请求这些属性。

代码示例

代码示例来源:origin: caoxinyu/RedisClient

private void refresh() {
  pageListener.setCount();
  table.clearAll();
  table.setSelection(-1);
  tableItemSelected();
}
@Override

代码示例来源:origin: caoxinyu/RedisClient

private void refresh() {
  pageListener.setCount();
  table.clearAll();
  table.setSelection(0);
  table.setSelection(-1);
  currentData.setItem(null);
  status = Status.Normal;
  statusChanged();
}
@Override

代码示例来源:origin: pentaho/pentaho-kettle

wGrid.table.clearAll();

代码示例来源:origin: pentaho/pentaho-kettle

item.dispose();
table.clearAll();

代码示例来源:origin: caoxinyu/RedisClient

private void refresh() {
  table.removeListener(SWT.MouseDown, editListener);
  table.addListener(SWT.MouseDown, new EditListener(table, false));
  
  table.removeListener(SWT.SetData, pageListener);
  pageListener = new PagingListener(table, new ZSetPage(id, db, key));
  table.addListener(SWT.SetData, pageListener);
  
  table.clearAll();
  table.setSelection(0);
  statusChanged();
  
}

代码示例来源:origin: caoxinyu/RedisClient

@Override
  public void widgetSelected(SelectionEvent e) {
    table.addListener(SWT.MouseDown, editListener);
    
    table.removeListener(SWT.SetData, pageListener);
    pageListener = new PagingListener(table, new ZSetPage(id, db, key), true);
    table.addListener(SWT.SetData, pageListener);
    table.clearAll();
    
    TableItem item = table.getItem(0);
    
    table.setSelection(item);
    item.setText(new String[]{"", ""});
    editListener.clickRow(item, 0);
    addModifyTextListener();
    currentItem = item;
    status = Status.Add;
    statusChanged();
  }
});

代码示例来源:origin: pentaho/pentaho-kettle

model.logDisplayTableView.table.clearAll();

代码示例来源:origin: pentaho/pentaho-kettle

model.logDisplayTableView.table.clearAll();

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

@Override
protected void doClearAll() {
  table.clearAll();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
protected void clearChildren(Widget item) {
  if (item instanceof Table) {
    fTable.clearAll();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
protected void doClearAll() {
  table.clearAll();
}

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

protected void doClearAll() {
  table.clearAll();
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (table != null && !table.isDisposed()) {
      table.clearAll();
    }
  }
});

代码示例来源:origin: cbeust/testng-eclipse

@Override
public void aboutToStart() {
 m_tests.clear();
 m_testResults.clear();
 m_testViewer.refresh();
 m_excludedMethodViewer.getTable().clearAll();
}

代码示例来源:origin: BiglySoftware/BiglyBT

protected void
updatePartialBuddyTable()
{
  if ( init_complete ){
    partial_buddy_table.setItemCount( partial_buddies.size());
    partial_buddy_table.clearAll();
    partial_buddy_table.redraw();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

protected void
updateTable()
{
  if ( init_complete ){
    buddy_table.setItemCount( buddies.size());
    buddy_table.clearAll();
    buddy_table.redraw();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void widgetSelected(SelectionEvent e) {
    CoreFactory.getSingleton().getPluginManager().refreshPluginList(false);
    pluginIFs = rebuildPluginIFs();
    table.setItemCount(pluginIFs.size());
    pluginIFs.sort(comparator);
    table.clearAll();
  }
});

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void widgetSelected(SelectionEvent e) {
    boolean ascending = comparator.setField(table.indexOf(tc));
    try {
      table.setSortColumn(tc);
      table.setSortDirection(ascending ? SWT.UP : SWT.DOWN);
    } catch (NoSuchMethodError ignore) {
      // Ignore Pre 3.0
    }
    pluginIFs.sort(comparator);
    table.clearAll();
  }
});

代码示例来源:origin: BiglySoftware/BiglyBT

private void refreshActivity() {
 if(activityChanged) {
  activityChanged = false;
  activities = dht.getControl().getActivities();
  activityTable.setItemCount(activities.length);
  activityTable.clearAll();
  //Dunno if still needed?
  activityTable.redraw();
 }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
 public void handleEvent(Event arg0) {
  TableItem[] selection = table.getSelection();
  if (selection.length == 0)
   return;
  removeRange((IpRange) selection[0].getData());
  ipRanges = getSortedRanges(filter.getRanges());
  table.setItemCount(ipRanges.length);
  table.clearAll();
  table.redraw();
 }
});

相关文章

Table类方法