View Javadoc

1   /*
2    * Copyright 2006 Robert Hanson <iamroberthanson AT gmail.com>
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  package org.gwtwidgets.client.ui.pagination;
18  
19  import java.util.List;
20  
21  import com.google.gwt.user.client.rpc.IsSerializable;
22  
23  /***
24   * Size is the total number of possible rows to page through. List is the list
25   * of objects on the current page.
26   * 
27   * @author Joe Toth (joetoth@gmail.com)
28   * 
29   */
30  public class Results implements IsSerializable {
31  
32  	private int size;
33  
34  	private List list;
35  
36  	public Results() {
37  
38  	}
39  
40  	public Results(int size, List list) {
41  		this.size = size;
42  		this.list = list;
43  	}
44  
45  	public List getList() {
46  		return list;
47  	}
48  
49  	public void setList(List list) {
50  		this.list = list;
51  	}
52  
53  	public int getSize() {
54  		return size;
55  	}
56  
57  	public void setSize(int size) {
58  		this.size = size;
59  	}
60  
61  }