本文整理汇总了Java中org.knime.core.node.defaultnodesettings.SettingsModelString类的典型用法代码示例。如果您正苦于以下问题:Java SettingsModelString类的具体用法?Java SettingsModelString怎么用?Java SettingsModelString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SettingsModelString类属于org.knime.core.node.defaultnodesettings包,在下文中一共展示了SettingsModelString类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: ReadMultiVCFNodeDialog
import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
public ReadMultiVCFNodeDialog()
{
//qual
addDialogComponent(new DialogComponentNumber(
new SettingsModelInteger(
ReadMultiVCFNodeModel.MIN_QUAL_PROPERTY, ReadMultiVCFNodeModel.DEFAULT_MIN_QUAL),
"Minimum Qual",1));
//vcf path
addDialogComponent(new DialogComponentFileChooser(
new SettingsModelString(ReadMultiVCFNodeModel.VCF_COL_PROPERTY,ReadMultiVCFNodeModel.VCF_COL_DEFAULT),
"my.simple.vcf.read.HistoryID",
JFileChooser.OPEN_DIALOG,
".vcf",".VCF",
".vcf.gz",".VCF.gz",
".vcf.bgz",".VCF.bgz"
));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:19,代码来源:ReadMultiVCFNodeDialog.java
示例17: BlosumNodeDialog
import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected BlosumNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName( BlosumNodeModel.AA1_PROPERTY, BlosumNodeModel.AA1_DEFAULT),
"Amino Acid 1",
0,
new DataTypeColumnFilter(StringCell.TYPE)
));
addDialogComponent(new DialogComponentColumnNameSelection(
new SettingsModelColumnName( BlosumNodeModel.AA2_PROPERTY, BlosumNodeModel.AA2_DEFAULT),
"Amino Acid 2",
0,
new DataTypeColumnFilter(StringCell.TYPE)
));
addDialogComponent(new DialogComponentStringSelection(
new SettingsModelString(BlosumNodeModel.MATRIX_PROPERTY, BlosumNodeModel.MATRIX_DEFAULT), "Matrix",
BlosumNodeModel.ALL_MATRIX
));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:21,代码来源:BlosumNodeDialog.java
示例18: AbstractSqlNodeSettingsPane
import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
protected AbstractSqlNodeSettingsPane()
{
Collection<String> set=new ArrayList<String>(AbstractSqlNodeModel.ALL_URIS);
set.addAll(Arrays.asList(AbstractSqlNodeModel.JDBC_URIS));
addDialogComponent(new DialogComponentStringSelection(
new SettingsModelString(AbstractSqlNodeModel.JDBC_URI_PROPERTY, AbstractSqlNodeModel.DEFAULT_JDBC_URI_PROPERTY),
"JDBC URI:",set,true
));
set=new ArrayList<String>(AbstractSqlNodeModel.ALL_LOGINS);
set.add("anonymous");
set.add("genome");
addDialogComponent(new DialogComponentStringSelection(
new SettingsModelString(AbstractSqlNodeModel.JDBC_LOGIN, AbstractSqlNodeModel.DEFAULT_JDBC_LOGIN),
"JDBC Login:",set,true
));
set=new ArrayList<String>(AbstractSqlNodeModel.ALL_PASSWORDS);
set.add("");
addDialogComponent(new DialogComponentStringSelection(
new SettingsModelString(AbstractSqlNodeModel.JDBC_PASSWORD, AbstractSqlNodeModel.DEFAULT_JDBC_PASSWORD),
"JDBC Password:",set,true
));
}
开发者ID:lindenb,项目名称:knime4bio,代码行数:24,代码来源:AbstractSqlNodeSettingsPane.java
示例19: BrTaggerNodeDialog
import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
/**
* New pane for configuring BrTagger node dialog.
* This is just a suggestion to demonstrate possible default dialog
* components.
*/
protected BrTaggerNodeDialog() {
super();
SettingsModelString modelString = new SettingsModelString(BrTaggerNodeModel.STRSEL, null);
addDialogComponent(new DialogComponentStringSelection(modelString,
"POS Tagger:", "MAXENT", "PERCEPTRON"));
}
开发者ID:daniacs,项目名称:knime_brtagger,代码行数:13,代码来源:BrTaggerNodeDialog.java
示例20: ActiveLearnLoopStartNodeDialog
import org.knime.core.node.defaultnodesettings.SettingsModelString; //导入依赖的package包/类
/**
* Constructor for the Dialog.
*/
@SuppressWarnings("unchecked")
public ActiveLearnLoopStartNodeDialog() {
// Class column selection
final SettingsModelBoolean appendClassColumnModel =
ActiveLearnLoopStartSettingsModels
.createAppendClassColumnModel();
final SettingsModelString classLabelColumnModel =
ActiveLearnLoopStartSettingsModels
.createClassLabelColumnModel();
final SettingsModelString customClassColumnNameModel =
ActiveLearnLoopStartSettingsModels
.createCustomClassColumnNameModel();
final SettingsModelBoolean appendIterationModel =
ActiveLearnLoopStartSettingsModels.createAppendIterationModel();
appendClassColumnModel.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(final ChangeEvent e) {
classLabelColumnModel
.setEnabled(!appendClassColumnModel.getBooleanValue());
customClassColumnNameModel
.setEnabled(appendClassColumnModel.getBooleanValue());
}
});
// class column settings
addDialogComponent(new DialogComponentBoolean(appendClassColumnModel,
"Append Class Column"));
addDialogComponent(new DialogComponentString(customClassColumnNameModel,
"Class Column name", true, 30));
addDialogComponent(new DialogComponentBoolean(appendIterationModel,
"Add Iteration Column."));
createNewGroup("Class Column Selection");
addDialogComponent(new DialogComponentColumnNameSelection(
classLabelColumnModel, "Class Label Column", 0, false, false,
StringValue.class));
classLabelColumnModel.setEnabled(false);
}
开发者ID:knime,项目名称:knime-activelearning,代码行数:43,代码来源:ActiveLearnLoopStartNodeDialog.java
注:本文中的org.knime.core.node.defaultnodesettings.SettingsModelString类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论