saveSettingsTo

In this method, values for user settings from the dialog's components are being copied into the NodeSettings object. Perform only basic checking on the values here as the object is immediately transferred to the NodeModel and run through the validateSettings method. You could, for example, check that an entered number is actually a valid integer and throw an exception with a user message if not.

Example #1:

	settings.addInt(ExampleNodeModel.CFG_PERCENTAGE,
                (Integer)m_percentage.getValue());
        settings.addBoolean(ExampleNodeModel.CFG_REPLACE, 
                m_replaceBox.isSelected());