• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DialogComponentBoolean类的典型用法和代码示例

java 3次浏览

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

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

示例1: KNFSTNoveltyScorerNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * Default Constructor
 */
public KNFSTNoveltyScorerNodeDialog() {
    // Checkbox for appending Novelty Score
    addDialogComponent(new DialogComponentBoolean(
            KNFSTNoveltyScorerNodeModel.createAppendNoveltyScoreModel(),
            "Append Novelty Score"));

    // Checkbox for normalizing novelty score
    addDialogComponent(new DialogComponentBoolean(
            KNFSTNoveltyScorerNodeModel.createNormalizeModel(),
            "Normalize Novelty Score"));

    // Checkbox for appending Nullspace Coordinates
    addDialogComponent(new DialogComponentBoolean(
            KNFSTNoveltyScorerNodeModel.createAppendNullspaceCoordinates(),
            "Append Nullspace Coordinates"));

}
 

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

示例2: TakeSampleNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * New pane for configuring TakeSample node dialog. Number of elements to
 * take with or without replacement. A random number generator seed is
 * optional.
 */
protected TakeSampleNodeDialog() {
	super();

	// replacement
	addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(
			TakeSampleNodeModel.CFGKEY_REPLACEMENT,
			TakeSampleNodeModel.DEFAULT_REPLACEMENT),
			TakeSampleNodeModel.CFGKEY_REPLACEMENT));

	// count
	addDialogComponent(new DialogComponentNumber(
			new SettingsModelIntegerBounded(
					TakeSampleNodeModel.CFGKEY_COUNT,
					TakeSampleNodeModel.DEFAULT_COUNT, 0, Integer.MAX_VALUE),
			TakeSampleNodeModel.CFGKEY_COUNT, 1, 5));

	// seed
	addDialogComponent(new DialogComponentNumber(
			new SettingsModelIntegerBounded(
					TakeSampleNodeModel.CFGKEY_SEED,
					TakeSampleNodeModel.DEFAULT_SEED, Integer.MIN_VALUE,
					Integer.MAX_VALUE), TakeSampleNodeModel.CFGKEY_SEED, 1,
			5));

}
 

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

示例3: RDDToTextFileNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的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

示例4: RDDToSequenceFileNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的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

示例5: SampleNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * New pane for configuring Sample node dialog. Fraction of elements to take
 * with or without replacement. A random number generator seed is optional.
 */
protected SampleNodeDialog() {
	super();

	// replacement
	addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(
			SampleNodeModel.CFGKEY_REPLACEMENT,
			SampleNodeModel.DEFAULT_REPLACEMENT),
			SampleNodeModel.CFGKEY_REPLACEMENT));

	// fraction
	addDialogComponent(new DialogComponentNumber(
			new SettingsModelIntegerBounded(
					SampleNodeModel.CFGKEY_FRACTION,
					SampleNodeModel.DEFAULT_FRACTION, 0, 100),
			SampleNodeModel.CFGKEY_FRACTION, 1, 5));

	// seed
	addDialogComponent(new DialogComponentNumber(
			new SettingsModelIntegerBounded(SampleNodeModel.CFGKEY_SEED,
					SampleNodeModel.DEFAULT_SEED, Integer.MIN_VALUE,
					Integer.MAX_VALUE), SampleNodeModel.CFGKEY_SEED, 1, 5));
}
 

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

示例6: BinNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的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

示例7: NormalizeChromNodeDialog

点赞 3

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
public NormalizeChromNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName( NormalizeChromNodeModel.CHROM_COL_PROPERTY, NormalizeChromNodeModel.CHROM_COL_DEFAULT),
              "Chromosome",
              0,
              new ColumnFilter()
           	{
           	@Override
           	public String allFilteredMsg()
           		{
           		return "Cannot find a column for a chromosome";
           		}
           	@Override
           	public boolean includeColumn(DataColumnSpec colSpec)
           		{
           		return colSpec.getType().equals(IntCell.TYPE) ||
           			   colSpec.getType().equals(StringCell.TYPE);
           		}
           	}
  			));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( NormalizeChromNodeModel.CHR_PREFIX_PROPERTY, NormalizeChromNodeModel.CHR_PREFIX_DEFAULT),
              "Append 'chr' prefix"
  			));
}
 

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

