|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.property.PropertyAdapter org.jboss.util.property.BoundPropertyAdapter org.jboss.util.property.FieldBoundPropertyListener
Binds property values to class fields.
Field Summary | |
protected FieldInstance |
fieldInstance
Field instance |
protected String |
propertyName
Property name which we are bound to |
Constructor Summary | |
FieldBoundPropertyListener(Object instance,
String fieldName)
Constructs a FieldBoundPropertyListener. |
|
FieldBoundPropertyListener(Object instance,
String fieldName,
String propertyName)
Constructs a FieldBoundPropertyListener. |
Method Summary | |
String |
filterValue(String value)
Filter the property value prior to coercing and binding to field. |
String |
getPropertyName()
Get the property name which this listener is bound to. |
void |
propertyAdded(PropertyEvent event)
Notifies that a property has been added. |
void |
propertyBound(PropertyMap map)
Notifies that this listener was bound to a property. |
void |
propertyChanged(PropertyEvent event)
Notifies that a property has changed |
protected void |
setFieldValue(String value)
Coerce and set specified value to field. |
Methods inherited from class org.jboss.util.property.BoundPropertyAdapter |
propertyUnbound |
Methods inherited from class org.jboss.util.property.PropertyAdapter |
propertyRemoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.util.property.PropertyListener |
propertyRemoved |
Field Detail |
protected final String propertyName
protected final FieldInstance fieldInstance
Constructor Detail |
public FieldBoundPropertyListener(Object instance, String fieldName, String propertyName)
instance
- Instance object.fieldName
- Field name.propertyName
- Property to bind to.
NullArgumentException
- Property name is null.public FieldBoundPropertyListener(Object instance, String fieldName)
Field name is used for property name.
instance
- Instance object.fieldName
- Field name.Method Detail |
public final String getPropertyName()
public String filterValue(String value)
Allows instance to filter values prior to object coercion and field binding.
value
- Property value.protected void setFieldValue(String value)
value
- Field value.
PropertyException
- Failed to set field value.public void propertyAdded(PropertyEvent event)
propertyAdded
in interface PropertyListener
propertyAdded
in class PropertyAdapter
event
- Property event.public void propertyChanged(PropertyEvent event)
propertyChanged
in interface PropertyListener
propertyChanged
in class PropertyAdapter
event
- Property eventpublic void propertyBound(PropertyMap map)
propertyBound
in interface BoundPropertyListener
propertyBound
in class BoundPropertyAdapter
map
- PropertyMap which contains property bound to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |