本文整理了Java中org.pentaho.di.ui.core.widget.TableView.clearAll()
方法的一些代码示例,展示了TableView.clearAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableView.clearAll()
方法的具体详情如下:
包路径:org.pentaho.di.ui.core.widget.TableView
类名称:TableView
方法名:clearAll
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void widgetSelected( SelectionEvent e ) {
clearAll( true );
}
};
代码示例来源:origin: pentaho/pentaho-kettle
public void clearAll() {
clearAll( false );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void populateOptionsTable() {
optionsTable.clearAll();
options.stream()
.forEach( option -> optionsTable.add( option.getText(), option.getValue() ) );
optionsTable.remove( 0 );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void populateTable() {
optionsTable.clearAll();
options
.forEach( option -> optionsTable.add( option.getText(), option.getValue() ) );
optionsTable.remove( 0 );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void getVariablesData() {
wVariables.clearAll( false );
List<String> variableNames = new ArrayList<String>( configuration.getVariables().keySet() );
Collections.sort( variableNames );
List<String> paramNames = new ArrayList<String>( configuration.getParams().keySet() );
for ( int i = 0; i < variableNames.size(); i++ ) {
String variableName = variableNames.get( i );
String variableValue = configuration.getVariables().get( variableName );
if ( !paramNames.contains( variableName ) ) {
//
// Do not put the parameters among the variables.
//
TableItem tableItem = new TableItem( wVariables.table, SWT.NONE );
tableItem.setText( 1, variableName );
tableItem.setText( 2, Const.NVL( variableValue, "" ) );
}
}
wVariables.removeEmptyRows();
wVariables.setRowNums();
wVariables.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void getArgumentsData() {
wArguments.clearAll( false );
List<String> argumentNames = new ArrayList<String>( configuration.getArguments().keySet() );
Collections.sort( argumentNames );
for ( int i = 0; i < argumentNames.size(); i++ ) {
String argumentName = argumentNames.get( i );
String argumentValue = configuration.getArguments().get( argumentName );
TableItem tableItem = new TableItem( wArguments.table, SWT.NONE );
tableItem.setText( 1, Const.NVL( argumentName, "" ) );
tableItem.setText( 2, Const.NVL( argumentValue, "" ) );
}
wArguments.removeEmptyRows();
wArguments.setRowNums();
wArguments.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void ActiveInsertScript() {
wFilename.setEnabled( !wInsertScript.getSelection() );
wlFilename.setEnabled( !wInsertScript.getSelection() );
wbFilename.setEnabled( !wInsertScript.getSelection() );
wScript.setEnabled( wInsertScript.getSelection() );
// We can not use arguments !!!
if ( wInsertScript.getSelection() ) {
wFields.clearAll( false );
wFields.setEnabled( false );
wlFields.setEnabled( false );
wPrevious.setSelection( false );
wPrevious.setEnabled( false );
wlPrevious.setEnabled( false );
wEveryRow.setSelection( false );
wEveryRow.setEnabled( false );
wlEveryRow.setEnabled( false );
} else {
wFields.setEnabled( true );
wlFields.setEnabled( true );
wPrevious.setEnabled( true );
wlPrevious.setEnabled( true );
wEveryRow.setEnabled( true );
wlEveryRow.setEnabled( true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshPartitions() {
wPartitions.clearAll( false );
List<String> partitionIDs = partitionSchema.getPartitionIDs();
for ( int i = 0; i < partitionIDs.size(); i++ ) {
TableItem item = new TableItem( wPartitions.table, SWT.NONE );
item.setText( 1, partitionIDs.get( i ) );
}
wPartitions.removeEmptyRows();
wPartitions.setRowNums();
wPartitions.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void getVariablesData() {
wVariables.clearAll( false );
List<String> variableNames = new ArrayList<String>( configuration.getVariables().keySet() );
Collections.sort( variableNames );
for ( int i = 0; i < variableNames.size(); i++ ) {
String variableName = variableNames.get( i );
String variableValue = configuration.getVariables().get( variableName );
if ( Const.indexOfString( variableName, abstractMeta.listParameters() ) < 0 ) {
TableItem tableItem = new TableItem( wVariables.table, SWT.NONE );
tableItem.setText( 1, variableName );
tableItem.setText( 2, Const.NVL( variableValue, "" ) );
}
}
wVariables.removeEmptyRows();
wVariables.setRowNums();
wVariables.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( partitioningInformation != null ) {
wPartitions.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
protected void getParamsData() {
wParams.clearAll( false );
ArrayList<String> paramNames = new ArrayList<String>( configuration.getParams().keySet() );
Collections.sort( paramNames );
for ( int i = 0; i < paramNames.size(); i++ ) {
String paramName = paramNames.get( i );
String paramValue = configuration.getParams().get( paramName );
String defaultValue;
try {
defaultValue = abstractMeta.getParameterDefault( paramName );
} catch ( UnknownParamException e ) {
defaultValue = "";
}
String description;
try {
description = abstractMeta.getParameterDescription( paramName );
} catch ( UnknownParamException e ) {
description = "";
}
TableItem tableItem = new TableItem( wParams.table, SWT.NONE );
tableItem.setText( 1, paramName );
tableItem.setText( 2, Const.NVL( defaultValue, "" ) );
tableItem.setText( 3, Const.NVL( paramValue, "" ) );
tableItem.setText( 4, Const.NVL( description, "" ) );
}
wParams.removeEmptyRows();
wParams.setRowNums();
wParams.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshSlaveServers() {
wServers.clearAll( false );
List<SlaveServer> slServers = clusterSchema.getSlaveServers();
for ( int i = 0; i < slServers.size(); i++ ) {
TableItem item = new TableItem( wServers.table, SWT.NONE );
SlaveServer slaveServer = slServers.get( i );
item.setText( 1, Const.NVL( slaveServer.getName(), "" ) );
item.setText( 2, Const.NVL( slaveServer.toString(), "" ) );
item.setText( 3, slaveServer.isMaster() ? "Y" : "N" );
}
wServers.removeEmptyRows();
wServers.setRowNums();
wServers.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
/**
* Copy information from the meta-data input to the dialog fields.
*/
public void getData() {
wFields.clearAll( false );
for ( ObjectRevision revision : revisions ) {
wFields.add( revision.getName(), revision.getComment(), XMLHandler.date2string( revision.getCreationDate() ),
revision.getLogin() );
}
wFields.removeEmptyRows();
wFields.setRowNums();
wFields.optWidth( true );
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( mappings != null ) {
wFieldMappings.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
wResult.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
if ( mappings != null ) {
wFieldMappings.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
public boolean performFinish() {
wFields.clearAll( false );
for ( int i = 0; i < fields.size(); i++ ) {
FixedFileInputField field = fields.get( i );
if ( field.getWidth() > 0 ) {
TableItem item = new TableItem( wFields.table, SWT.NONE );
item.setText( 1, field.getName() );
item.setText( 2, "" + ValueMetaFactory.getValueMetaName( field.getType() ) );
item.setText( 3, "" + field.getFormat() );
item.setText( 4, "" + field.getWidth() );
item.setText( 5, field.getLength() < 0 ? "" : "" + field.getLength() );
item.setText( 6, field.getPrecision() < 0 ? "" : "" + field.getPrecision() );
item.setText( 7, "" + field.getCurrency() );
item.setText( 8, "" + field.getDecimal() );
item.setText( 9, "" + field.getGrouping() );
}
}
int size = wFields.table.getItemCount();
if ( size == 0 ) {
new TableItem( wFields.table, SWT.NONE );
}
wFields.removeEmptyRows();
wFields.setRowNums();
wFields.optWidth( true );
inputMeta.setChanged();
return true;
}
};
代码示例来源:origin: pentaho/pentaho-kettle
if ( fields != null ) {
if ( clearFields == SWT.YES ) {
wFields.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
public boolean performFinish() {
wFields.clearAll( false );
代码示例来源:origin: pentaho/pentaho-kettle
public boolean performFinish() {
wFields.clearAll( false );
内容来源于网络,如有侵权,请联系作者删除!