Search in sources :

Example 1 with DefaultNodeSettingsPane

use of org.knime.core.node.defaultnodesettings.DefaultNodeSettingsPane in project knime-core by knime.

the class DecTreePredictorNodeFactory method createNodeDialogPane.

/**
 * {@inheritDoc}
 */
@Override
public NodeDialogPane createNodeDialogPane() {
    return new DefaultNodeSettingsPane() {

        {
            addDialogComponent(new DialogComponentNumber(DecTreePredictorNodeModel.createMaxNumPatternSettings(), /* label: */
            "Maximum number of stored patterns " + "for HiLite-ing: ", 100));
            addDialogComponent(new DialogComponentBoolean(new SettingsModelBoolean(DecTreePredictorNodeModel.SHOW_DISTRIBUTION, false), "Append columns with normalized class distribution"));
        }
    };
}
Also used : SettingsModelBoolean(org.knime.core.node.defaultnodesettings.SettingsModelBoolean) DialogComponentNumber(org.knime.core.node.defaultnodesettings.DialogComponentNumber) DialogComponentBoolean(org.knime.core.node.defaultnodesettings.DialogComponentBoolean) DefaultNodeSettingsPane(org.knime.core.node.defaultnodesettings.DefaultNodeSettingsPane)

Aggregations

DefaultNodeSettingsPane (org.knime.core.node.defaultnodesettings.DefaultNodeSettingsPane)1 DialogComponentBoolean (org.knime.core.node.defaultnodesettings.DialogComponentBoolean)1 DialogComponentNumber (org.knime.core.node.defaultnodesettings.DialogComponentNumber)1 SettingsModelBoolean (org.knime.core.node.defaultnodesettings.SettingsModelBoolean)1