org.pentaho.di.ui.core.widget.TableView.removeAll()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(127)

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

TableView.removeAll介绍

暂无

代码示例

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

private void getFields() {
 // Clear Fields Grid
 wFields.removeAll();
 for ( int i = 0; i < MailInputField.ColumnDesc.length; i++ ) {
  wFields.add( new String[] { MailInputField.ColumnDesc[i], MailInputField.ColumnDesc[i] } );
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}

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

private void get() {
 wFields.removeAll();
 Table table = wFields.table;
 for ( int i = 0; i < previousSteps.length; i++ ) {
  TableItem ti = new TableItem( table, SWT.NONE );
  ti.setText( 0, "" + ( i + 1 ) );
  ti.setText( 1, previousSteps[i] );
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}

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

public void getDatabases() {
 wFields.removeAll();
 for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) {
  DatabaseMeta ci = jobMeta.getDatabase( i );
  if ( ci != null ) {
   wFields.add( new String[] { ci.getName(), "0", JobEntryCheckDbConnections.unitTimeDesc[0] } );
  }
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}

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

private void get() {
 wFields.removeAll();
 Table table = wFields.table;
 for ( int i = 0; i < previousSteps.length; i++ ) {
  TableItem ti = new TableItem( table, SWT.NONE );
  ti.setText( 0, "" + ( i + 1 ) );
  ti.setText( 1, previousSteps[i] );
  ti.setText( 2, "0" );
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}

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

private void get() {
 wFields.removeAll();
 Table table = wFields.table;
 for ( int i = 0; i < previousSteps.length; i++ ) {
  TableItem ti = new TableItem( table, SWT.NONE );
  ti.setText( 0, "" + ( i + 1 ) );
  ti.setText( 1, previousSteps[i] );
  ti.setText( 2, "0" );
  ti.setText( 3, BaseMessages.getString( PKG, "System.Combo.No" ) );
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}

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

private void updateFields( MappingIODefinition definition, boolean input, Button wMainPath, Label wlInputStep,
              Text wInputStep, Button wbInputStep, Label wlOutputStep, Text wOutputStep,
              Button wbOutputStep, Label wlDescription, Text wDescription, TableView wFieldMappings,
              Button wRenameOutput ) {
 if ( tabChanges != null ) {
  tabChanges.applyChanges();
 }
 wMainPath.setSelection( definition.isMainDataPath() );
 wInputStep.setText( Const.NVL( definition.getInputStepname(), "" ) );
 wOutputStep.setText( Const.NVL( definition.getOutputStepname(), "" ) );
 wDescription.setText( Const.NVL( definition.getDescription(), "" ) );
 setTabFlags( wMainPath, wlInputStep, wInputStep, wbInputStep, wlOutputStep, wOutputStep, wbOutputStep,
  wlDescription, wDescription );
 wFieldMappings.removeAll();
 for ( MappingValueRename valueRename : definition.getValueRenames() ) {
  TableItem tableItem = new TableItem( wFieldMappings.table, SWT.NONE );
  tableItem.setText( 1, Const.NVL( valueRename.getSourceValueName(), "" ) );
  tableItem.setText( 2, Const.NVL( valueRename.getTargetValueName(), "" ) );
 }
 wFieldMappings.removeEmptyRows();
 wFieldMappings.setRowNums();
 wFieldMappings.optWidth( true );
 if ( input ) {
  wRenameOutput.setSelection( definition.isRenamingOnOutput() );
 }
 tabChanges =
  new MappingDefinitionTab( definition, wInputStep, wOutputStep, wMainPath, wDescription, wFieldMappings );
}

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

private void getVariables() {

  if ( transMeta == null ) {
   return;
  }
  String[] key = transMeta.listVariables();
  int size = key.length;
  String[] val = new String[size];
  wFields.removeAll();

  for ( int i = 0; i < size; i++ ) {
   val[i] = transMeta.environmentSubstitute( key[i] );
   TableItem tableItem = new TableItem( wFields.table, 0 );
   tableItem.setText( 1, key[i] );
   tableItem.setText( 2, "${" + key[i] + "}" );
   tableItem.setText( 3, "String" );
  }
  wFields.removeEmptyRows();
  wFields.setRowNums();
  wFields.optWidth( true );
 }
}

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

/**
 * Read the data from the TextFileInputMeta object and show it in this dialog.
 *
 * @param meta
 *          The TextFileInputMeta object to obtain the data from.
 */
public void getData( GetSubFoldersMeta meta ) {
 final GetSubFoldersMeta in = meta;
 if ( in.getFolderName() != null ) {
  wFoldernameList.removeAll();
  for ( int i = 0; i < in.getFolderName().length; i++ ) {
   wFoldernameList.add( new String[] {
    in.getFolderName()[i], in.getRequiredFilesDesc( in.getFolderRequired()[i] ) } );
  }
  wFoldernameList.removeEmptyRows();
  wFoldernameList.setRowNums();
  wFoldernameList.optWidth( true );
  wInclRownum.setSelection( in.includeRowNumber() );
  wFolderField.setSelection( in.isFoldernameDynamic() );
  if ( in.getRowNumberField() != null ) {
   wInclRownumField.setText( in.getRowNumberField() );
  }
  if ( in.getDynamicFoldernameField() != null ) {
   wFoldernameField.setText( in.getDynamicFoldernameField() );
  }
  wLimit.setText( "" + in.getRowLimit() );
 }
 wStepname.selectAll();
 wStepname.setFocus();
}

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

default String loadFields( final StepMetaType meta, final int samples, final boolean reloadAllFields ) {
 // fields loading might rely on specific order, and since we allow users to enter fields manually, order is not
 // guaranteed; we therefore need to ensure that fields are properly ordered within the fields table
 // cache the fields currently present in the fields table
 final Map<String, List<String>> fieldValues = getFieldValues();
 // clear the table so that we can re-add the fields in the correct order
 getFieldsTable().removeAll();
 getFieldsTable().removeEmptyRows();
 getFieldsTable().setRowNums();
 getFieldsTable().optWidth( true );
 // ...repopulate the field values in the correct order, keeping track of new incoming fields
 final Set<String> newFieldNames = repopulateFields( meta, fieldValues, reloadAllFields );
 populateMeta( meta );
 final String message = loadFieldsImpl( meta, samples );
 if ( message != null ) {
  if ( reloadAllFields ) {
   getFieldsTable().removeAll();
  }
  // OK, what's the result of our search?
  getData( meta, false, reloadAllFields, newFieldNames );
  getFieldsTable().removeEmptyRows();
  getFieldsTable().setRowNums();
  getFieldsTable().optWidth( true );
 }
 return message;
}

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

wFilenameList.removeAll();
for ( int i = 0; i < in.getFileName().length; i++ ) {
 wFilenameList.add( new String[] {

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

wFilenameList.removeAll();

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

wFields.removeAll();

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

wFields.removeAll();

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

wFilenameList.removeAll();

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

wFields.removeAll();

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

wFields.removeAll();

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

wFields.removeAll();

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

String[] available = row.getFieldNames();
wFields.removeAll();
for ( int i = 0; i < available.length; i++ ) {
 wFields.add( available[i] );

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

wFields.removeAll();

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

wFields.removeAll();

相关文章