Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed some small bugs under category display naming
- Loading branch information
Showing
6 changed files
with
129 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
api/src/main/java/org/openmrs/module/chartsearch/PreferenceJSON.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package org.openmrs.module.chartsearch; | ||
|
||
import net.sf.json.JSONArray; | ||
|
||
public class PreferenceJSON { | ||
|
||
private boolean history; | ||
|
||
private boolean bookmarks; | ||
|
||
private boolean notes; | ||
|
||
private boolean quickSearches; | ||
|
||
private boolean defaultSearch; | ||
|
||
private boolean duplicateResults; | ||
|
||
private boolean multiFiltering; | ||
|
||
private JSONArray categories; | ||
|
||
public PreferenceJSON(boolean history, boolean bookmarks, boolean notes, boolean quickSearches, boolean defaultSearch, | ||
boolean duplicateResults, boolean multiFiltering, JSONArray categories) { | ||
this.history = history; | ||
this.bookmarks = bookmarks; | ||
this.notes = notes; | ||
this.quickSearches = quickSearches; | ||
this.defaultSearch = defaultSearch; | ||
this.duplicateResults = duplicateResults; | ||
this.multiFiltering = multiFiltering; | ||
this.categories = categories; | ||
} | ||
|
||
public boolean isHistory() { | ||
return history; | ||
} | ||
|
||
public boolean isBookmarks() { | ||
return bookmarks; | ||
} | ||
|
||
public boolean isNotes() { | ||
return notes; | ||
} | ||
|
||
public boolean isQuickSearches() { | ||
return quickSearches; | ||
} | ||
|
||
public boolean isDefaultSearch() { | ||
return defaultSearch; | ||
} | ||
|
||
public boolean isDuplicateResults() { | ||
return duplicateResults; | ||
} | ||
|
||
public boolean isMultiFiltering() { | ||
return multiFiltering; | ||
} | ||
|
||
public JSONArray getCategories() { | ||
return categories; | ||
} | ||
|
||
public void setHistory(boolean history) { | ||
this.history = history; | ||
} | ||
|
||
public void setBookmarks(boolean bookmarks) { | ||
this.bookmarks = bookmarks; | ||
} | ||
|
||
public void setNotes(boolean notes) { | ||
this.notes = notes; | ||
} | ||
|
||
public void setQuickSearches(boolean quickSearches) { | ||
this.quickSearches = quickSearches; | ||
} | ||
|
||
public void setDefaultSearch(boolean defaultSearch) { | ||
this.defaultSearch = defaultSearch; | ||
} | ||
|
||
public void setDuplicateResults(boolean duplicateResults) { | ||
this.duplicateResults = duplicateResults; | ||
} | ||
|
||
public void setMultiFiltering(boolean multiFiltering) { | ||
this.multiFiltering = multiFiltering; | ||
} | ||
|
||
public void setCategories(JSONArray categories) { | ||
this.categories = categories; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters