Skip to content
Snippets Groups Projects
Commit 68e70b59 authored by Felix Schmidt's avatar Felix Schmidt
Browse files

The color of the gridlines is now stored in database

parent ae181603
Branches
Tags
No related merge requests found
......@@ -279,6 +279,7 @@ public class CouchDBDao implements IDatabaseDao {
q.put("numClickableFields", question.getNumClickableFields());
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored());
q.put("gridLineColor", question.getGridLineColor());
return q;
}
......@@ -313,6 +314,7 @@ public class CouchDBDao implements IDatabaseDao {
q.put("numClickableFields", question.getNumClickableFields());
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored());
q.put("gridLineColor", question.getGridLineColor());
database.saveDocument(q);
question.set_rev(q.getRev());
......
......@@ -60,6 +60,7 @@ public class Question {
private int numClickableFields;
private int thresholdCorrectAnswers;
private boolean cvIsColored;
private String gridLineColor;
public final String getType() {
return type;
......@@ -357,6 +358,13 @@ public class Question {
this.thresholdCorrectAnswers = thresholdCorrectAnswers;
}
public String getGridLineColor() {
return gridLineColor;
}
public void setGridLineColor(String gridLineColor) {
this.gridLineColor = gridLineColor;
}
@Override
public final String toString() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment