/** * Removes the given Binding from this Binder. * * @see Binder#removeBinding(HasValue) * @see com.vaadin.ui.AbstractComponent#setComponentError * @see com.vaadin.ui.AbstractComponent#setRequiredIndicatorVisible * * @param binding * the binding to remove * * @since 8.2 * * @throws IllegalArgumentException * if the given Binding is not in this Binder */ public void removeBinding(Binding<BEAN, ?> binding) throws IllegalArgumentException { Objects.requireNonNull(binding, "Binding can not be null"); if (!bindings.contains(binding)) { throw new IllegalArgumentException( "Provided Binding is not in this Binder"); } binding.unbind(); }