@@ -0,0 +1,1326 @@
+package de.alpharogroup.wicket.behaviors.models;%0A%0Aimport java.io.Serializable;%0A%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Builder;%0Aimport lombok.EqualsAndHashCode;%0Aimport lombok.Getter;%0Aimport lombok.NoArgsConstructor;%0Aimport lombok.NonNull;%0Aimport lombok.Setter;%0Aimport lombok.ToString;%0A%0A/**%0A * The class %7B@link MailtoBean%7D holds the values for build the content of a%0A * mailto in a href attribute from an 'a' link tag.%0A */%0A@Getter%0A@Setter%0A@EqualsAndHashCode%0A@ToString%0A@NoArgsConstructor%0A@AllArgsConstructor%0A@Builder(toBuilder = true)%0Apublic class MailtoBean implements Serializable %7B%0A%09private static final long serialVersionUID = 1L;%0A%0A%09/** The email. */%0A%09@NonNull%0A%09private String email;%0A%0A%09/** The subject. */%0A%09private String subject;%0A%0A%09/** The body. */%0A%09private String body;%0A%0A%09/**%0A%09 * Builds the mailto content.%0A%09 *%0A%09 * @return the result of this bean as a %7B@link String%7D object.%0A%09 */%0A%09public String buildMailtoContent() %7B%0A%09%09StringBuilder sb = new StringBuilder();%0A%09%09sb.append(email);%0A%09%09if (StringUtils.isNotEmpty(subject)) %7B%0A%09%09%09sb.append(%22?%22).append(%22subject%22).append(%22=%22).append(subject);%0A%09%09%7D%0A%09%09if (StringUtils.isNotEmpty(body)) %7B%0A%09%09%09sb.append(StringUtils.isNotEmpty(subject) ? %22&%22 : %22?%22).append(%22body%22).append(%22=%22).append(body);%0A%09%09%7D%0A%09%09return sb.toString().trim();%0A%09%7D%0A%7D%0A

Create MailtoBean.java