KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > OmniaWebBean


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

5
6 package com.raptus.owxv3.api;
7
8 import java.util.Locale JavaDoc;
9
10 import javax.servlet.http.HttpServletRequest JavaDoc;
11
12 import org.apache.struts.action.ActionMapping;
13
14 /**
15  *
16  *
17  * <hr>
18  * <table width="100%" border="0">
19  * <tr>
20  * <td width="24%"><b>Filename</b></td><td width="76%">OmniaWebBean.java</td>
21  * </tr>
22  * <tr>
23  * <td width="24%"><b>Author</b></td><td width="76%">Guy Z�rcher (gzuercher@raptus.com)</td>
24  * </tr>
25  * <tr>
26  * <td width="24%"><b>Date</b></td><td width="76%">18th of April 2001</td>
27  * </tr>
28  * </table>
29  * <hr>
30  * <table width="100%" border="0">
31  * <tr>
32  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
33  * </tr>
34  * </table>
35  * <hr>
36  */

37 public class OmniaWebBean extends org.apache.struts.action.ActionForm
38 {
39     /**
40      *
41      */

42     protected Locale JavaDoc currLocale = null;
43
44     /**
45      *
46      */

47     protected String JavaDoc element = null;
48
49     /**
50      *
51      */

52     protected String JavaDoc vmid = null;
53     
54     /**
55      * the section
56      */

57     protected String JavaDoc section = null;
58
59     /**
60      *
61      */

62     public Locale JavaDoc getCurrLocale() { return currLocale; }
63     public void setCurrLocale(Locale JavaDoc l) { this.currLocale = l; }
64
65     /**
66      *
67      */

68     public String JavaDoc getElement() { return element; }
69     public void setElement(String JavaDoc element) { this.element = element; }
70
71     /**
72      *
73      */

74     public boolean isElement(String JavaDoc e) { return this.element.compareToIgnoreCase(e) == 0; }
75
76     /**
77      *
78      */

79     public String JavaDoc getVModule() { return vmid; }
80     public void setVModule(String JavaDoc id) { this.vmid = id; }
81
82     /**
83      *
84      */

85     public boolean isVModule(String JavaDoc id) { return this.vmid.compareToIgnoreCase(id) == 0; }
86
87     /**
88      * deprecated
89      */

90 // public String getResources()
91
// {
92
// VModuleManager vmm = VModuleManager.getInstance();
93
// VModule vm = vmm.getVModule(vmid);
94
// if(vm != null)
95
// return vm.getResources();
96
//
97
// return null;
98
// }
99

100     /**
101      *
102      */

103     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request)
104     {
105         super.reset(mapping, request);
106     }
107     
108     /**
109      * return the section
110      */

111     public String JavaDoc getSection()
112     {
113         return section;
114     }
115     
116     /**
117      * set the section
118      */

119     public void setSection(String JavaDoc section)
120     {
121         this.section = section;
122     }
123     
124     public String JavaDoc getVmodule() { return vmid; }
125     public void setVmodule(String JavaDoc id) { this.vmid = id; }
126 }
127
128 // eof
129
Popular Tags