KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > modules > categories > EACategoryContentsBean


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.modules.categories;
7
8
9 import java.util.*;
10
11 import com.raptus.owxv3.*;
12 import com.raptus.owxv3.api.*;
13
14 import java.sql.SQLException JavaDoc;
15
16 /**
17  *
18  * <hr>
19  * <table width="100%" border="0">
20  * <tr>
21  * <td width="24%"><b>Filename</b></td><td width="76%">EACategoryContentsBean.java</td>
22  * </tr>
23  * <tr>
24  * <td width="24%"><b>Author</b></td><td width="76%">REEA</td>
25  * </tr>
26  * <tr>
27  * <td width="24%"><b>Date</b></td><td width="76%">10th of December 2001</td>
28  * </tr>
29  * </table>
30  * <hr>
31  * <table width="100%" border="0">
32  * <tr>
33  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
34  * </tr>
35  * </table>
36  * <hr>
37  * <table width="100%" border="0">
38  * <tr>
39  * <td>This class is the form bean of the <code>EACategoryContentsAction</code> action.</td>
40  * </tr>
41  * </table>
42  * <hr>
43  *
44  */

45 public class EACategoryContentsBean extends OmniaWebBean
46 {
47
48     /**
49      *A CategorySelector that will hold all the data related to categories
50      */

51     protected CategorySelector categorySelector=null;
52
53
54
55     /**
56      *Setter method of categorySelector
57      */

58     public void setCategorySelector(CategorySelector catsel)
59     {
60         categorySelector=catsel;
61     }
62
63
64     /**
65      *Getter method of categorySelector
66      */

67     public CategorySelector getCategorySelector()
68     {
69         return categorySelector;
70     }
71
72
73     /**
74      *Method for getting a the list of category contents to display
75      * @return Vector of Hashtable(cat => GResCategory, name => String, iteminfo => String, itemid => Integer)
76      */

77     public Vector getCategoryList()
78     {
79         if(categorySelector==null) return null;
80         try
81         {
82             return categorySelector.getCategoriesWithItemDesc();
83         }catch(SQLException JavaDoc e)
84         {
85             LoggingManager.log("Error while retriveing list of items in each category!");
86
87         }
88         return null;
89     }
90
91 }
92
93 // eof
94

95
96
97
Popular Tags