public int overwriteResult() {
    if(cbAllFiles.isSelected() && overwriteFile){
        return Controller.OVERWRITE_ALL_YES;
    } else if(cbAllFiles.isSelected() && !overwriteFile){
        return Controller.OVERWRITE_ALL_NO;
    } else if(!cbAllFiles.isSelected() && overwriteFile){
        return Controller.OVERWRITE_ONCE_YES;
    } else {
        return Controller.OVERWRITE_ONCE_NO;
    }
  }