Groovy Documentation

org.grails.databinding.events
[Java] Interface DataBindingListener


public interface DataBindingListener

A listener which will be notified of events generated during data binding

Authors:
Jeff Brown
Since:
2.3


Method Summary
void afterBinding(java.lang.Object obj, java.lang.String propertyName)

Called after data binding has been imposed on a property

java.lang.Boolean beforeBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object value)

Called when data binding is about to imposed on a property

void bindingError(BindingError error)

Called when an error occurs binding to a property

 

Method Detail

afterBinding

public void afterBinding(java.lang.Object obj, java.lang.String propertyName)
Called after data binding has been imposed on a property
Parameters:
obj - The object data binding is being imposed upon
propertyName - The name of the property that was bound to


beforeBinding

public java.lang.Boolean beforeBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object value)
Called when data binding is about to imposed on a property
Parameters:
obj - The object data binding is being imposed upon
propertyName - The name of the property being bound to
value - The value of the property being bound
Returns:
true if data binding should continue, otherwise return false


bindingError

public void bindingError(BindingError error)
Called when an error occurs binding to a property
Parameters:
error - encapsulates information about the binding error
See Also:
BindingError


 

Groovy Documentation