示例8: createNodeDialogPane

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@SuppressWarnings("unchecked")
@Override
protected NodeDialogPane createNodeDialogPane() {
    return new DefaultNodeSettingsPane() {
        {
            addDialogComponent(new DialogComponentColumnNameSelection(
                    ActiveLearnLoopEndSettingsModels.createRepColumnModel(),
                    "Representative Column", 0, DataValue.class));

            addDialogComponent(new DialogComponentColumnNameSelection(
                    ActiveLearnLoopEndSettingsModels
                            .createClassColumnModel(),
                    "Class  Column", 0, StringValue.class));

            addDialogComponent(new DialogComponentOptionalString(
                    ActiveLearnLoopEndSettingsModels
                            .createDefaultClassModel(),
                    "Automatically label rows with default class:"));

            addDialogComponent(new DialogComponentBoolean(
                    ActiveLearnLoopEndSettingsModels
                            .createAutoTerminateModel(),
                    "Automatically terminate when no unlabeled rows are left"));
        }
    };
}
 

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

示例9: ActiveLearnLoopStartNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的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

示例10: SortByKeyNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * New pane for configuring SortByKey node dialog. Order to sort.
 */
protected SortByKeyNodeDialog() {
	super();

	// order
	addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(
			SortByKeyNodeModel.CFGKEY_DESC_ORDER,
			SortByKeyNodeModel.DEFAULT_DESC_ORDER), "descending order"));

}
 

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

示例11: BIDENodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
    * New pane for configuring CMSPAM node dialog.
    * This is just a suggestion to demonstrate possible default dialog
    * components.
    */
   @SuppressWarnings("unchecked")
protected BIDENodeDialog() {
       super();
       
       
       addDialogComponent(new DialogComponentNumber(
               new SettingsModelDoubleBounded(
                   BIDENodeModel.CFGKEY_MINSUP,
                   BIDENodeModel.DEFAULT_MINSUP,
                   0.01, 1),
                   "Minsup:", /*step*/ 0.01, /*componentwidth*/ 5));
       
       
       
       addDialogComponent(new DialogComponentColumnNameSelection(
       		new SettingsModelColumnName(
       				BIDENodeModel.CFGKEY_COLSEL,
       				BIDENodeModel.DEFAULT_COLSEL),
       				"Sequence column:",
       				0 ,
       				true,
       				StringValue.class));

       
       addDialogComponent(new DialogComponentBoolean(
       		new SettingsModelBoolean(
       				BIDENodeModel.CFGKEY_SHOWSEQUENCE,
       				BIDENodeModel.DEFAULT_SHOWSEQUENCE),
       				"Show Sequence ids"));
       


                   
   }
 

开发者ID:DeOlSo,
项目名称:ADC2015_De,
代码行数:40,
代码来源:BIDENodeDialog.java

示例12: ArticleCitedNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected ArticleCitedNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           ArticleCitedNodeModel.PMID_COL_PROPERTY, ArticleCitedNodeModel.PMID_COL_DEFAULT),
           "PMID",
           0,
           new DataTypeColumnFilter(IntCell.TYPE)
		));
addDialogComponent(new DialogComponentBoolean(
	new SettingsModelBoolean(ArticleCitedNodeModel.SHOW_PROPERTY, ArticleCitedNodeModel.SHOW_DEFAULT),
	"Show PMID citing"
	));

}
 

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

示例13: RsIdNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected RsIdNodeDialog()
{
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           		RsidNodeModel.USE_BATCH_PROPERTY,
           		RsidNodeModel.DEFAULT_USE_BATCH_PROPERTY),
               "Use batch"));   
}
 

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

