Search in sources :

Example 6 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class AppendVariableToTable2NodeModel method loadValidatedSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings) throws InvalidSettingsException {
    FlowVariableFilterConfiguration conf = new FlowVariableFilterConfiguration(CFG_KEY_FILTER);
    conf.loadConfigurationInModel(settings);
    m_filter = conf;
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 7 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableToTable2NodeDialogPane method saveSettingsTo.

/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) throws InvalidSettingsException {
    m_rowID.saveSettingsTo(settings);
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration(VariableToTable2NodeModel.CFG_KEY_FILTER);
    m_filter.saveConfiguration(config);
    config.saveConfiguration(settings);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 8 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableToTable2NodeModel method loadValidatedSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings) throws InvalidSettingsException {
    m_rowID.loadSettingsFrom(settings);
    FlowVariableFilterConfiguration conf = new FlowVariableFilterConfiguration(CFG_KEY_FILTER);
    conf.loadConfigurationInModel(settings);
    m_filter = conf;
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 9 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableToTable2NodeDialogPane method loadSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadSettingsFrom(final NodeSettingsRO settings, final PortObjectSpec[] specs) throws NotConfigurableException {
    m_rowID.loadSettingsFrom(settings, specs);
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration(VariableToTable2NodeModel.CFG_KEY_FILTER);
    config.loadConfigurationInDialog(settings, getAvailableFlowVariables());
    m_filter.loadConfiguration(config, getAvailableFlowVariables());
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 10 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableToTable2NodeModel method validateSettings.

/**
 * {@inheritDoc}
 */
@Override
protected void validateSettings(final NodeSettingsRO settings) throws InvalidSettingsException {
    m_rowID.validateSettings(settings);
    FlowVariableFilterConfiguration conf = new FlowVariableFilterConfiguration(CFG_KEY_FILTER);
    conf.loadConfigurationInModel(settings);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Aggregations

FlowVariableFilterConfiguration (org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)14 InvalidSettingsException (org.knime.core.node.InvalidSettingsException)3 FlowVariable (org.knime.core.node.workflow.FlowVariable)2 FilterResult (org.knime.core.node.util.filter.NameFilterConfiguration.FilterResult)1