01: /**
02: * Copyright (c) 2006 Red Hat, Inc. All rights reserved.
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17: * USA
18: *
19: * Component of: Red Hat Application Server
20: *
21: * Initial Developers: Greg Lapouchnian
22: * Patrick Smith
23: *
24: */package olstore.controller;
25:
26: import java.util.Collection;
27:
28: /**
29: * A helper class for the Order status update form to wrap the
30: * collection of orders.
31: */
32: public class OrderFormHelper {
33:
34: // The collection of orders.
35: private Collection ordersList;
36:
37: /**
38: * Create a new helper with a list.
39: * @param ordersList the list of orders.
40: */
41: public OrderFormHelper(Collection ordersList) {
42: this .ordersList = ordersList;
43: }
44:
45: /**
46: * Sets the list of orders to the supplied param.
47: * @param ordersList the new list of orders.
48: */
49: public void setOrdersList(Collection ordersList) {
50: this .ordersList = ordersList;
51: }
52:
53: /**
54: * Returns the list of orders.
55: * @return the list of orders.
56: */
57: public Collection getOrdersList() {
58: return this.ordersList;
59: }
60:
61: }
|