View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2007 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  // UTGBMedaka Project
18  //
19  // TrackGroup.java
20  // Since: Aug 9, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.bean;
26  
27  import java.util.ArrayList;
28  import java.util.HashMap;
29  
30  import com.google.gwt.user.client.rpc.IsSerializable;
31  
32  public class TrackGroupBean implements IsSerializable {
33  	private String className;
34  	/**
35  	 */
36  	private ArrayList<TrackGroupBean> trackGroup = new ArrayList<TrackGroupBean>();
37  	/**
38  	 */
39  	private ArrayList<TrackBean> track = new ArrayList<TrackBean>();
40  
41  	/**
42  	 */
43  	private HashMap<String, String> property = new HashMap<String, String>();
44  	private TrackGroupPropertyBean groupProperty = new TrackGroupPropertyBean();
45  
46  	public TrackGroupBean() {
47  	}
48  
49  	public void addTrackGroup(TrackGroupBean trackGroup) {
50  		this.trackGroup.add(trackGroup);
51  	}
52  
53  	public ArrayList<TrackGroupBean> getTrackGroup() {
54  		return trackGroup;
55  	}
56  
57  	public void addTrack(TrackBean track) {
58  		this.track.add(track);
59  	}
60  
61  	public ArrayList<TrackBean> getTrack() {
62  		return track;
63  	}
64  
65  	public void putProperty(String key, String value) {
66  		property.put(key, value);
67  	}
68  
69  	public HashMap<String, String> getProperty() {
70  		return property;
71  	}
72  
73  	public void setGroupProperties(TrackGroupPropertyBean groupProperty) {
74  		this.groupProperty = groupProperty;
75  	}
76  
77  	public TrackGroupPropertyBean getGroupProperties() {
78  		return this.groupProperty;
79  	}
80  
81  	public String getClassName() {
82  		return className;
83  	}
84  
85  	public void setClassName(String className) {
86  		this.className = className;
87  	}
88  
89  }