JAL-1807 test
[jalviewjs.git] / bin / jalview / viewmodel / annotationfilter / AnnotationFilterParameter.js
1 Clazz.declarePackage ("jalview.viewmodel.annotationfilter");
2 Clazz.load (["java.lang.Enum", "java.util.ArrayList"], "jalview.viewmodel.annotationfilter.AnnotationFilterParameter", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.thresholdType = null;
5 this.thresholdValue = 0;
6 this.filterAlphaHelix = false;
7 this.filterBetaSheet = false;
8 this.filterTurn = false;
9 this.regexString = null;
10 this.regexSearchFields = null;
11 Clazz.instantialize (this, arguments);
12 }, jalview.viewmodel.annotationfilter, "AnnotationFilterParameter");
13 Clazz.prepareFields (c$, function () {
14 this.regexSearchFields =  new java.util.ArrayList ();
15 });
16 Clazz.defineMethod (c$, "getThresholdType", 
17 function () {
18 return this.thresholdType;
19 });
20 Clazz.defineMethod (c$, "setThresholdType", 
21 function (thresholdType) {
22 this.thresholdType = thresholdType;
23 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType");
24 Clazz.defineMethod (c$, "getThresholdValue", 
25 function () {
26 return this.thresholdValue;
27 });
28 Clazz.defineMethod (c$, "setThresholdValue", 
29 function (thresholdValue) {
30 this.thresholdValue = thresholdValue;
31 }, "~N");
32 Clazz.defineMethod (c$, "getRegexString", 
33 function () {
34 return this.regexString;
35 });
36 Clazz.defineMethod (c$, "setRegexString", 
37 function (regexString) {
38 this.regexString = regexString;
39 }, "~S");
40 Clazz.defineMethod (c$, "getRegexSearchFields", 
41 function () {
42 return this.regexSearchFields;
43 });
44 Clazz.defineMethod (c$, "addRegexSearchField", 
45 function (regexSearchField) {
46 this.regexSearchFields.add (regexSearchField);
47 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField");
48 Clazz.defineMethod (c$, "isFilterAlphaHelix", 
49 function () {
50 return this.filterAlphaHelix;
51 });
52 Clazz.defineMethod (c$, "setFilterAlphaHelix", 
53 function (alphaHelix) {
54 this.filterAlphaHelix = alphaHelix;
55 }, "~B");
56 Clazz.defineMethod (c$, "isFilterBetaSheet", 
57 function () {
58 return this.filterBetaSheet;
59 });
60 Clazz.defineMethod (c$, "setFilterBetaSheet", 
61 function (betaSheet) {
62 this.filterBetaSheet = betaSheet;
63 }, "~B");
64 Clazz.defineMethod (c$, "isFilterTurn", 
65 function () {
66 return this.filterTurn;
67 });
68 Clazz.defineMethod (c$, "setFilterTurn", 
69 function (turn) {
70 this.filterTurn = turn;
71 }, "~B");
72 Clazz.pu$h ();
73 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "ThresholdType", Enum);
74 Clazz.defineEnumConstant (c$, "NO_THRESHOLD", 0, []);
75 Clazz.defineEnumConstant (c$, "BELOW_THRESHOLD", 1, []);
76 Clazz.defineEnumConstant (c$, "ABOVE_THRESHOLD", 2, []);
77 c$ = Clazz.p0p ();
78 Clazz.pu$h ();
79 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "SearchableAnnotationField", Enum);
80 Clazz.defineEnumConstant (c$, "DISPLAY_STRING", 0, []);
81 Clazz.defineEnumConstant (c$, "DESCRIPTION", 1, []);
82 c$ = Clazz.p0p ();
83 });