Search in sources :

Example 1 with RowKeyPolicy

use of org.knime.base.node.meta.looper.AbstractLoopEndNodeSettings.RowKeyPolicy in project knime-core by knime.

the class AbstractLoopEndNodeDialog method loadSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadSettingsFrom(final NodeSettingsRO settings, final DataTableSpec[] specs) throws NotConfigurableException {
    m_settings.loadSettings(settings);
    m_addIterationColumn.setSelected(m_settings.addIterationColumn());
    RowKeyPolicy p = m_settings.rowKeyPolicy();
    for (Enumeration<AbstractButton> e = m_rowKeyPolicy.getElements(); e.hasMoreElements(); ) {
        AbstractButton b = e.nextElement();
        b.setSelected(b.getActionCommand().equals(p.name()));
    }
    loadFromSettings(m_settings);
}
Also used : AbstractButton(javax.swing.AbstractButton) RowKeyPolicy(org.knime.base.node.meta.looper.AbstractLoopEndNodeSettings.RowKeyPolicy)

Aggregations

AbstractButton (javax.swing.AbstractButton)1 RowKeyPolicy (org.knime.base.node.meta.looper.AbstractLoopEndNodeSettings.RowKeyPolicy)1