当前位置: 首页>>代码示例>>Java>>正文


Java ColumnInfo.setComboValues方法代码示例

本文整理汇总了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);
}
  }
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:SelectValuesDialog.java

示例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();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:IfNullDialog.java

示例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();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:IfNullDialog.java

示例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();
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:21,代码来源:SapInputDialog.java

示例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);
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:22,代码来源:WebServiceDialog.java

示例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);
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:22,代码来源:SelectValuesDialog.java

示例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();
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:21,代码来源:DatabaseLookupDialog.java

示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:21,代码来源:SapInputDialog.java

示例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);
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:22,代码来源:SelectValuesDialog.java

示例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);
}
 
开发者ID:latinojoel,项目名称:pdi-apple-pushnotifications,代码行数:25,代码来源:PushNotificationDialog.java

示例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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:SelectValuesDialog.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:WebServiceDialog.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:SelectValuesDialog.java

示例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);
}
 
开发者ID:aliyun,项目名称:aliyun-maxcompute-data-collectors,代码行数:38,代码来源:OdpsInputDialog.java

示例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[] {});
    }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:10,代码来源:TeraFastDialog.java


注:本文中的org.pentaho.di.ui.core.widget.ColumnInfo.setComboValues方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。