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


Java SettingsModelString类代码示例

本文整理汇总了Java中org.knime.core.node.defaultnodesettings.SettingsModelString的典型用法代码示例。如果您正苦于以下问题:Java SettingsModelString类的具体用法?Java SettingsModelString怎么用?Java SettingsModelString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SettingsModelString类属于org.knime.core.node.defaultnodesettings包,在下文中一共展示了SettingsModelString类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: silentOptionalAutoColumnSelection

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
/**
 * If setting holds a valid column name returns the column index. If not
 * search the first compatible column and return the index.
 *
 * @param inSpec
 * @param model
 * @param valueClass
 * @param except
 *            columns that should not be chosen e.g. because they are
 *            already in use
 * @return The column index, maybe -1, if not found
 */
public static final int silentOptionalAutoColumnSelection(
        final DataTableSpec inSpec, final SettingsModelString model,
        final Class<? extends DataValue> valueClass,
        final Integer... except) {

    int i = inSpec.findColumnIndex(model.getStringValue());
    if ((i > -1)
            && inSpec.getColumnSpec(i).getType().isCompatible(valueClass)) {
        return i;
    }
    i = autoOptionalColumnSelection(inSpec, model, valueClass, except);

    return i;

}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:28,代码来源:NodeUtils.java

示例2: RDDToTextFileNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
/**
 * New pane for configuring RDDToTextFile node dialog. Path to a non
 * existing folder is required. Overwrite parameter removes an existing
 * folder before write.
 */
protected RDDToTextFileNodeDialog() {
	super();

	// text file
	addDialogComponent(new DialogComponentFileChooser(
			new SettingsModelString(RDDToTextFileNodeModel.CFGKEY_PATH,
					RDDToTextFileNodeModel.DEFAULT_PATH),
			"spark.file.writer", JFileChooser.OPEN_DIALOG, true));

	// overwrite
	addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(
			RDDToTextFileNodeModel.CFGKEY_OVERWRITE,
			RDDToTextFileNodeModel.DEFAULT_OVERWRITE),
			"Overwrite if the directory already exists ?"));

}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:22,代码来源:RDDToTextFileNodeDialog.java

示例3: RDDToSequenceFileNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
/**
 * New pane for configuring RDDToSequenceFile node dialog. Path to a non
 * existing folder is required. Overwrite parameter removes an existing
 * folder before write.
 */
protected RDDToSequenceFileNodeDialog() {
	super();

	// text file
	addDialogComponent(new DialogComponentFileChooser(
			new SettingsModelString(RDDToTextFileNodeModel.CFGKEY_PATH,
					RDDToSequenceFileNodeModel.DEFAULT_PATH),
			"spark.sequencefile.writer", JFileChooser.OPEN_DIALOG, true));

	// overwrite
	addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(
			RDDToSequenceFileNodeModel.CFGKEY_OVERWRITE,
			RDDToSequenceFileNodeModel.DEFAULT_OVERWRITE),
			"Overwrite if the directory already exists ?"));

}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:22,代码来源:RDDToSequenceFileNodeDialog.java

示例4: ESearchNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected ESearchNodeDialog()
{
addDialogComponent(new DialogComponentMultiLineString(
           new SettingsModelString( ESearchNodeModel.NCBI_QUERY_PROPERTY, ESearchNodeModel.NCBI_QUERY_DEFAULT)
               ,"Entrez Query:",false,80,25));

addDialogComponent(new DialogComponentStringSelection(
		new SettingsModelString(ESearchNodeModel.DB_IN_PROPERTY, ESearchNodeModel.DB_IN_DEFAULT),
		"Database Input",
		EInfo.getDatabases()
		));

    

addDialogComponent(new DialogComponentNumber(
		new SettingsModelInteger(ESearchNodeModel.LIMIT_PROPERTY, ESearchNodeModel.LIMIT_DEFAULT),
		"Limit",1,10
		));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:20,代码来源:ESearchNodeDialog.java

示例5: ELinkNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected ELinkNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( ELinkNodeModel.NCBI_ID_COL_PROPERTY, ELinkNodeModel.NCBI_ID_COL_DEFAULT),
              "Column for EntrezID",
              0,
              new DataTypeColumnFilter(IntCell.TYPE)
  			));

addDialogComponent(new DialogComponentStringSelection(
		new SettingsModelString(ELinkNodeModel.DB_IN_PROPERTY, ELinkNodeModel.DB_IN_DEFAULT),
		"Database Type Input",
		EInfo.getDatabases()
		));

