public String iconClass() { if (iconClass == null && iconProcessor != null) { return iconProcessor.apply(this, model); } return iconClass; }
@Override protected void buildHeading(BSContainer<?> heading, Form<?> form) { buildHeading.accept(heading, form); } @Override
public String iconClass() { if (iconClass == null && iconProcessor != null) { return iconProcessor.apply(model); } return iconClass; } public IModel<SInstance> getModel() {
@Override protected T load() { return supplier.get(); } };
@Override public void onComponentTag(Component component, ComponentTag tag) { IBiConsumer.noopIfNull(onComponentTag).accept(component, tag); } };
@Override public boolean isVisible() { return visibilityFunction == null || visibilityFunction.test(this); } }
@Override public IAjaxUpdateConfiguration<Component> setOnError(ITriConsumer<AjaxRequestTarget, Component, RuntimeException> onError) { this.onError = ITriConsumer.noopIfNull(onError); return this; }
@Override public IAjaxUpdateConfiguration<Component> setUpdateAjaxAttributes(IBiConsumer<Component, AjaxRequestAttributes> updateAjaxAttributes) { this.updateAjaxAttributes = IBiConsumer.noopIfNull(updateAjaxAttributes); return this; } @Override
static ISValidationFeedbackHandlerListener withTarget(IConsumer<AjaxRequestTarget> withTarget) { return (ISValidationFeedbackHandlerListener) (handler, target, container, baseInstances, oldErrors, newErrors) -> { if (target != null) { withTarget.accept(target); } }; } }
@Override public boolean isEnabled(Component component) { return isEnabled.apply(component); } };
@Override protected T load() { return supplier.get(); } };
@Override protected void buildContent(BSContainer<?> content, Form<?> form) { buildContent.accept(content, form); } };
@Override public IAjaxUpdateConfiguration<Component> setOnError(ITriConsumer<AjaxRequestTarget, Component, RuntimeException> onError) { this.onError = ITriConsumer.noopIfNull(onError); return this; } @Override
@Override public IAjaxUpdateConfiguration<Component> setUpdateAjaxAttributes(IBiConsumer<Component, AjaxRequestAttributes> updateAjaxAttributes) { this.updateAjaxAttributes = IBiConsumer.noopIfNull(updateAjaxAttributes); return this; } @Override
static ISValidationFeedbackHandlerListener withTarget(IConsumer<AjaxRequestTarget> withTarget) { return (ISValidationFeedbackHandlerListener) (handler, target, container, baseInstances, oldErrors, newErrors) -> { if (target != null) { withTarget.accept(target); } }; } }
@Override public boolean isEnabled(Component component) { return isEnabled.apply(component); } };
@Override protected T load() { return supplier.get(); } };
@Override protected void buildContent(BSContainer<?> content, Form<?> form) { buildContent.accept(content, form); } @Override
@Override public void setObject(T object) { setter.accept(object); } @Override