本文整理汇总了Java中org.pentaho.di.ui.core.widget.ColumnInfo.setComboValues方法的典型用法代码示例。如果您正苦于以下问题:Java ColumnInfo.setComboValues方法的具体用法?Java ColumnInfo.setComboValues怎么用?Java ColumnInfo.setComboValues使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.core.widget.ColumnInfo
的用法示例。
在下文中一共展示了ColumnInfo.setComboValues方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setComboBoxes
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
protected void setComboBoxes()
{
// Something was changed in the row.
//
final Map<String, Integer> fields = new HashMap<String, Integer>();
// Add the currentMeta fields...
fields.putAll(inputFields);
Set<String> keySet = fields.keySet();
List<String> entries = new ArrayList<String>(keySet);
String fieldNames[] = (String[]) entries.toArray(new String[entries.size()]);
Const.sortStrings(fieldNames);
bPreviousFieldsLoaded = true;
for (int i = 0; i < fieldColumns.size(); i++)
{
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(fieldNames);
}
}
示例2: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
String msg = Messages.getString("IfNullDialog.DoMapping.UnableToFindInput");
log.logError(toString(), msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
if(prevStepFieldNames!=null){
Arrays.sort(prevStepFieldNames);
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
if(colInfo!=null) colInfo.setComboValues(prevStepFieldNames);
}
}
}
};
new Thread(fieldLoader).start();
}
示例3: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
String msg = BaseMessages.getString(PKG, "IfNullDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
if(prevStepFieldNames!=null){
Arrays.sort(prevStepFieldNames);
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
if(colInfo!=null) colInfo.setComboValues(prevStepFieldNames);
}
}
}
};
new Thread(fieldLoader).start();
}
示例4: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
String msg = BaseMessages.getString(PKG, "SapInputDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort(prevStepFieldNames);
for (int i = 0; i < inputFieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) outputFieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
new Thread(fieldLoader).start();
}
示例5: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
String msg = BaseMessages.getString(PKG, "SelectValuesDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort(prevStepFieldNames);
// bPreviousFieldsLoaded = true;
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
示例6: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
String msg = BaseMessages.getString(PKG, "SelectValuesDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort(prevStepFieldNames);
bPreviousFieldsLoaded = true;
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
示例7: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
String msg = BaseMessages.getString(PKG, "DatabaseLookupDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort(prevStepFieldNames);
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
new Thread(fieldLoader).start();
}
示例8: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields( stepname );
} catch ( KettleException e ) {
prevFields = new RowMeta();
String msg = BaseMessages.getString( PKG, "SapInputDialog.DoMapping.UnableToFindInput" );
logError( msg );
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort( prevStepFieldNames );
for ( int i = 0; i < inputFieldColumns.size(); i++ ) {
ColumnInfo colInfo = outputFieldColumns.get( i );
colInfo.setComboValues( prevStepFieldNames );
}
}
};
new Thread( fieldLoader ).start();
}
示例9: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
String msg = BaseMessages.getString(PKG, "SelectValuesDialog.DoMapping.UnableToFindInput");
logError(msg);
}
String[] prevStepFieldNames = prevFields!=null ? prevFields.getFieldNames() : new String[0];
Arrays.sort(prevStepFieldNames);
bPreviousFieldsLoaded = true;
for (int i = 0; i < fieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
示例10: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
/**
* Sets the values of combo boxes.
*/
private void setComboValues() {
final Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields(stepname);
} catch (KettleException e) {
prevFields = new RowMeta();
final String msg =
BaseMessages.getString(PKG, "ApplePushNotification.DoMapping.UnableToFindInput");
logError(msg);
}
final String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort(prevStepFieldNames);
for (int i = 0; i < fieldColumns.size(); i++) {
final ColumnInfo colInfo = (ColumnInfo) fieldColumns.get(i);
colInfo.setComboValues(prevStepFieldNames);
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
示例11: setComboBoxes
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
protected void setComboBoxes() {
// Something was changed in the row.
//
final Map<String, Integer> fields = new HashMap<String, Integer>();
// Add the currentMeta fields...
fields.putAll( inputFields );
Set<String> keySet = fields.keySet();
List<String> entries = new ArrayList<String>( keySet );
String[] fieldNames = entries.toArray( new String[entries.size()] );
Const.sortStrings( fieldNames );
bPreviousFieldsLoaded = true;
for ( int i = 0; i < fieldColumns.size(); i++ ) {
ColumnInfo colInfo = fieldColumns.get( i );
colInfo.setComboValues( fieldNames );
}
}
示例12: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields( stepname );
} catch ( KettleException e ) {
prevFields = new RowMeta();
String msg = BaseMessages.getString( PKG, "SelectValuesDialog.DoMapping.UnableToFindInput" );
logError( msg );
}
String[] prevStepFieldNames = prevFields.getFieldNames();
Arrays.sort( prevStepFieldNames );
// bPreviousFieldsLoaded = true;
for ( int i = 0; i < fieldColumns.size(); i++ ) {
ColumnInfo colInfo = fieldColumns.get( i );
colInfo.setComboValues( prevStepFieldNames );
}
}
};
shell.getDisplay().asyncExec( fieldLoader );
}
示例13: setComboValues
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setComboValues() {
Runnable fieldLoader = new Runnable() {
public void run() {
try {
prevFields = transMeta.getPrevStepFields( stepname );
} catch ( KettleException e ) {
prevFields = new RowMeta();
String msg = BaseMessages.getString( PKG, "SelectValuesDialog.DoMapping.UnableToFindInput" );
logError( msg );
}
String[] prevStepFieldNames = prevFields != null ? prevFields.getFieldNames() : new String[0];
Arrays.sort( prevStepFieldNames );
bPreviousFieldsLoaded = true;
for ( int i = 0; i < fieldColumns.size(); i++ ) {
ColumnInfo colInfo = fieldColumns.get( i );
colInfo.setComboValues( prevStepFieldNames );
}
}
};
shell.getDisplay().asyncExec( fieldLoader );
}
示例14: setTableFieldCombo
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
private void setTableFieldCombo() {
Runnable fieldLoader = new Runnable() {
public void run() {
if (!m_wEndpoint.isDisposed() && !m_wAccessId.isDisposed() && !m_wAccessKey
.isDisposed() && !m_wProjectName.isDisposed() && !m_wTableName.isDisposed()) {
final String endpoint = m_wEndpoint.getText(),
accessId = m_wAccessId.getText(),
accessKey = m_wAccessKey.getText(),
projectName = m_wProjectName.getText(),
tableName = m_wTableName.getText();
if (!Const.isEmpty(endpoint) && !Const.isEmpty(accessId) && !Const
.isEmpty(accessKey) && !Const.isEmpty(projectName) && !Const
.isEmpty(tableName)) {
TableSchema schema = MaxcomputeUtil
.getTableSchema(new AliyunAccount(accessId, accessKey), endpoint,
projectName, tableName);
List<Column> columns = schema.getColumns();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < columns.size(); i++) {
sb.append(columns.get(i).getName()).append("\n");
}
String[] fieldNames = sb.toString().split("\n");
for (ColumnInfo colInfo : tableFieldColumns) {
colInfo.setComboValues(fieldNames);
}
}
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
示例15: clearColInfo
import org.pentaho.di.ui.core.widget.ColumnInfo; //导入方法依赖的package包/类
/**
* Clear.
*/
private void clearColInfo() {
for (int i = 0, n = this.tableFieldColumns.size(); i < n; i++) {
final ColumnInfo colInfo = this.tableFieldColumns.get(i);
colInfo.setComboValues(new String[] {});
}
}