Package org.jboss.util.property
Interface BoundPropertyListener
-
- All Superinterfaces:
java.util.EventListener
,PropertyListener
- All Known Implementing Classes:
BoundPropertyAdapter
,FieldBoundPropertyListener
,MethodBoundPropertyListener
public interface BoundPropertyListener extends PropertyListener
The listener interface for receiving bound property events (as well as property events).Classes that are interested in processing a bound property event implement this interface, and register instance objects with a given
PropertyMap
or viaPropertyManager.addPropertyListener(PropertyListener)
.Note that this is not the typical listener interface, as it extends from
PropertyListener
, and definesgetPropertyName()
which is not an event triggered method. This method serves to instruct thePropertyMap
the listener is registered with, which property it will bind to.- Version:
- $Revision$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPropertyName()
Get the property name which this listener is bound to.void
propertyBound(PropertyMap map)
Notifies that this listener was bound to a property.void
propertyUnbound(PropertyMap map)
Notifies that this listener was unbound from a property.-
Methods inherited from interface org.jboss.util.property.PropertyListener
propertyAdded, propertyChanged, propertyRemoved
-
-
-
-
Method Detail
-
getPropertyName
java.lang.String getPropertyName()
Get the property name which this listener is bound to.- Returns:
- Property name.
-
propertyBound
void propertyBound(PropertyMap map)
Notifies that this listener was bound to a property.- Parameters:
map
- PropertyMap which contains property bound to.
-
propertyUnbound
void propertyUnbound(PropertyMap map)
Notifies that this listener was unbound from a property.- Parameters:
map
- PropertyMap which contains property bound to.
-
-