/** * Sets this input as required in the form * * @return */ @SuppressWarnings("unchecked") public J setRequired() { addAttribute("required", StaticStrings.STRING_EMPTY); return (J) this; }
/** * Sets this input as required in the form * * @return */ @SuppressWarnings("unchecked") public J setRequired() { addAttribute("required", StaticStrings.STRING_EMPTY); return (J) this; }
/** * Sets this input as required in the form * * @return */ @SuppressWarnings("unchecked") public J setRequired() { addAttribute("required", StaticStrings.STRING_EMPTY); return (J) this; }
/** * Sets the value attribute * * @param value * * @return */ @SuppressWarnings("unchecked") public J setValue(String value) { addAttribute("value", value); return (J) this; }
/** * Sets the place holder for this input * * @param placeholder * * @return */ @SuppressWarnings("unchecked") public J setPlaceholder(String placeholder) { addAttribute("placeholder", placeholder); return (J) this; }
/** * Sets the value attribute * * @param value * * @return */ @SuppressWarnings("unchecked") public J setValue(String value) { addAttribute("value", value); return (J) this; }
/** * Sets the pattern for this input object if required * * @param angularPatternName * * @return */ @SuppressWarnings("unchecked") public J setPattern(String angularPatternName) { addAttribute(AngularAttributes.ngPattern, angularPatternName); return (J) this; }
/** * Sets the place holder for this input * * @param placeholder * * @return */ @SuppressWarnings("unchecked") public J setPlaceholder(String placeholder) { addAttribute("placeholder", placeholder); return (J) this; }
/** * Sets the pattern for this input object if required * * @param angularPatternName * * @return */ @SuppressWarnings("unchecked") public J setPattern(String angularPatternName) { addAttribute(AngularAttributes.ngPattern, angularPatternName); return (J) this; }
/** * Sets the value attribute * * @param value * * @return */ @SuppressWarnings("unchecked") public J setValue(String value) { addAttribute("value", value); return (J) this; }
/** * Sets the pattern for this input object if required * * @param angularPatternName * * @return */ @SuppressWarnings("unchecked") public J setPattern(String angularPatternName) { addAttribute(AngularAttributes.ngPattern, angularPatternName); return (J) this; }
/** * Sets the place holder for this input * * @param placeholder * * @return */ @SuppressWarnings("unchecked") public J setPlaceholder(String placeholder) { addAttribute("placeholder", placeholder); return (J) this; }
/** * Sets the minimum length of this input * * @param minLength * * @return */ @SuppressWarnings("unchecked") public J setMinimumLength(int minLength) { addAttribute("data-minlength", Integer.toString(minLength)); addAttribute("minlength", Integer.toString(minLength)); return (J) this; }
/** * Sets the minimum length of this input * * @param minLength * * @return */ @SuppressWarnings("unchecked") public J setMaximumLength(int minLength) { addAttribute("data-maxlength", Integer.toString(minLength)); addAttribute("maxlength", Integer.toString(minLength)); return (J) this; }
/** * Sets the minimum length of this input * * @param minLength * * @return */ @SuppressWarnings("unchecked") public J setMaximumLength(int minLength) { addAttribute("data-maxlength", Integer.toString(minLength)); addAttribute("maxlength", Integer.toString(minLength)); return (J) this; }
/** * Sets the minimum length of this input * * @param minLength * * @return */ @SuppressWarnings("unchecked") public J setMinimumLength(int minLength) { addAttribute("data-minlength", Integer.toString(minLength)); addAttribute("minlength", Integer.toString(minLength)); return (J) this; }
@Override @NotNull public J setID(String id) { addAttribute(GlobalAttributes.Name, id); return super.setID(id); }
@Override @NotNull public J setID(String id) { addAttribute(GlobalAttributes.Name, id); return super.setID(id); }
@Override @NotNull public J setID(String id) { addAttribute(GlobalAttributes.Name, id); return super.setID(id); }
private void configureForInput(Input input, String bindingValue) { AngularPageConfigurator.setRequired(true); if (bindingValue != null) { input.addAttribute(AngularAttributes.ngModel, bindingValue); } else { input.removeAttribute(AngularAttributes.ngModel.toString()); } } }