public class DefaultValidationListener<U>
extends java.lang.Object
implements io.datafx.controller.flow.event.VetoableBeforeFlowActionHandler
| Constructor and Description |
|---|
DefaultValidationListener(ValidatorFX<U> validator,
java.lang.Class<?>... groups) |
DefaultValidationListener(io.datafx.controller.context.ViewContext<U> context,
java.lang.Class<?>... groups) |
| Modifier and Type | Method and Description |
|---|---|
ValidatorFX<U> |
getValidator() |
void |
handle(io.datafx.controller.flow.event.BeforeFlowActionEvent event) |
protected boolean |
validateOnAction(io.datafx.controller.flow.event.BeforeFlowActionEvent event) |
protected boolean |
vetoOnViolations(io.datafx.controller.flow.event.BeforeFlowActionEvent event,
java.util.Set<javax.validation.ConstraintViolation<U>> violations) |
public DefaultValidationListener(io.datafx.controller.context.ViewContext<U> context, java.lang.Class<?>... groups)
public DefaultValidationListener(ValidatorFX<U> validator, java.lang.Class<?>... groups)
public ValidatorFX<U> getValidator()
public void handle(io.datafx.controller.flow.event.BeforeFlowActionEvent event)
throws ViolationVeto
handle in interface io.datafx.controller.util.VetoableEventHandler<io.datafx.controller.flow.event.BeforeFlowActionEvent>ViolationVetoprotected boolean validateOnAction(io.datafx.controller.flow.event.BeforeFlowActionEvent event)
protected boolean vetoOnViolations(io.datafx.controller.flow.event.BeforeFlowActionEvent event,
java.util.Set<javax.validation.ConstraintViolation<U>> violations)