public void onCanceled(AjaxRequestTarget target) { this.onCanceled.execute(target, actionModel, source); } }
static <T> IBSAction<T> noopIfNull(IBSAction<T> action) { return (action != null) ? action : noop(); } }
public ConfirmationEventPayload( Component source, AjaxRequestTarget target, IModel<String> confirmationMessage, IModel<T> actionModel, IBSAction<T> onConfirmed, IBSAction<T> onCanceled) { this.source = source; this.target = target; this.confirmationMessage = confirmationMessage; this.actionModel = actionModel; this.onConfirmed = onConfirmed; this.onCanceled = IBSAction.noopIfNull(onCanceled); }
public ConfirmationEventPayload( Component source, AjaxRequestTarget target, IModel<String> confirmationMessage, IModel<T> actionModel, IBSAction<T> onConfirmed, IBSAction<T> onCanceled) { this.source = source; this.target = target; this.confirmationMessage = confirmationMessage; this.actionModel = actionModel; this.onConfirmed = onConfirmed; this.onCanceled = IBSAction.noopIfNull(onCanceled); }
public void onConfirmed(AjaxRequestTarget target) { this.onConfirmed.execute(target, actionModel, source); } public void onCanceled(AjaxRequestTarget target) {
static <T> IBSAction<T> noopIfNull(IBSAction<T> action) { return (action != null) ? action : noop(); } }
public void onCanceled(AjaxRequestTarget target) { this.onCanceled.execute(target, actionModel, source); } }
public void onConfirmed(AjaxRequestTarget target) { this.onConfirmed.execute(target, actionModel, source); } public void onCanceled(AjaxRequestTarget target) {
default void execute(AjaxRequestTarget target, IModel<T> model, Component component) { execute(target, model); }
default void execute(AjaxRequestTarget target, IModel<T> model, Component component) { execute(target, model); }