Class HasClientValidation.ClientValidatedEvent

  • All Implemented Interfaces:
    Serializable
    Enclosing interface:
    HasClientValidation

    @DomEvent("validated")
    public static class HasClientValidation.ClientValidatedEvent
    extends com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
    An event fired by the web component whenever it is validated on the client-side.
    See Also:
    Serialized Form
    • Constructor Detail

      • ClientValidatedEvent

        public ClientValidatedEvent​(com.vaadin.flow.component.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 otherwise
        valid - 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.