KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xpetstore > web > struts > action > item > ItemForm


1 package xpetstore.web.struts.action.item;
2
3 import xpetstore.domain.catalog.ejb.Item;
4 import xpetstore.domain.catalog.ejb.Product;
5
6 import xpetstore.web.struts.action.*;
7
8
9 /**
10  * @author <a HREF="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
11  *
12  * @struts.form
13  * name="itemForm"
14  */

15 public class ItemForm
16     extends BaseForm
17 {
18     //~ Instance fields --------------------------------------------------------
19

20     private String JavaDoc _itemId;
21     private Item _item = new Item( );
22     private Product _product;
23
24     //~ Methods ----------------------------------------------------------------
25

26     /**
27      * @return String
28      */

29     public String JavaDoc getItemId( )
30     {
31         return _itemId;
32     }
33
34     /**
35      * @return ItemValue
36      */

37     public Item getItem( )
38     {
39         return _item;
40     }
41
42     /**
43      * @return ProductValue
44      */

45     public Product getProduct( )
46     {
47         return _product;
48     }
49
50     /**
51      * Sets the itemId.
52      * @param itemId The itemId to set
53      */

54     public void setItemId( String JavaDoc itemId )
55     {
56         _itemId = itemId;
57     }
58
59     /**
60      * Sets the itemValue.
61      * @param itemValue The itemValue to set
62      */

63     public void setItem( Item item )
64     {
65         _item = item;
66     }
67
68     /**
69      * Sets the productValue.
70      * @param productValue The productValue to set
71      */

72     public void setProduct( Product product )
73     {
74         _product = product;
75     }
76 }
77
Popular Tags