reorganized storage of models

This commit is contained in:
2016-07-22 20:45:26 +02:00
parent 6e7c3226ab
commit 64d5000b62
14 changed files with 191 additions and 166 deletions

View File

@@ -42,8 +42,7 @@ import static ninja.javafx.smartcsv.preferences.QuoteModeHelper.getQuoteMode;
/**
* file reader for the preferences
*/
@Service
public class PreferencesFileReader implements FileReader {
public class PreferencesFileReader implements FileReader<CsvPreference> {
private Map config;
private CsvPreference csvPreference;
@@ -74,7 +73,7 @@ public class PreferencesFileReader implements FileReader {
}
}
public CsvPreference getCSVpreference() {
public CsvPreference getContent() {
return csvPreference;
}

View File

@@ -41,12 +41,11 @@ import java.util.Map;
/**
* Save preferences to configuration file
*/
@Service
public class PreferencesFileWriter implements FileWriter {
public class PreferencesFileWriter implements FileWriter<CsvPreference> {
private CsvPreference csvPreference;
public void setCsvPreference(CsvPreference csvPreference) {
public void setContent(CsvPreference csvPreference) {
this.csvPreference = csvPreference;
}