|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.infobus.InfoBusMemberSupport
Implements the methods of the InfoBusMember interface with the functionality specified by the InfoBus protocol. Encapsulates an InfoBus property, plus PropertyChangeSupport and VetoableChangeSupport objects to ensure the property is bound and constrained.
Methods documented here as "Internally Synchronized" contain internal synchronized blocks that lock on a common instance variable.
InfoBusMember
Constructor Summary | |
InfoBusMemberSupport()
The no-argument constructor is provided for subclasses which want to be Serializable. |
|
InfoBusMemberSupport(InfoBusMember member)
Creates a new InfoBusMemberSupport object. |
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 InfoBusMemberSupport's InfoBus property (null means that it is currently not a member of any bus). |
void |
joinInfoBus(java.awt.Component component)
Attempts to obtain a default bus and join it. |
void |
joinInfoBus(java.lang.String busName)
Attempts to obtain a named bus and join it. |
void |
leaveInfoBus()
Calls the leave method on the InfoBus to which this InfoBusMemberSupport is attached, effectively setting the InfoBus property to null. |
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)
Attempts to set the InfoBus property and register with the InfoBus. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public InfoBusMemberSupport(InfoBusMember member)
member
- used as the "source" of PropertyChangeEvents
issued by the InfoBusMemberSupport. If null, the InfoBusMemberSupport object
is used as the "source."public InfoBusMemberSupport()
new InfoBusMemberSupport(null)
Method Detail |
public void setInfoBus(InfoBus newInfoBus) throws java.beans.PropertyVetoException
Internally Synchronized.
newInfoBus
- the InfoBus that will be assigned to the InfoBus property
if the action is not vetoedpublic InfoBus getInfoBus()
public void joinInfoBus(java.lang.String busName) throws InfoBusMembershipException, java.beans.PropertyVetoException
Internally Synchronized.
busName
- the name of the bus that the InfoBusMemberSupport should
joinpublic void joinInfoBus(java.awt.Component component) throws InfoBusMembershipException, java.beans.PropertyVetoException
Internally Synchronized.
component
- the Component on which the default bus should be basedpublic void leaveInfoBus() throws InfoBusMembershipException, java.beans.PropertyVetoException
Internally Synchronized.
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 addedpublic 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 |