1 /*
2 * SortInfoForm.java
3 *
4 * Created on February 7, 2003, 6:09 AM
5 */
6
7 package com.mlw.fps.view.form;
8
9 import javax.servlet.http.HttpServletRequest;
10
11 import org.apache.struts.action.ActionForm;
12 import org.apache.struts.action.ActionMapping;
13
14 import com.mlw.fps.model.business.bean.SortInfo;
15 /***
16 *
17 * @author Matthew Wilson
18 */
19 public class SortInfoForm extends ActionForm implements SortInfo
20 {
21 public static Integer DESCENDING = new Integer(-1);
22 public static Integer ASCENDING = new Integer(1);
23 private Integer direction = DESCENDING;
24 private String column = null;
25
26 /*** Creates a new instance of SortInfoForm
27 */
28 public SortInfoForm()
29 {
30 }
31
32 public void reset(ActionMapping a, HttpServletRequest r)
33 {
34 direction = DESCENDING;
35 column = null;
36 }
37
38 /*** Getter for property column.
39 * @return Value of property column.
40 */
41 public String getColumn()
42 {
43 return column;
44 }
45
46 /*** Getter for property direction.
47 * @return Value of property direction.
48 */
49 public Integer getDirection()
50 {
51 return direction;
52 }
53
54 /*** Setter for property column.
55 * @param column New value of property column.
56 */
57 public void setColumn(String column)
58 {
59 this.column = column;
60 }
61
62 /*** Setter for property direction.
63 * @param direction New value of property direction.
64 */
65 public void setDirection(Integer direction)
66 {
67 this.direction = direction;
68 }
69
70 public String toString()
71 {
72 return "column = " + column;
73 }
74 }
This page was automatically generated by Maven