示例14: LoadIgSnpNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
public LoadIgSnpNodeDialog()
  	{
addDialogComponent(new DialogComponentBoolean(
   		new SettingsModelBoolean(LoadIgSnpNodeModel.IGNORE_CDNA_PROPERTY,LoadIgSnpNodeModel.IGNORE_CDNA_DEFAULT),
   		"Ignore cDNA sequences(faster)"
		));
addDialogComponent(new DialogComponentBoolean(
   		new SettingsModelBoolean(LoadIgSnpNodeModel.IGNORE_PEP_PROPERTY,LoadIgSnpNodeModel.IGNORE_PEP_DEFAULT),
   		"Ignore protein sequences(faster)"
		));
  	}
 

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

示例15: LocalUcscPredictionNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected LocalUcscPredictionNodeDialog()
 	{
 	//build
 	addDialogComponent(new DialogComponentFileChooser(
             new SettingsModelString(
             		LocalUcscPredictionNodeModel.REFERENCE_URI_PROPERTY, LocalUcscPredictionNodeModel.DEFAULT_REFERENCE_URI),
                 "ref.genome",JFileChooser.OPEN_DIALOG,".fa",".fasta"));
     //show RNA
 	addDialogComponent(
new DialogComponentBoolean(new SettingsModelBoolean(LocalUcscPredictionNodeModel.PROPERTY_SHOW_RNA, false),
"Show RNA"));
 	 //show Peptide
 	addDialogComponent(
new DialogComponentBoolean(new SettingsModelBoolean(LocalUcscPredictionNodeModel.PROPERTY_SHOW_PEP, false),
"Show Peptide"));
     
 	//columns
 	addDialogComponent(new DialogComponentColumnNameSelection(
 			new SettingsModelColumnName(LocalUcscPredictionNodeModel.PROPERTY_CHROM_COL, LocalUcscPredictionNodeModel.DEFAULT_CHROM_COL),
 			"Chrom", 0, true, false,
 			new DataTypeColumnFilter(StringCell.TYPE)));
 	addDialogComponent(new DialogComponentColumnNameSelection(
 			new SettingsModelColumnName(LocalUcscPredictionNodeModel.PROPERTY_POS_COL, LocalUcscPredictionNodeModel.DEFAULT_POS_COL),
 			"POS", 0, true, false,
 			new DataTypeColumnFilter(IntCell.TYPE)));
 	addDialogComponent(new DialogComponentColumnNameSelection(
 			new SettingsModelColumnName(LocalUcscPredictionNodeModel.PROPERTY_REF_COL, LocalUcscPredictionNodeModel.DEFAULT_REF_COL),
 			"REF", 0, true, false,
 			new DataTypeColumnFilter(StringCell.TYPE)));
 	addDialogComponent(new DialogComponentColumnNameSelection(
 			new SettingsModelColumnName(LocalUcscPredictionNodeModel.PROPERTY_ALT_COL, LocalUcscPredictionNodeModel.DEFAULT_ALT_COL),
 			"ALT", 0, true, false,
 			new DataTypeColumnFilter(StringCell.TYPE)));
 	}
 

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

示例16: CutRegionNodeDialog

点赞 2

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

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

addDialogComponent(new DialogComponentString(
           new SettingsModelString( CutRegionNodeModel.SELECT_CHROM_PROPERTY, CutRegionNodeModel.SELECT_CHROM_DEFAULT),
              "Chromosome",
              true,50
  			));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger( CutRegionNodeModel.SELECT_START_PROPERTY, CutRegionNodeModel.SELECT_START_DEFAULT),
              "Start Region",
              1
  			));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger( CutRegionNodeModel.SELECT_END_PROPERTY, CutRegionNodeModel.SELECT_END_DEFAULT),
              "End Region",
              1
  			));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( CutRegionNodeModel.INVERT_PROPERTY, CutRegionNodeModel.INVERT_DEFAULT),
              "Invert"
  			));
}
 

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

示例17: WigNodeDialog

点赞 2

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

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

addDialogComponent(new DialogComponentString(
           new SettingsModelString( WigNodeModel.WIG_URI_PROPERTY, WigNodeModel.DEFAULT_WIG_URI),
              "Wig URI",true,30
  			));
