Package com.vaadin.data
Class StatusChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.data.StatusChangeEvent
-
- All Implemented Interfaces:
Serializable
public class StatusChangeEvent extends EventObject
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:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
StatusChangeListener.statusChange(StatusChangeEvent)
,Binder.addStatusChangeListener(StatusChangeListener)
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description StatusChangeEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Binder<?>
getBinder()
Gets the binder.Binder<?>
getSource()
boolean
hasValidationErrors()
Gets the associated validation status.-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
StatusChangeEvent
public StatusChangeEvent(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.- Parameters:
binder
- the event source binderhasValidationErrors
- the validation status associated with this event
-
-
Method Detail
-
hasValidationErrors
public boolean hasValidationErrors()
Gets the associated validation status.- Returns:
true
if the change that triggered this event caused validation errors,false
otherwise
-
getSource
public Binder<?> getSource()
- Overrides:
getSource
in classEventObject
-
getBinder
public Binder<?> getBinder()
Gets the binder.- Returns:
- the binder
-
-