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  // SearchResult.java
20  // Since: Aug 10, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.bean;
26  
27  import java.util.ArrayList;
28  
29  import com.google.gwt.user.client.rpc.IsSerializable;
30  
31  public class SearchResult implements IsSerializable {
32  	private int totalcount;
33  	private int maxpage;
34  	private int count;
35  	private int page;
36  	private int pagewidth;
37  	private String sortby;
38  	private String query;
39  	/**
40  	 */
41  	private ArrayList<Result> result = new ArrayList<Result>();
42  
43  	public SearchResult() {
44  	}
45  
46  	public int getTotalcount() {
47  		return totalcount;
48  	}
49  
50  	public void setTotalcount(int totalcount) {
51  		this.totalcount = totalcount;
52  	}
53  
54  	public int getMaxpage() {
55  		return maxpage;
56  	}
57  
58  	public void setMaxpage(int maxpage) {
59  		this.maxpage = maxpage;
60  	}
61  
62  	public int getCount() {
63  		return count;
64  	}
65  
66  	public void setCount(int count) {
67  		this.count = count;
68  	}
69  
70  	public int getPage() {
71  		return page;
72  	}
73  
74  	public void setPage(int page) {
75  		this.page = page;
76  	}
77  
78  	public int getPagewidth() {
79  		return pagewidth;
80  	}
81  
82  	public void setPagewidth(int pagewidth) {
83  		this.pagewidth = pagewidth;
84  	}
85  
86  	public String getSortby() {
87  		return sortby;
88  	}
89  
90  	public void setSortby(String sortby) {
91  		this.sortby = sortby;
92  	}
93  
94  	public String getQuery() {
95  		return query;
96  	}
97  
98  	public void setQuery(String query) {
99  		this.query = query;
100 	}
101 
102 	public ArrayList<Result> getResult() {
103 		return result;
104 	}
105 
106 	public void addResult(Result result) {
107 		this.result.add(result);
108 	}
109 }