All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.beanbox.IBSupport

java.lang.Object
   |
   +----sun.beanbox.IBSupport

public class IBSupport
extends Object
implements PropertyChangeListener
The BeanBox interacts with IBSupport to provide a simplistic example of supporting InfoBus aware Beans. When the BeanBox imports a bean implementing InfoBusMember it registers that bean with IBSupport by calling IBSupport.register.


Method Index

 o add(InfoBusMember)
 o getInfoBusInfoView()
Gets a java.awt.Component displaying information on all available InfoBus's.
 o propertyChange(PropertyChangeEvent)
Called when a registered InfoBusMember's InfoBus property changes.
 o register(InfoBusMember)
Registers an InfoBusMember with this IBSupport.
 o remove(InfoBusMember, String)
 o toString()

Methods

 o getInfoBusInfoView
 public Component getInfoBusInfoView()
Gets a java.awt.Component displaying information on all available InfoBus's.

Returns:
an java.awt.Component
 o register
 public void register(InfoBusMember m)
Registers an InfoBusMember with this IBSupport. IBSupport adds itself as a PropertyChangeListener on the members' InfoBus property.

 o propertyChange
 public void propertyChange(PropertyChangeEvent evt)
Called when a registered InfoBusMember's InfoBus property changes. The member is disassociated with its old InfoBus and associated with a new InfoBus corresponding to its new InfoBus property value. If the old value is null, we simply associate the member to the new bus. If the new value is null, the member is still registered, but no longer associated with any InfoBus.

 o add
 protected void add(InfoBusMember m)
 o remove
 protected void remove(InfoBusMember m,
                       String ibName)
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index