sun.beanbox
Class IBSupport

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

public class IBSupport
extends java.lang.Object
implements java.beans.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 Summary
protected  void add(javax.infobus.InfoBusMember m)
           
 java.awt.Component getInfoBusInfoView()
          Gets a java.awt.Component displaying information on all available InfoBus's.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Called when a registered InfoBusMember's InfoBus property changes.
 void register(javax.infobus.InfoBusMember m)
          Registers an InfoBusMember with this IBSupport.
protected  void remove(javax.infobus.InfoBusMember m, java.lang.String ibName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInfoBusInfoView

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

register

public void register(javax.infobus.InfoBusMember m)
Registers an InfoBusMember with this IBSupport. IBSupport adds itself as a PropertyChangeListener on the members' InfoBus property.

propertyChange

public void propertyChange(java.beans.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.
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

add

protected void add(javax.infobus.InfoBusMember m)

remove

protected void remove(javax.infobus.InfoBusMember m,
                      java.lang.String ibName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object