/** * Sets the {@code accept} attribute. * * @param accept the {@code accept} attribute */ public void setAccept(final String accept) { setAttribute(HttpHeader.ACCEPT_LC, accept); }
/** * Sets the {@code accept} attribute. * * @param accept the {@code accept} attribute */ public void setAccept(final String accept) { setAttribute(HttpHeader.ACCEPT_LC, accept); }
/** * Sets the {@code placeholder} attribute. * * @param placeholder the {@code placeholder} attribute */ public void setPlaceholder(final String placeholder) { setAttribute("placeholder", placeholder); }
/** * Sets the {@code size} attribute. * * @param size the {@code size} attribute */ public void setSize(final String size) { setAttribute("size", size); }
/** * Sets the {@code size} attribute. * * @param size the {@code size} attribute */ public void setSize(final String size) { setAttribute("size", size); }
/** * Sets the {@code autocomplete} attribute. * * @param autocomplete the {@code autocomplete} attribute */ public void setAutocomplete(final String autocomplete) { setAttribute("autocomplete", autocomplete); }
/** * Sets the {@code autocomplete} attribute. * * @param autocomplete the {@code autocomplete} attribute */ public void setAutocomplete(final String autocomplete) { setAttribute("autocomplete", autocomplete); }
/** * Sets the {@code maxLength} attribute. * * @param maxLength the {@code maxLength} attribute */ public void setMaxLength(final int maxLength) { setAttribute("maxLength", String.valueOf(maxLength)); }
/** * Sets the {@code maxLength} attribute. * * @param maxLength the {@code maxLength} attribute */ public void setMaxLength(final int maxLength) { setAttribute("maxLength", String.valueOf(maxLength)); }
/** * Sets the {@code minLength} attribute. * * @param minLength the {@code minLength} attribute */ public void setMinLength(final int minLength) { setAttribute("minLength", String.valueOf(minLength)); }
/** * Sets the {@code width} property. * @param width the {@code width} property */ @JsxSetter public void setWidth(final int width) { getDomNodeOrDie().setAttribute("width", Integer.toString(width)); }
/** * Sets the {@code height} property. * @param height the {@code height} property */ @JsxSetter public void setHeight(final int height) { getDomNodeOrDie().setAttribute("height", Integer.toString(height)); }
/** * Sets the {@code border} attribute. * @param border the {@code border} attribute */ @JsxSetter(IE) public void setBorder(final String border) { getDomNodeOrDie().setAttribute("border", border); }
/** * Sets the {@code border} attribute. * @param border the {@code border} attribute */ @JsxSetter(IE) public void setBorder(final String border) { getDomNodeOrDie().setAttribute("border", border); }
/** * Sets the {@code min} property. * @param min the {@code min} property */ @JsxSetter public void setMin(final String min) { getDomNodeOrDie().setAttribute("min", min); }
/** * Sets the {@code max} property. * @param max the {@code max} property */ @JsxSetter public void setMax(final String max) { getDomNodeOrDie().setAttribute("max", max); }
/** * Returns the value of the {@code alt} property. * @param alt the value */ @JsxSetter public void setAlt(final String alt) { getDomNodeOrDie().setAttribute("alt", alt); }
/** * Sets the content of the "value" attribute, executing onchange handlers if appropriate. * This method returns the page contained by this element's window after the value is set, * which may or may not be the same as the original page. * @param newValue the new content * @return the page contained by this element's window after the value is set */ public Page setValueAttribute(final String newValue) { WebAssert.notNull("newValue", newValue); setAttribute("value", newValue); return executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the content of the "value" attribute, executing onchange handlers if appropriate. * This method returns the page contained by this element's window after the value is set, * which may or may not be the same as the original page. * @param newValue the new content * @return the page contained by this element's window after the value is set */ public Page setValueAttribute(final String newValue) { WebAssert.notNull("newValue", newValue); setAttribute("value", newValue); return executeOnChangeHandlerIfAppropriate(this); }
/** * Returns the value of the {@code alt} property. * @param alt the value */ @JsxSetter public void setAlt(final String alt) { getDomNodeOrDie().setAttribute("alt", alt); }