本文整理汇总了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));
}
示例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));
}
示例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
));
}
示例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"));
}
示例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."));
}
示例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)"));
}