@Override public BindingValidationStatus<TARGET> validate(boolean fireEvent) { Objects.requireNonNull(binder, "This Binding is no longer attached to a Binder"); BindingValidationStatus<TARGET> status = doValidation(); if (fireEvent) { getBinder().getValidationStatusHandler() .statusChange(new BinderValidationStatus<>(getBinder(), Arrays.asList(status), Collections.emptyList())); getBinder().fireStatusChangeEvent(status.isError()); } return status; }
/** * Handles the value change triggered by the bound field. * * @param event */ private void handleFieldValueChange( ValueChangeEvent<FIELDVALUE> event) { // Don't handle change events when setting initial value if (valueInit) { return; } if (binder != null) { // Inform binder of changes; if setBean: writeIfValid getBinder().handleFieldValueChange(this, event); getBinder().fireValueChangeEvent(event); } }