JAL-3829 refactored FilterOption provider to the StructureChooserQuerySource implemen...
[jalview.git] / src / jalview / jbgui / FilterOption.java
1 package jalview.jbgui;
2
3 /**
4  * This inner class provides the data model for the structure filter combo-box
5  * 
6  * @author tcnofoegbu
7  *
8  */
9 public class FilterOption
10 {
11   private String name;
12
13   private String value;
14
15   private String view;
16
17   private boolean addSeparatorAfter;
18
19   /**
20    * Model for structure filter option
21    * 
22    * @param name
23    *          - the name of the Option
24    * @param value
25    *          - the value of the option
26    * @param view
27    *          - the category of the filter option
28    * @param addSeparatorAfter
29    *          - if true, a horizontal separator is rendered immediately after
30    *          this filter option, otherwise
31    */
32   public FilterOption(String name, String value, String view,
33           boolean addSeparatorAfter)
34   {
35     this.name = name;
36     this.value = value;
37     this.view = view;
38     this.addSeparatorAfter = addSeparatorAfter;
39   }
40
41   public String getName()
42   {
43     return name;
44   }
45
46   public void setName(String name)
47   {
48     this.name = name;
49   }
50
51   public String getValue()
52   {
53     return value;
54   }
55
56   public void setValue(String value)
57   {
58     this.value = value;
59   }
60
61   public String getView()
62   {
63     return view;
64   }
65
66   public void setView(String view)
67   {
68     this.view = view;
69   }
70
71   @Override
72   public String toString()
73   {
74     return this.name;
75   }
76
77   public boolean isAddSeparatorAfter()
78   {
79     return addSeparatorAfter;
80   }
81
82   public void setAddSeparatorAfter(boolean addSeparatorAfter)
83   {
84     this.addSeparatorAfter = addSeparatorAfter;
85   }
86 }