Package grails.databinding.events
Class DataBindingListenerAdapter
- java.lang.Object
-
- grails.databinding.events.DataBindingListenerAdapter
-
- All Implemented Interfaces:
DataBindingListener
public class DataBindingListenerAdapter extends java.lang.Object implements DataBindingListener
- Since:
- 3.0
- See Also:
DataBindingListener
-
-
Constructor Summary
Constructors Constructor Description DataBindingListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterBinding(java.lang.Object target, java.lang.Object errors)Called after data binding has finished.voidafterBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object errors)Called after data binding has been imposed on a propertyjava.lang.BooleanbeforeBinding(java.lang.Object target, java.lang.Object errors)Called when data binding is about to start.java.lang.BooleanbeforeBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object value, java.lang.Object errors)Called when data binding is about to imposed on a propertyvoidbindingError(BindingError error, java.lang.Object errors)Called when an error occurs binding to a propertybooleansupports(java.lang.Class<?> clazz)
-
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> clazz)
- Specified by:
supportsin interfaceDataBindingListener- Returns:
- true if the listener is interested in events for the specified type.
-
beforeBinding
public java.lang.Boolean beforeBinding(java.lang.Object target, java.lang.Object errors)Description copied from interface:DataBindingListenerCalled when data binding is about to start.- Specified by:
beforeBindingin interfaceDataBindingListener- Parameters:
target- The object data binding is being imposed uponerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- Returns:
- true if data binding should continue
-
beforeBinding
public java.lang.Boolean beforeBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object value, java.lang.Object errors)Description copied from interface:DataBindingListenerCalled when data binding is about to imposed on a property- Specified by:
beforeBindingin interfaceDataBindingListener- Parameters:
obj- The object data binding is being imposed uponpropertyName- The name of the property being bound tovalue- The value of the property being bounderrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- Returns:
- true if data binding should continue, otherwise return false
-
afterBinding
public void afterBinding(java.lang.Object obj, java.lang.String propertyName, java.lang.Object errors)Description copied from interface:DataBindingListenerCalled after data binding has been imposed on a property- Specified by:
afterBindingin interfaceDataBindingListener- Parameters:
obj- The object data binding is being imposed uponpropertyName- The name of the property that was bound toerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)
-
afterBinding
public void afterBinding(java.lang.Object target, java.lang.Object errors)Description copied from interface:DataBindingListenerCalled after data binding has finished.- Specified by:
afterBindingin interfaceDataBindingListener- Parameters:
target- The object data binding is being imposed uponerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)
-
bindingError
public void bindingError(BindingError error, java.lang.Object errors)
Description copied from interface:DataBindingListenerCalled when an error occurs binding to a property- Specified by:
bindingErrorin interfaceDataBindingListener- Parameters:
error- encapsulates information about the binding errorerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- See Also:
BindingError
-
-