We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.shared.
Class HasClientValidation.ClientValidatedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Component>
-
- com.vaadin.flow.component.shared.HasClientValidation.ClientValidatedEvent
-
All Implemented Interfaces:
Enclosing interface:
@DomEvent("validated") public static class HasClientValidation.ClientValidatedEvent extends ComponentEvent<Component>
An event fired by the web component whenever it is validated on the client-side.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ClientValidatedEvent​(Component source, boolean fromClient, boolean valid)
Creates a new event using the given source.
-
Method Summary
All Methods Modifier and Type Method Description Boolean
isValid()
Returns true if the client-side validation succeeded and false otherwise.
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ClientValidatedEvent
public ClientValidatedEvent​(Component source, boolean fromClient, @EventData("event.detail.valid") boolean valid)
Creates a new event using the given source.
Parameters:
source
- the source component.fromClient
-true
if the event originated from the client side,false
otherwisevalid
- whether the client-side validation succeeded.
-
-
Method Detail
-
isValid
public Boolean isValid()
Returns true if the client-side validation succeeded and false otherwise.
Returns:
whether the client-side validation succeeded.
-
-