addDialogComponent(new DialogComponentString(
           new SettingsModelString( WigNodeModel.WIG_COLNAME, WigNodeModel.WIG_COLNAME_DEF),
              "Column name",true,30
  			));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( WigNodeModel.USE_STEP_PROP, WigNodeModel.USE_STEP_DEF),
              "Use 'step' instead of 'span' for fixedStep wig"
  			));
}
 

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

示例18: RsFilterNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected RsFilterNodeDialog()
{
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
               RsFilterNodeModel.CFGKEY_CONSIDER_HETEROZYGOSITY, false),
               "Consider Min. Heterozygosity"));

   addDialogComponent(new DialogComponentNumber(
           new SettingsModelDoubleBounded(
               RsFilterNodeModel.CFGKEY_MIN_HETEROZYGOSITY, 0,0,0.5),
               "Min Heterozygosity", /*step*/ 0.01, /*componentwidth*/ 5));
   
             
}
 

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

示例19: SelectSamplesNodeDialog

点赞 2

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

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	SelectSamplesNodeModel.CHROM_COL_PROPERTY, SelectSamplesNodeModel.CHROM_COL_DEFAULT),
               "Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	SelectSamplesNodeModel.POS_COL_PROPERTY, SelectSamplesNodeModel.POS_COL_DEFAULT),
               "Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	SelectSamplesNodeModel.REF_COL_PROPERTY, SelectSamplesNodeModel.REF_COL_DEFAULT),
               "Ref:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	SelectSamplesNodeModel.ALT_COL_PROPERTY, SelectSamplesNodeModel.ALT_COL_DEFAULT),
               "Alt:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	SelectSamplesNodeModel.SAMPLE_COL_PROPERTY, SelectSamplesNodeModel.SAMPLE_COL_DEFAULT),
               "Sample:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentMultiLineString(
           new SettingsModelString( SelectSamplesNodeModel.QUERY_PROPERTY, SelectSamplesNodeModel.QUERY_DEFAULT)
               ,"Query:",false,80,5));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( SelectSamplesNodeModel.USE_REF_ALT_PROPERTY, SelectSamplesNodeModel.USE_REF_ALT_DEFAULT)
               ,"use REF and ALT"));
}
 

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

示例20: MysqlUCSCNodeDialog

点赞 2

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


addDialogComponent(new DialogComponentStringSelection(
           new SettingsModelString( MysqlUCSCNodeModel.HANDLER_NAME_PROPERTY, MysqlUCSCNodeModel.HANDLER_NAME_DEFAULT),
              "UCSC table:",
             UcscTableMysqlHandlers.getTableIds()
  			));

addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( MysqlUCSCNodeModel.POS_ONE_BASED, MysqlUCSCNodeModel.POS_ONE_DEFAULT),
              "First base is +1:"
  			));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( MysqlUCSCNodeModel.STOP_PROPERTY, MysqlUCSCNodeModel.STOP_DEFAULT),
              "Only one hit by position:"
  			));
}
 

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

示例21: UniqNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected UniqNodeDialog()
{
addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString(
           		UniqNodeModel.LEFT_COLS_PROPERTY),
               0,false));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           		UniqNodeModel.DUPLICATE_PROPERTY, UniqNodeModel.DUPLICATE_DEFAULT),
               "Show duplicated rows."));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           		UniqNodeModel.SHOW_COUNT_PROPERTY, UniqNodeModel.SHOW_COUNT_DEFAULT),
               "Show count"));
}
 

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

示例22: SqlQueryNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected SqlQueryNodeDialog()
	{
	addDialogComponent(new DialogComponentMultiLineString(
            new SettingsModelString( SqlQueryNodeModel.QUERY_PROPERTY, SqlQueryNodeModel.DEFAULT_QUERY)
               ,"SQL Query"));
	addDialogComponent(new DialogComponentBoolean(
new SettingsModelBoolean(
		SqlQueryNodeModel.STOP_AFTER_FIRST_PROPERTY,
		SqlQueryNodeModel.STOP_AFTER_FIRST_DEFAULT
	),
"Stop after first match"
));	
	}
 

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

