|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All InfoBusMembers are required to implement a constrained property called infoBus -- this interface guarantees the presence of that property. The InfoBus attempts to set it when a connection is requested by the Member, and the attempt may be vetoed if the property has already been set by a builder tool. An implementation of this interface is provided in the InfoBusMemberSupport class.
InfoBusMemberSupport
Method Summary | |
void |
addInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener that will be alerted whenever the InfoBusMember's setInfoBus method is called and not vetoed. |
void |
addInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
Adds a VetoableChangeListener to the list of listeners that will be alerted whenever the InfoBusMember's setInfoBus method is called. |
InfoBus |
getInfoBus()
Returns the InfoBus which is currently assigned to the InfoBusMember's InfoBus property. |
void |
removeInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the list of listeners requesting notification of an InfoBus change. |
void |
removeInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
Removes a VetoableChangeListener from the list of listeners that will be alerted whenever the InfoBusMember's setInfoBus method is called. |
void |
setInfoBus(InfoBus newInfoBus)
Sets the InfoBus object for this InfoBusMember, if not vetoed. |
Method Detail |
public void setInfoBus(InfoBus newInfoBus) throws java.beans.PropertyVetoException
Whenever this method is called, the InfoBusMember should create a PropertyChangeEvent and send it to all registered VetoableChangeListeners, which gives a third party an opportunity to reject the change and throw the PropertyVetoException.
When a setInfoBus is successful (not vetoed), the InfoBusMember must notify its PropertyChangeListeners of the new value and MUST call the register() method on the new InfoBus value to establish itself as a participant there.
newInfoBus
- the InfoBus which will be assigned to the InfoBus property
if the action is not vetoedpublic InfoBus getInfoBus()
public void addInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
vcl
- the VetoableChangeListener to be addedpublic void removeInfoBusVetoableListener(java.beans.VetoableChangeListener vcl)
vcl
- the VetoableChangeListener to be removedpublic void addInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
pcl
- the PropertyChangeListener to be alertedpublic void removeInfoBusPropertyListener(java.beans.PropertyChangeListener pcl)
pcl
- the PropertyChangeListener to be removed
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |