|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| StatusBarServiceProvider.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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;
|
|
| 10 |
import java.beans.beancontext.BeanContextServices;
|
|
| 11 |
import java.util.Iterator;
|
|
| 12 |
import java.util.Vector;
|
|
| 13 |
|
|
| 14 |
import javax.swing.Icon;
|
|
| 15 |
import javax.swing.JPanel;
|
|
| 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 panel = new JPanel(); |
|
| 30 |
/** Description of the Field */
|
|
| 31 |
private StatusBarService service = null; |
|
| 32 |
|
|
| 33 |
|
|
| 34 |
/** Constructor for the StatusBarServiceProvider object */
|
|
| 35 | 0 |
public StatusBarServiceProvider()
|
| 36 |
{
|
|
| 37 | 0 |
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 | 0 |
public void addZone(String 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 | 0 |
public void addZone(String name) { } |
| 56 |
|
|
| 57 |
|
|
| 58 |
/**
|
|
| 59 |
* Gets the container attribute of the StatusBarServiceProvider object
|
|
| 60 |
*
|
|
| 61 |
* @return The container value
|
|
| 62 |
*/
|
|
| 63 | 0 |
public Container getContainer()
|
| 64 |
{
|
|
| 65 | 0 |
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 | 0 |
public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
|
| 77 |
{
|
|
| 78 | 0 |
return new Vector().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 | 0 |
public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector)
|
| 92 |
{
|
|
| 93 | 0 |
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 | 0 |
public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } |
| 105 |
|
|
| 106 |
|
|
| 107 |
/**
|
|
| 108 |
* Description of the Method
|
|
| 109 |
*
|
|
| 110 |
* @param name Description of Parameter
|
|
| 111 |
*/
|
|
| 112 | 0 |
public void removeZone(String 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 | 0 |
public void setContent(String name, String 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 | 0 |
public void setContent(String name, Icon 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 | 0 |
public void setContent(String name, String text, Icon icon) { } |
| 141 |
|
|
| 142 |
|
|
| 143 |
/**
|
|
| 144 |
* @return The serviceClass value
|
|
| 145 |
*/
|
|
| 146 | 0 |
protected Class[] getServiceClass()
|
| 147 |
{
|
|
| 148 | 0 |
return new Class[]{StatusBarService.class}; |
| 149 |
} |
|
| 150 |
} |
|
| 151 |
|
|
| 152 |
|
|
||||||||||