1 package info.mikethomas.fahweb.action;
2
3 /*
4 * #%L
5 * This file is part of FAHWeb.
6 * %%
7 * Copyright (C) 2012 - 2017 Michael Thomas <mikepthomas@outlook.com>
8 * %%
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation, either version 3 of the
12 * License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program. If not, see
21 * <http://www.gnu.org/licenses/gpl-3.0.html>.
22 * #L%
23 */
24
25 import com.opensymphony.xwork2.ActionSupport;
26
27 /**
28 * <p>Abstract StatsActionBase class.</p>
29 *
30 * @author Michael Thomas (mikepthomas@outlook.com)
31 * @version $Id: $Id
32 */
33 public abstract class StatsActionBase extends ActionSupport {
34
35 /** Constant <code>RESULTS_PER_PAGE=100</code> */
36 public static final int RESULTS_PER_PAGE = 100;
37
38 private String pageTitle;
39 private int page = 1;
40
41 /**
42 * <p>Getter for the field <code>pageTitle</code>.</p>
43 *
44 * @return a {@link java.lang.String} object.
45 */
46 public String getPageTitle() {
47 return pageTitle;
48 }
49
50 /**
51 * <p>Setter for the field <code>pageTitle</code>.</p>
52 *
53 * @param pageTitle a {@link java.lang.String} object.
54 */
55 protected void setPageTitle(String pageTitle) {
56 this.pageTitle = pageTitle;
57 }
58
59 /**
60 * <p>Getter for the field <code>page</code>.</p>
61 *
62 * @return a int.
63 */
64 public int getPage() {
65 return page;
66 }
67
68 /**
69 * <p>Setter for the field <code>page</code>.</p>
70 *
71 * @param page a int.
72 */
73 public void setPage(int page) {
74 this.page = page;
75 }
76 }