View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2008 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // utgb-core Project
18  //
19  // Parameter.java
20  // Since: Feb 6, 2008
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.bean.track;
26  
27  import java.util.ArrayList;
28  
29  import com.google.gwt.user.client.rpc.IsSerializable;
30  
31  /**
32   * 
33   * Available parameter in the track
34   * 
35   * @author leo
36   * 
37   */
38  public class Parameter implements IsSerializable {
39  	private String name;
40  	private String displayName;
41  	private String defaultValue;
42  	private boolean required = false;
43  	private String type = "string";
44  	private String style = "box";
45  
46  	/**
47  	 */
48  	private ArrayList<Option> optionList = new ArrayList<Option>();
49  
50  	public String getName() {
51  		return name;
52  	}
53  
54  	public void setName(String name) {
55  		this.name = name;
56  	}
57  
58  	public String getDisplayName() {
59  		return displayName;
60  	}
61  
62  	public void setDisplayName(String displayName) {
63  		this.displayName = displayName;
64  	}
65  
66  	public String getDefault() {
67  		return defaultValue;
68  	}
69  
70  	public void setDefault(String defaultValue) {
71  		this.defaultValue = defaultValue;
72  	}
73  
74  	public boolean isRequired() {
75  		return required;
76  	}
77  
78  	public void setRequired(boolean required) {
79  		this.required = required;
80  	}
81  
82  	public String getType() {
83  		return type;
84  	}
85  
86  	public void setType(String type) {
87  		this.type = type;
88  	}
89  
90  	public String getStyle() {
91  		return style;
92  	}
93  
94  	public void setStyle(String style) {
95  		this.style = style;
96  	}
97  
98  	public ArrayList<Option> getOptionList() {
99  		return optionList;
100 	}
101 
102 	public void addOption(Option option) {
103 		optionList.add(option);
104 	}
105 
106 }