示例23: NumColumnFilterNodeDialog

点赞 2

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

addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString( NumColumnFilterNodeModel.COLS_PROPERTY),
               0,false,
               new NumericColumnFilter())
			);

addDialogComponent(new DialogComponentDoubleRange(
		new SettingsModelDoubleRange(
				NumColumnFilterNodeModel.BOUND_PROPERTY,
				NumColumnFilterNodeModel.BOUND_MIN,
				NumColumnFilterNodeModel.BOUND_MAX),
				-Double.MAX_VALUE,
				Double.MAX_VALUE,
				1,
		"min/max"
		));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           		NumColumnFilterNodeModel.INVERT_PROPERTY, NumColumnFilterNodeModel.INVERT_DEFAULT),
               "Inverse selection."));

addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean(
           		NumColumnFilterNodeModel.ALL_COLUMN_MATCH_PROPERTY, NumColumnFilterNodeModel.ALL_COLUMN_MATCH_DEFAULT),
               "All columns must be in range."));
}
 

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

示例24: AddressCreatorNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * New pane for configuring the AddressCreator node.
 */
@SuppressWarnings("unchecked")
protected AddressCreatorNodeDialog() {
	addDialogComponent(new DialogComponentColumnNameSelection(
			new SettingsModelString(AddressCreatorNodeModel.CFG_STREET, null), "Street Column", 0, false, true,
			StringValue.class));
	addDialogComponent(new DialogComponentColumnNameSelection(
			new SettingsModelString(AddressCreatorNodeModel.CFG_HOUSE_NUMBER, null), "House Number Column", 0,
			false, true, StringValue.class));
	addDialogComponent(
			new DialogComponentColumnNameSelection(new SettingsModelString(AddressCreatorNodeModel.CFG_CITY, null),
					"City Column", 0, false, true, StringValue.class));
	addDialogComponent(new DialogComponentColumnNameSelection(
			new SettingsModelString(AddressCreatorNodeModel.CFG_DISTRICT, null), "District Column", 0, false, true,
			StringValue.class));
	addDialogComponent(
			new DialogComponentColumnNameSelection(new SettingsModelString(AddressCreatorNodeModel.CFG_STATE, null),
					"State Column", 0, false, true, StringValue.class));
	addDialogComponent(new DialogComponentColumnNameSelection(
			new SettingsModelString(AddressCreatorNodeModel.CFG_COUNTRY, null), "Country Column", 0, false, true,
			StringValue.class));
	addDialogComponent(new DialogComponentColumnNameSelection(
			new SettingsModelString(AddressCreatorNodeModel.CFG_POSTAL_CODE, null), "Postal Code Column", 0, false,
			true, StringValue.class));
	addDialogComponent(new DialogComponentBoolean(
			new SettingsModelBoolean(AddressCreatorNodeModel.CFG_HOUSE_NUMBER_AFTER_STREET, true),
			"House Number after Street Name"));
}
 

开发者ID:SiLeBAT,
项目名称:BfROpenLab,
代码行数:31,
代码来源:AddressCreatorNodeDialog.java

示例25: KNFSTLearnerNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
 * Default Constructor
 */
