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


Java DialogComponentColumnFilter类代码示例

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


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

示例1: SumNodeDialog

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

示例2: GroupBySnpNodeDialog

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

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

addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString(
           		GroupBySnpNodeModel.LEFT_COLS_PROPERTY, GroupBySnpNodeModel.LEFT_COLS_INCLUDE,GroupBySnpNodeModel.LEFT_COLS_EXCLUDE),
               0,false));

addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString(
           		GroupBySnpNodeModel.TOP_COLS_PROPERTY, GroupBySnpNodeModel.TOP_COLS_INCLUDE,GroupBySnpNodeModel.TOP_COLS_EXCLUDE),
               0,false));
}
 
开发者ID:lindenb,项目名称:knime4bio,代码行数:35,代码来源:GroupBySnpNodeDialog.java

示例3: ExtractFormatMultiNodeDialog

import org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter; //导入依赖的package包/类
protected ExtractFormatMultiNodeDialog()
{
addDialogComponent(new DialogComponentColumnNameSelection(
        new SettingsModelColumnName( ExtractFormatMultiNodeModel.FORMAT_COL_PROPERTY, ExtractFormatMultiNodeModel.DEFAULT_FORMAT_COLUMN),
           "FORMAT column",
           0,
           new DataTypeColumnFilter(StringCell.TYPE)
		));

addDialogComponent(new DialogComponentColumnFilter(
           new SettingsModelFilterString(
           		ExtractFormatMultiNodeModel.CALL_COL_PROPERTY,
           		ExtractFormatMultiNodeModel.DEFAULT_CALL_COLUMNS,
           		new String[0]
           		 ),
              0,true,
              new DataTypeColumnFilter(StringCell.TYPE)
  			));

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

示例4: UniqNodeDialog

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

示例5: NumColumnFilterNodeDialog

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

示例6: KNFSTLearnerNodeDialog

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


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