Package com.vaadin.flow.data.binder
Class StatusChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.data.binder.StatusChangeEvent
- All Implemented Interfaces:
Serializable
Binder status change event.
The Binder
status is changed whenever any of the following happens:
- if any of its bound fields or selects have been changed
Binder.writeBean(Object)
orBinder.writeBeanIfValid(Object)
is calledBinder.readBean(Object)
is calledBinder.setBean(Object)
is calledBinder.removeBean()
is calledBinder.BindingBuilder.bind(ValueProvider, Setter)
is calledBinder.validate()
orBinder.Binding.validate()
is called
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionStatusChangeEvent
(Binder<?> binder, boolean hasValidationErrors) Create a new status change event for givenbinder
, storing information of whether the change that triggered this event caused validation errors. -
Method Summary
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
StatusChangeEvent
Create a new status change event for givenbinder
, storing information of whether the change that triggered this event caused validation errors.- Parameters:
binder
- the event source binderhasValidationErrors
- the validation status associated with this event
-
-
Method Details
-
hasValidationErrors
public boolean hasValidationErrors()Gets the associated validation status.- Returns:
true
if the change that triggered this event caused validation errors,false
otherwise
-
getSource
- Overrides:
getSource
in classEventObject
-
getBinder
Gets the binder.- Returns:
- the binder
-