KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > adwt > service > StatusBarServiceProvider


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.adwt.service;
8
9 import java.awt.Container JavaDoc;
10 import java.beans.beancontext.BeanContextServices JavaDoc;
11 import java.util.Iterator JavaDoc;
12 import java.util.Vector JavaDoc;
13
14 import javax.swing.Icon JavaDoc;
15 import javax.swing.JPanel JavaDoc;
16
17 import org.ejtools.beans.beancontext.CustomBeanContextServiceProvider;
18
19 /**
20  * Description of the Class
21  *
22  * @author Laurent Etiemble
23  * @version $Revision: 1.5 $
24  * @todo Javadoc to complete
25  */

26 public class StatusBarServiceProvider extends CustomBeanContextServiceProvider implements StatusBarService
27 {
28    /** Description of the Field */
29    private JPanel JavaDoc panel = new JPanel JavaDoc();
30    /** Description of the Field */
31    private StatusBarService service = null;
32
33
34    /** Constructor for the StatusBarServiceProvider object */
35    public StatusBarServiceProvider()
36    {
37       service = this;
38    }
39
40
41    /**
42     * Adds a feature to the Zone attribute of the StatusBarServiceProvider object
43     *
44     * @param name The feature to be added to the Zone attribute
45     * @param alignement The feature to be added to the Zone attribute
46     */

47    public void addZone(String JavaDoc name, int alignement) { }
48
49
50    /**
51     * Adds a feature to the Zone attribute of the StatusBarServiceProvider object
52     *
53     * @param name The feature to be added to the Zone attribute
54     */

55    public void addZone(String JavaDoc name) { }
56
57
58    /**
59     * Gets the container attribute of the StatusBarServiceProvider object
60     *
61     * @return The container value
62     */

63    public Container JavaDoc getContainer()
64    {
65       return this.panel;
66    }
67
68
69    /**
70     * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object
71     *
72     * @param bcs Description of Parameter
73     * @param serviceClass Description of Parameter
74     * @return The currentServiceSelectors value
75     */

76    public Iterator JavaDoc getCurrentServiceSelectors(BeanContextServices JavaDoc bcs, Class JavaDoc serviceClass)
77    {
78       return new Vector JavaDoc().iterator();
79    }
80
81
82    /**
83     * Gets the service attribute of the ApplicationServiceProvider object
84     *
85     * @param bcs Description of Parameter
86     * @param requestor Description of Parameter
87     * @param serviceClass Description of Parameter
88     * @param serviceSelector Description of Parameter
89     * @return The service value
90     */

91    public Object JavaDoc getService(BeanContextServices JavaDoc bcs, Object JavaDoc requestor, Class JavaDoc serviceClass, Object JavaDoc serviceSelector)
92    {
93       return service;
94    }
95
96
97    /**
98     * Description of the Method
99     *
100     * @param bcs Description of Parameter
101     * @param requestor Description of Parameter
102     * @param service Description of Parameter
103     */

104    public void releaseService(BeanContextServices JavaDoc bcs, Object JavaDoc requestor, Object JavaDoc service) { }
105
106
107    /**
108     * Description of the Method
109     *
110     * @param name Description of Parameter
111     */

112    public void removeZone(String JavaDoc name) { }
113
114
115    /**
116     * Sets the content attribute of the StatusBarServiceProvider object
117     *
118     * @param name The new content value
119     * @param text The new content value
120     */

121    public void setContent(String JavaDoc name, String JavaDoc text) { }
122
123
124    /**
125     * Sets the content attribute of the StatusBarServiceProvider object
126     *
127     * @param name The new content value
128     * @param icon The new content value
129     */

130    public void setContent(String JavaDoc name, Icon JavaDoc icon) { }
131
132
133    /**
134     * Sets the content attribute of the StatusBarServiceProvider object
135     *
136     * @param name The new content value
137     * @param text The new content value
138     * @param icon The new content value
139     */

140    public void setContent(String JavaDoc name, String JavaDoc text, Icon JavaDoc icon) { }
141
142
143    /**
144     * @return The serviceClass value
145     */

146    protected Class JavaDoc[] getServiceClass()
147    {
148       return new Class JavaDoc[]{StatusBarService.class};
149    }
150 }
151
152
Popular Tags