addDialogComponent(new DialogComponentStringSelection(
		new SettingsModelString(ELinkNodeModel.DB_OUT_PROPERTY, ELinkNodeModel.DB_OUT_DEFAULT),
		"Database Type Output",
		EInfo.getDatabases()
		));

addDialogComponent(new DialogComponentNumber(
		new SettingsModelInteger(ELinkNodeModel.LIMIT_PROPERTY, ELinkNodeModel.LIMIT_DEFAULT),
		"Limit",1,10
		));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:ELinkNodeDialog.java

示例6: MediaWikiExistsNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected MediaWikiExistsNodeDialog()
{
SettingsModelString settings=new SettingsModelString(MediaWikiExistsNodeModel.MW_API_PROPERTY,MediaWikiExistsNodeModel.MW_API_DEFAULT);
addDialogComponent(new DialogComponentString(settings, "Mediawiki API URI",true,20));

SettingsModelColumnName set=new SettingsModelColumnName(MediaWikiExistsNodeModel.COL_PROPERTY, MediaWikiExistsNodeModel.COL_DEFAULT);
addDialogComponent(new DialogComponentColumnNameSelection(set, "Column", 0,new ColumnFilter()
	{
	@Override
	public String allFilteredMsg() {
		return "all columns excluded";
		}
	@Override
	public boolean includeColumn(DataColumnSpec colSpec) {
			return true;
			}
	}));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:19,代码来源:MediaWikiExistsNodeDialog.java

示例7: BinNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected BinNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	BinNodeModel.COL_START_CONFIG, BinNodeModel.COL_START_DEFAULT),
               "Chrom Start:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	BinNodeModel.COL_END_CONFIG, BinNodeModel.COL_END_DEFAULT),
               "Chrom End:",0,new DataTypeColumnFilter(IntCell.TYPE)));

addDialogComponent(new DialogComponentString(
           new SettingsModelString(
           	BinNodeModel.BINNAME_CONFIG, BinNodeModel.BINNAME_DEFAULT),
               "'Bin' Column name:",true,20));

addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           	BinNodeModel.INDEX1_CONFIG, BinNodeModel.INDEX1_DEFAULT),
               "Data are +1 based:"));

}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:23,代码来源:BinNodeDialog.java

示例8: BigBedFileNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected BigBedFileNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
        new SettingsModelColumnName( BigBedFileNodeModel.CHROM1_COL_PROPERTY, BigBedFileNodeModel.DEFAULT_CHROM1_COL),
           "Chromosome",
           0,
           new DataTypeColumnFilter(StringCell.TYPE)
		));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( BigBedFileNodeModel.POS1_COL_PROPERTY, BigBedFileNodeModel.DEFAULT_POS1_COL),
              "Position",
              0,
              new DataTypeColumnFilter(IntCell.TYPE)
  			));

addDialogComponent(new DialogComponentFileChooser(
           new SettingsModelString( BigBedFileNodeModel.WIG_URI_PROPERTY, BigBedFileNodeModel.DEFAULT_WIG_URI),
              "BigBedWigFile ",JFileChooser.OPEN_DIALOG,".bb",".bw",".bigbed",".bigwig"
  			));
addDialogComponent(new DialogComponentString(
           new SettingsModelString( BigBedFileNodeModel.WIG_COLNAME, BigBedFileNodeModel.WIG_COLNAME_DEF),
              "Column name",true,30
  			));

}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:BigBedFileNodeDialog.java

示例9: IGVNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
public IGVNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           		IGVNodeModel.CHROM_COL_PROPERTY, IGVNodeModel.CHROM_COL_DEFAULT),
               "Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           		IGVNodeModel.POS_COL_PROPERTY, IGVNodeModel.POS_COL_DEFAULT),
               "Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( IGVNodeModel.IGV_HOST_PROPERTY, IGVNodeModel.IGV_HOST_DEFAULT),
               "IGV Host:",true,20));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger( IGVNodeModel.IGV_PORT_PROPERTY, IGVNodeModel.IGV_PORT_DEFAULT),
               "IGV Port:",10));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:20,代码来源:IGVNodeDialog.java

示例10: ReadOneVCFNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
public ReadOneVCFNodeDialog()
  	{
  	//qual
  	addDialogComponent(new DialogComponentNumber(
              new SettingsModelInteger(
              	ReadOneVCFNodeModel.MIN_QUAL_PROPERTY, ReadOneVCFNodeModel.DEFAULT_MIN_QUAL),
                  "Minimum Qual",1));
  	
  	//vcf path
addDialogComponent(new DialogComponentFileChooser(
   		new SettingsModelString(ReadOneVCFNodeModel.VCF_COL_PROPERTY,ReadOneVCFNodeModel.VCF_COL_DEFAULT),
   		"my.simple.vcf.read.HistoryID",
   		JFileChooser.OPEN_DIALOG,
   		".vcf",".VCF",
   		".vcf.gz",".VCF.gz",
   		".vcf.bgz",".VCF.bgz"
   		));

//sample name
addDialogComponent(new DialogComponentString(
   		new SettingsModelString(ReadOneVCFNodeModel.SAMPLE_COL_PROPERTY,ReadOneVCFNodeModel.SAMPLE_COL_DEFAULT),
   		"Sample Name (optional)",false,30
   		));
  	
  	}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:26,代码来源:ReadOneVCFNodeDialog.java

