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

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

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

Table.setItemCount介绍

[英]Sets the number of items contained in the receiver.
[中]设置接收器中包含的项目数。

代码示例

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

public PagingListener(Table table, IPage page){
  this.table = table;
  this.page = page;
  this.count = (int) page.getCount();
  table.setItemCount(count);
  this.addHead = false;
}

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

public void setCount(){
    this.count = (int) page.getCount();
    if(count == 0)
      throw new RuntimeException(RedisClient.i18nFile.getText(I18nFile.KEYNOTEXIST));
    table.setItemCount(count);
    
  }
}

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

public PagingListener(Table table, IPage page, boolean addHead){
  this.table = table;
  this.page = page;
  this.addHead = addHead;
  
  if(!addHead){
    this.count = (int) page.getCount();
  }else{
    this.count = (int) page.getCount()+1;
  }
  this.table.setItemCount(count);
}
@Override

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

tableViewFieldMappings.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wFields.table.setItemCount( numRows );
for ( int i = 0; i < numRows; i++ ) {
 String path = getFieldsDialogOperation.getPaths().get( i );

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

tableViewKeyFields.table.setItemCount( meta.getKeyLookups().size() );
for ( int i = 0; i < meta.getKeyLookups().size(); i++ ) {
 TableItem item = tableViewKeyFields.table.getItem( i );
tableViewFieldMappings.table.setItemCount( meta.getModelFields().length );
for ( int i = 0; i < meta.getModelFields().length; i++ ) {
 TableItem item = tableViewFieldMappings.table.getItem( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wKeysTb.table.setItemCount( 1 );
wKeysTb.setRowNums();
wFieldsTb.table.removeAll();
wFieldsTb.table.setItemCount( 1 );
wFieldsTb.setRowNums();
wCustomTb.setText( "" );
wKeysTb.table.setItemCount( 1 );
wKeysTb.setRowNums();
wFieldsTb.table.removeAll();
wFieldsTb.table.setItemCount( 1 );
wFieldsTb.setRowNums();
wCustomTb.setText( "" );
wKeysTb.table.setItemCount( 1 );
wKeysTb.setRowNums();
wFieldsTb.table.removeAll();
wFieldsTb.table.setItemCount( 1 );
wFieldsTb.setRowNums();
wCustomTb.setText( "" );
wKeysTb.table.setItemCount( 1 );
wKeysTb.setRowNums();
wFieldsTb.table.removeAll();
wFieldsTb.table.setItemCount( 1 );
wFieldsTb.setRowNums();
wCustomTb.setText( "" );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wFields.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

if ( fieldsNamesOfTbl == null ) {
 count = fieldNamesOfStream.length;
 myTb.table.setItemCount( count );
 for ( int i = 0; i < count; i++ ) {
  TableItem item = myTb.table.getItem( i );
  ( ( fieldNamesOfStream.length >= fieldsNamesOfTbl.length )
   ? fieldNamesOfStream.length : fieldsNamesOfTbl.length );
 myTb.table.setItemCount( count );
 for ( int i = 0; i < count; i++ ) {
  TableItem item = myTb.table.getItem( i );

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

myTb.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

this.wReturn.table.setItemCount( mappings.size() );
for ( int i = 0; i < mappings.size(); i++ ) {
 SourceToTargetMapping mapping = mappings.get( i );

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

int nrRows = input.getArgumentFieldNames().length;
if ( nrRows <= 0 ) {
 wArgumentFields.getTable().setItemCount( 1 );
} else {
 wArgumentFields.getTable().setItemCount( nrRows );
 for ( int i = 0; i < input.getArgumentFieldNames().length; i++ ) {
  TableItem item = wArgumentFields.getTable().getItem( i );

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

wKeysTb.table.setItemCount( nrKeyMapping );
for ( int i = 0; i < nrKeyMapping; i++ ) {
 TableItem item = wKeysTb.table.getItem( i );
wFieldsTb.table.setItemCount( nrFieldMapping );
for ( int i = 0; i < nrFieldMapping; i++ ) {

相关文章

Table类方法