@SuppressWarnings("unchecked")
public KNFSTLearnerNodeDialog() {
    addDialogComponent(new DialogComponentColumnFilter(
            KNFSTLearnerNodeModel.createColumnSelectionModel(),
            KNFSTLearnerNodeModel.DATA_INPORT, false, DoubleValue.class));

    addDialogComponent(new DialogComponentColumnNameSelection(
            KNFSTLearnerNodeModel.createClassColumnSelectionModel(),
            "Select class column", 0, StringValue.class));

    final SettingsModelString kernelType =
            KNFSTLearnerNodeModel.createKernelFunctionSelectionModel();

    final KernelType[] availableKernels = KernelType.values();
    final String[] kernelNames = new String[availableKernels.length];
    for (int i = 0; i < availableKernels.length; i++) {
        kernelNames[i] = availableKernels[i].toString();
    }

    final SettingsModelDouble rbfSigma =
            KNFSTLearnerNodeModel.createRBFSigmaModel();
    final SettingsModelDouble polynomialGamma =
            KNFSTLearnerNodeModel.createPolynomialGammaModel();
    final SettingsModelDouble polynomialBias =
            KNFSTLearnerNodeModel.createPolynomialBiasModel();
    final SettingsModelDouble polynomialPower =
            KNFSTLearnerNodeModel.createPolynomialPower();

    kernelType.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(final ChangeEvent e) {

            if (kernelType.getStringValue() == "RBF") {
                rbfSigma.setEnabled(true);
                polynomialBias.setEnabled(false);
                polynomialGamma.setEnabled(false);
                polynomialPower.setEnabled(false);
            } else if (kernelType.getStringValue() == "Polynomial") {
                rbfSigma.setEnabled(false);
                polynomialBias.setEnabled(true);
                polynomialGamma.setEnabled(true);
                polynomialPower.setEnabled(true);
            } else {
                rbfSigma.setEnabled(false);
                polynomialBias.setEnabled(false);
                polynomialGamma.setEnabled(false);
                polynomialPower.setEnabled(false);
            }
        }
    });

    addDialogComponent(new DialogComponentStringSelection(kernelType,
            "Kernel", kernelNames));

    addDialogComponent(new DialogComponentNumberEdit(rbfSigma, "Sigma: "));

    addDialogComponent(
            new DialogComponentNumberEdit(polynomialGamma, "Gamma: "));

    addDialogComponent(
            new DialogComponentNumberEdit(polynomialBias, "Bias: "));

    addDialogComponent(
            new DialogComponentNumberEdit(polynomialPower, "Power: "));

    addDialogComponent(new DialogComponentBoolean(
            KNFSTLearnerNodeModel.createSortTableModel(),
            "Sort Table (select only if table is not already sorted by class)"));
}
 

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

示例26: CMSPAMNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
/**
    * New pane for configuring CMSPAM node dialog.
    * This is just a suggestion to demonstrate possible default dialog
    * components.
    */
   @SuppressWarnings("unchecked")
protected CMSPAMNodeDialog() {
       super();
       
       setDefaultTabTitle("Standard Options");
       
       addDialogComponent(new DialogComponentNumber(
               new SettingsModelDoubleBounded(
                   CMSPAMNodeModel.CFGKEY_MINSUP,
                   CMSPAMNodeModel.DEFAULT_MINSUP,
                   0.01, 1),
                   "Minsup:", /*step*/ 0.01, /*componentwidth*/ 5));
       
       
       
       addDialogComponent(new DialogComponentColumnNameSelection(
       		new SettingsModelColumnName(
       				CMSPAMNodeModel.CFGKEY_COLSEL,
       				CMSPAMNodeModel.DEFAULT_COLSEL),
       				"Sequence column:",
       				0 ,
       				true,
       				StringValue.class));
       
       
       
      createNewTab("Advanced Options");
       
       
       addDialogComponent(new DialogComponentNumber(
               new SettingsModelIntegerBounded(
                   CMSPAMNodeModel.CFGKEY_MINPATTERN,
                   CMSPAMNodeModel.DEFAULT_MINPATTERN,
                   1, Integer.MAX_VALUE),
                   "Min. pattern length:", /*step*/ 1, /*componentwidth*/ 5));
       
       addDialogComponent(new DialogComponentNumber(
               new SettingsModelIntegerBounded(
                   CMSPAMNodeModel.CFGKEY_MAXPATTERN,
                   CMSPAMNodeModel.DEFAULT_MAXPATTERN,
                   0, Integer.MAX_VALUE),
                   "Max. pattern length: (0 for infinite)", /*step*/ 1, /*componentwidth*/ 5));
       
       
       addDialogComponent(new DialogComponentString(
       		new SettingsModelString(
       				CMSPAMNodeModel.CFGKEY_REQUIREDITEMS,
       				CMSPAMNodeModel.DEFAULT_REQUIREDITEMS),
       				"Required items (e.g. 1,2,3)"));
       
       
       addDialogComponent(new DialogComponentNumber(
               new SettingsModelIntegerBounded(
                   CMSPAMNodeModel.CFGKEY_MAXGAP,
                   CMSPAMNodeModel.DEFAULT_MAXGAP,
                   0, Integer.MAX_VALUE),
                   "Max. gap: (0 for infinite)", /*step*/ 1, /*componentwidth*/ 5));
       
       addDialogComponent(new DialogComponentBoolean(
       		new SettingsModelBoolean(
       				CMSPAMNodeModel.CFGKEY_SHOWSEQUENCE,
       				CMSPAMNodeModel.DEFAULT_SHOWSEQUENCE),
       				"Show Sequence ids"));
       


                   
   }
 

