public class FieldBoundPropertyListener extends BoundPropertyAdapter
| Modifier and Type | Field and Description |
|---|---|
protected FieldInstance |
fieldInstance
Field instance
|
protected java.lang.String |
propertyName
Property name which we are bound to
|
| Constructor and Description |
|---|
FieldBoundPropertyListener(java.lang.Object instance,
java.lang.String fieldName)
Constructs a FieldBoundPropertyListener.
|
FieldBoundPropertyListener(java.lang.Object instance,
java.lang.String fieldName,
java.lang.String propertyName)
Constructs a FieldBoundPropertyListener.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
filterValue(java.lang.String value)
Filter the property value prior to coercing and binding to field.
|
java.lang.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(java.lang.String value)
Coerce and set specified value to field.
|
propertyUnboundpropertyRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpropertyRemovedprotected final java.lang.String propertyName
protected final FieldInstance fieldInstance
public FieldBoundPropertyListener(java.lang.Object instance,
java.lang.String fieldName,
java.lang.String propertyName)
instance - Instance object.fieldName - Field name.propertyName - Property to bind to.NullArgumentException - Property name is null.public FieldBoundPropertyListener(java.lang.Object instance,
java.lang.String fieldName)
Field name is used for property name.
instance - Instance object.fieldName - Field name.public final java.lang.String getPropertyName()
public java.lang.String filterValue(java.lang.String value)
Allows instance to filter values prior to object coercion and field binding.
value - Property value.protected void setFieldValue(java.lang.String value)
value - Field value.PropertyException - Failed to set field value.public void propertyAdded(PropertyEvent event)
propertyAdded in interface PropertyListenerpropertyAdded in class PropertyAdapterevent - Property event.public void propertyChanged(PropertyEvent event)
propertyChanged in interface PropertyListenerpropertyChanged in class PropertyAdapterevent - Property eventpublic void propertyBound(PropertyMap map)
propertyBound in interface BoundPropertyListenerpropertyBound in class BoundPropertyAdaptermap - PropertyMap which contains property bound to.