public static String deleteWidget(OpalForm<?> argOF, String argSize) { Validate.notNull(argOF); Validate.notEmpty(argSize); return "<div class=\"switch " + argSize + "\">" + argOF.delete() + argOF.label("Delete", "") + "</div>"; }
public static String switchWidget(OpalForm<?> argOF, String argFieldName, String argSize) { Validate.notNull(argOF); Validate.notEmpty(argFieldName); Validate.notEmpty(argSize); return "<div class=\"switch " + argSize + "\">" + argOF.checkbox(argFieldName) + "<label for=\"" + argOF.id(argFieldName) + "\"></label></div>"; }