public ContextMenuEntry setOnClick(final String value) { this.onClick = value; link.add(AttributeModifier.prepend("onclick", value)); return this; } }
/** * Creates a attribute modifier that prepends the current value with the given {@code value} * using a default space character (' ') separator. * * @param attributeName * @param value * @return the attribute modifier * @since 1.5 * @see AttributeAppender */ public static AttributeAppender prepend(String attributeName, Serializable value) { Args.notEmpty(attributeName, "attributeName"); return prepend(attributeName, Model.of(value)); }
/** * Creates a attribute modifier that prepends the current value with the given {@code value} * using a default space character (' ') separator. * * @param attributeName * @param value * @return the attribute modifier * @since 1.5 * @see AttributeAppender */ public static AttributeAppender prepend(String attributeName, Serializable value) { Args.notEmpty(attributeName, "attributeName"); return prepend(attributeName, Model.of(value)); }
classNames = SingleButtonPanel.DELETE; if (entry.getId() != null) { button.add(AttributeModifier.prepend("onclick", "if (showDeleteQuestionDialog() == false) return false;"));