开发者ID:DeOlSo,
项目名称:ADC2015_De,
代码行数:74,
代码来源:CMSPAMNodeDialog.java

示例27: VCFNumericSplitNodeDialog

点赞 2

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

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	VCFNumericSplitNodeModel.CHROM_COL_PROPERTY, VCFNumericSplitNodeModel.CHROM_COL_DEFAULT),
               "Chrom:",0,new DataTypeColumnFilter(StringCell.TYPE)));

addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	VCFNumericSplitNodeModel.POS_COL_PROPERTY, VCFNumericSplitNodeModel.POS_COL_DEFAULT),
               "Pos:",0,new DataTypeColumnFilter(IntCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	VCFNumericSplitNodeModel.REF_COL_PROPERTY, VCFNumericSplitNodeModel.REF_COL_DEFAULT),
               "Ref:",0,new DataTypeColumnFilter(StringCell.TYPE)));
addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	VCFNumericSplitNodeModel.ALT_COL_PROPERTY, VCFNumericSplitNodeModel.ALT_COL_DEFAULT),
               "Alt:",0,new DataTypeColumnFilter(StringCell.TYPE)));

   	
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( VCFNumericSplitNodeModel.USE_REF_ALT_PROPERTY, VCFNumericSplitNodeModel.DEFAULT_USE_REF_ALT),
              "Use Ref/Alt"
  			));



addDialogComponent(new DialogComponentColumnNameSelection(
           new SettingsModelColumnName(
           	VCFNumericSplitNodeModel.VALUE_COL_PROPERTY, VCFNumericSplitNodeModel.VALUE_COL_DEFAULT),
               "Observed Column:",0,new DataTypeColumnFilter(IntCell.TYPE,DoubleCell.TYPE)));
    
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger(
           		VCFNumericSplitNodeModel.MIN_QUAL_PROPERTY, VCFNumericSplitNodeModel.DEFAULT_MIN_QUAL),
               "Minimum Value (inclusive=",1));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger(
           		VCFNumericSplitNodeModel.MAX_QUAL_PROPERTY, VCFNumericSplitNodeModel.DEFAULT_MAX_QUAL),
               "Maximum Value (inclusive)",1));
 	

addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( VCFNumericSplitNodeModel.INVERT_PROPERTY, VCFNumericSplitNodeModel.DEFAULT_INVERT),
              "Invert"
  			));
 	
}
 

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

示例28: BedFileNodeDialog

点赞 2

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


addDialogComponent(new DialogComponentString(
           new SettingsModelString( BedFileNodeModel.FILENAME_URI_PROPERTY, BedFileNodeModel.DEFAULT_FILENAME_URI),
              "File URI",
              true,50
  			));

addDialogComponent(new DialogComponentNumber(
        new SettingsModelInteger( BedFileNodeModel.CHROM2_COL_PROPERTY, BedFileNodeModel.DEFAULT_CHROM2_COL),
           "Chromosome",
           1
		));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger( BedFileNodeModel.START_COL_PROPERTY, BedFileNodeModel.DEFAULT_START_COL),
              "ChromStart",
              1
  			));
