public class StatusChangeEvent extends EventObject
The Binder
status is changed whenever any of the following happens:
Binder.writeBean(Object)
or
Binder.writeBeanIfValid(Object)
is called
Binder.readBean(Object)
is called
Binder.setBean(Object)
is called
Binder.removeBean()
is called
Binder.BindingBuilder.bind(ValueProvider, Setter)
is called
Binder.validate()
or Binder.Binding.validate()
is called
StatusChangeListener.statusChange(StatusChangeEvent)
,
Binder.addStatusChangeListener(StatusChangeListener)
,
Serialized Formsource
Constructor and Description |
---|
StatusChangeEvent(Binder<?> binder,
boolean hasValidationErrors)
Create a new status change event for given
binder , storing
information of whether the change that triggered this event caused
validation errors. |
Modifier and Type | Method and Description |
---|---|
Binder<?> |
getBinder()
Gets the binder.
|
Binder<?> |
getSource() |
boolean |
hasValidationErrors()
Gets the associated validation status.
|
toString
public StatusChangeEvent(Binder<?> binder, boolean hasValidationErrors)
binder
, storing
information of whether the change that triggered this event caused
validation errors.binder
- the event source binderhasValidationErrors
- the validation status associated with this eventpublic boolean hasValidationErrors()
true
if the change that triggered this event caused
validation errors, false
otherwisepublic Binder<?> getSource()
getSource
in class EventObject
public Binder<?> getBinder()
Copyright © 2023. All rights reserved.