1 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 26 public class StatusBarServiceProvider extends CustomBeanContextServiceProvider implements StatusBarService 27 { 28 29 private JPanel panel = new JPanel (); 30 31 private StatusBarService service = null; 32 33 34 35 public StatusBarServiceProvider() 36 { 37 service = this; 38 } 39 40 41 47 public void addZone(String name, int alignement) { } 48 49 50 55 public void addZone(String name) { } 56 57 58 63 public Container getContainer() 64 { 65 return this.panel; 66 } 67 68 69 76 public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass) 77 { 78 return new Vector ().iterator(); 79 } 80 81 82 91 public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) 92 { 93 return service; 94 } 95 96 97 104 public void releaseService(BeanContextServices bcs, Object requestor, Object service) { } 105 106 107 112 public void removeZone(String name) { } 113 114 115 121 public void setContent(String name, String text) { } 122 123 124 130 public void setContent(String name, Icon icon) { } 131 132 133 140 public void setContent(String name, String text, Icon icon) { } 141 142 143 146 protected Class [] getServiceClass() 147 { 148 return new Class []{StatusBarService.class}; 149 } 150 } 151 152 | Popular Tags |