addDialogComponent(new DialogComponentNumber(
           new SettingsModelInteger( BedFileNodeModel.END_COL_PROPERTY, BedFileNodeModel.DEFAULT_END_COL),
              "ChromEnd",
              1
  			));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( BedFileNodeModel.FILE_IGNORE_PROPERTY, BedFileNodeModel.DEFAULT_FILE_IGNORE),
              "Ignore lines starting with",
              true,50
  			));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( BedFileNodeModel.FILE_DELIM_PROPERTY, BedFileNodeModel.DEFAULT_FILE_DELIM),
              "Regex delimiter",
              true,5
  			));

addDialogComponent(new DialogComponentString(
           new SettingsModelString( BedFileNodeModel.COL_PREFIX_PROPERTY, BedFileNodeModel.DEFAULT_ICOL_PREFIX),
              "Column prefix",
              true,10
  			));
addDialogComponent(new DialogComponentBoolean(
           new SettingsModelBoolean( BedFileNodeModel.STOP_FIRST_PROPERTY, BedFileNodeModel.STOP_FIRST_DEF),
              "Stop after first hit"
  			));
}
 

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

示例29: BedWriterNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
protected BedWriterNodeDialog()
  	{
  	addDialogComponent(new DialogComponentFileChooser(
              new SettingsModelString(
              	BedWriterNodeModel.FILENAME_PROPERTY, BedWriterNodeModel.DEFAULT_FILENAME_PROPERTY),
                  "save.as.bed",JFileChooser.SAVE_DIALOG));
  	addDialogComponent(new DialogComponentBoolean(
              new SettingsModelBoolean(
              	BedWriterNodeModel.OFFSET_PROPERTY, true),
                  "First base is '1'."));
  	/** chrom  */
  	
  	addDialogComponent(new DialogComponentColumnNameSelection(
  		new SettingsModelColumnName(BedWriterNodeModel.CHROMOSOME_COL_PROPERTY,BedWriterNodeModel.DEFAULT_CHROM_COL_PROPERTY),
  		"Chromosome",0,new DataTypeColumnFilter(StringCell.TYPE)
  		));
  	/** chrom start */
  	addDialogComponent(new DialogComponentColumnNameSelection(
  		new SettingsModelColumnName(BedWriterNodeModel.CHROMSTART_COL_PROPERTY,BedWriterNodeModel.DEFAULT_CHROMSTART_COL_PROPERTY),
  		"chromStart",0,new DataTypeColumnFilter(IntCell.TYPE)
  		));
  	
  	/** chrom end */
  	addDialogComponent(new DialogComponentColumnNameSelection(
  		new SettingsModelColumnName(BedWriterNodeModel.CHROMEND_COL_PROPERTY,BedWriterNodeModel.DEFAULT_CHROMEND_COL_PROPERTY),
  		"chromEnd",0,false,new DataTypeColumnFilter(IntCell.TYPE)
  		));
  	
  	/** name  */
  	ColumnFilter filter=new ColumnFilter() {
	@Override
	public boolean includeColumn(DataColumnSpec colSpec)
		{
		return true;
		}
	
	@Override
	public String allFilteredMsg() {
		return "should not happen "+getClass();
		}
	};
addDialogComponent(new DialogComponentColumnNameSelection(
  		new SettingsModelColumnName(BedWriterNodeModel.NAME_COL_PROPERTY,BedWriterNodeModel.DEFAULT_NAME_COL_PROPERTY),
  		"name",0,false,filter
  		));
  	}
 

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

示例30: ToKnimeNetworkNodeDialog

点赞 2

import org.knime.core.node.defaultnodesettings.DialogComponentBoolean; //导入依赖的package包/类
public ToKnimeNetworkNodeDialog() {
	addDialogComponent(
			new DialogComponentBoolean(new SettingsModelBoolean(ToKnimeNetworkNodeModel.CFG_ADD_PREFIX, false),
					"Add Prefix to Node and Edge IDs"));
}
 

开发者ID:SiLeBAT,
项目名称:BfROpenLab,
代码行数:6,
代码来源:ToKnimeNetworkNodeDialog.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)