示例11: TabixNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected TabixNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
        new SettingsModelColumnName( TabixNodeModel.CHROM1_COL_PROPERTY, TabixNodeModel.DEFAULT_CHROM1_COL),
           "Chromosome Left",
           0,
           new DataTypeColumnFilter(StringCell.TYPE)
		));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( TabixNodeModel.POS1_COL_PROPERTY, TabixNodeModel.DEFAULT_POS1_COL),
              "Position Left",
              0,
              new DataTypeColumnFilter(IntCell.TYPE)
  			));

addDialogComponent(new DialogComponentFileChooser(
           new SettingsModelString( TabixNodeModel.TABIX_FILENAME_PROPERTY, TabixNodeModel.DEFAULT_TABIX_FILENAME),
              "TabixFile",JFileChooser.OPEN_DIALOG,".gz",".GZ")
             );
  	
  	addDialogComponent(new DialogComponentString(
          new SettingsModelString( TabixNodeModel.TABIX_PREFIX_PROPERTY, TabixNodeModel.DEFAULT_TABIX_PREFIX),
             "Column Prefix",false,30
 			));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:27,代码来源:TabixNodeDialog.java

示例12: WebBrowserNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
public WebBrowserNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           		WebBrowserNodeModel.CHROM_COL_PROPERTY, WebBrowserNodeModel.CHROM_COL_DEFAULT),
               "Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           		WebBrowserNodeModel.POS_COL_PROPERTY, WebBrowserNodeModel.POS_COL_DEFAULT),
               "Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( WebBrowserNodeModel.BUILD_PROPERTY, WebBrowserNodeModel.BUILD_DEFAULT),
               "UCSC build:",true,20));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:17,代码来源:WebBrowserNodeDialog.java

示例13: SumNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected SumNodeDialog()
{


addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString(
           		SumNodeModel.NUMERIC_COLS_PROPERTY,
           		new String[0],
           		new String[0]
           		 ),
              0,true,
              new NumericColumnFilter()
  			));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( SumNodeModel.FLAG_PROPERTY, SumNodeModel.DEFAULT_FLAG),
              "Column prefix",
              true,30));
   
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:21,代码来源:SumNodeDialog.java

示例14: GenericUCSCNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected GenericUCSCNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( GenericUCSCNodeModel.CHROM1_COL_PROPERTY, GenericUCSCNodeModel.DEFAULT_CHROM1_COL),
              "CHROM",
              0,
              new DataTypeColumnFilter(StringCell.TYPE)
  			));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( GenericUCSCNodeModel.POS_COL_PROPERTY, GenericUCSCNodeModel.DEFAULT_POS_COL),
              "POS",
              0,
              new DataTypeColumnFilter(IntCell.TYPE)
  			));


addDialogComponent(new DialogComponentStringSelection(
           new SettingsModelString( GenericUCSCNodeModel.HANDLER_NAME_PROPERTY, GenericUCSCNodeModel.HANDLER_NAME_DEFAULT),
              "UCS table:",
             UcscTableHandlers.getTableIds()
  			));

}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:24,代码来源:GenericUCSCNodeDialog.java

示例15: ExtractInfoNodeDialog

import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected ExtractInfoNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
        new SettingsModelColumnName( ExtractInfoNodeModel.INFO_COL_PROPERTY, ExtractInfoNodeModel.DEFAULT_INFO_COL),
           "INFO column",
           0,
           new DataTypeColumnFilter(StringCell.TYPE)
		));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( ExtractInfoNodeModel.FLAG_PROPERTY, ExtractInfoNodeModel.DEFAULT_FLAG),
              "Flag name (multiple separated by a space or a comma)",
              true,30
  			));
addDialogComponent(new DialogComponentStringSelection(
           new SettingsModelString( ExtractInfoNodeModel.DATATYPE_PROPERTY, ExtractInfoNodeModel.DEFAULT_DATATYPE),
              "DataType",
              ExtractInfoNodeModel.DATATYPES
  			));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:21,代码来源:ExtractInfoNodeDialog.java


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