private void saveProperties(){
  if (isDataValid()) {
    control.setTrackSlider(trackBox.isSelected());
    control.setSwitchSliderFunction(functionSwitchSlider.getText());
    control.setSpeedController(_displaySlider);
    finishEdit();
  }
}

private void saveProperties ( ) { if ( isDataValid ( ) ) { control . setTrackSlider ( trackBox . isSelected ( ) ) ; control . setSwitchSliderFunction ( functionSwitchSlider . getText ( ) ) ; control . setSpeedController ( _displaySlider ) ; finishEdit ( ) ; } }
save the user - modified properties back to the functionbutton .
