/** * Creates an empty {@link Textarea} element. * * @return The new element. */ public static final Textarea textarea() { return new Textarea(); }
/** * {@doc HTML5.forms#inputmode inputmode} attribute. * * <p> * Hint for selecting an input modality. * * @param inputmode The new value for this attribute. * @return This object (for method chaining). */ public final Textarea inputmode(String inputmode) { attr("inputmode", inputmode); return this; }
/** * {@doc HTML5.forms#attr-fe-disabled disabled} attribute. * * <p> * Whether the form control is disabled. * * @param disabled * The new value for this attribute. * Typically a {@link Boolean} or {@link String}. * @return This object (for method chaining). */ public final Textarea disabled(Object disabled) { attr("disabled", deminimize(disabled, "disabled")); return this; }
@RestMethod( name=GET, path="/edit", summary="Render form entry page for editing config file", description="Renders a form entry page for editing the raw text of a config file." ) public Form getConfigEditForm() { return form().id("form").action("servlet:/").method("POST").enctype("application/x-www-form-urlencoded").children( div()._class("data").children( table( tr(td().style("text-align:right").children(button("submit","Submit"),button("reset","Reset"))), tr(th().child("Contents")), tr(th().child( textarea().name("contents").rows(40).cols(120).style("white-space:pre;word-wrap:normal;overflow-x:scroll;font-family:monospace;") .text(getServletConfig().getConfig().toString())) ) ) ) ); }
/** * Creates a {@link Textarea} element with the specified {@link Textarea#name(String)} attribute and * {@link Textarea#text(Object)} node. * * @param name The {@link Textarea#name(String)} attribute. * @param text The {@link Textarea#text(Object)} node. * @return The new element. */ public static final Textarea textarea(String name, String text) { return textarea().name(name).text(text); }
@RestMethod( name=GET, path="/edit", summary="Render form entry page for editing config file", description="Renders a form entry page for editing the raw text of a config file." ) public Form getConfigEditForm() { return form().id("form").action("servlet:/").method("POST").enctype("application/x-www-form-urlencoded").children( div()._class("data").children( table( tr(td().style("text-align:right").children(button("submit","Submit"),button("reset","Reset"))), tr(th().child("Contents")), tr(th().child( textarea().name("contents").rows(40).cols(120).style("white-space:pre;word-wrap:normal;overflow-x:scroll;font-family:monospace;") .text(getServletConfig().getConfig().toString())) ) ) ) ); }
/** * Creates a {@link Textarea} element with the specified {@link Textarea#name(String)} attribute and * {@link Textarea#text(Object)} node. * * @param name The {@link Textarea#name(String)} attribute. * @param text The {@link Textarea#text(Object)} node. * @return The new element. */ public static final Textarea textarea(String name, String text) { return textarea().name(name).text(text); }
/** * Creates a {@link Textarea} element with the specified {@link Textarea#name(String)} attribute and * {@link Textarea#text(Object)} node. * * @param name The {@link Textarea#name(String)} attribute. * @param text The {@link Textarea#text(Object)} node. * @return The new element. */ public static final Textarea textarea(String name, String text) { return textarea().name(name).text(text); }
/** * {@doc HTML5.forms#attr-fe-name name} attribute. * * <p> * Name of form control to use for form submission and in the form.elements API. * * @param name The new value for this attribute. * @return This object (for method chaining). */ public final Textarea name(String name) { attr("name", name); return this; }
/** * {@doc HTML5.forms#attr-fe-disabled disabled} attribute. * * <p> * Whether the form control is disabled. * * @param disabled * The new value for this attribute. * Typically a {@link Boolean} or {@link String}. * @return This object (for method chaining). */ public final Textarea disabled(Object disabled) { attr("disabled", deminimize(disabled, "disabled")); return this; }
/** * Creates an empty {@link Textarea} element. * * @return The new element. */ public static final Textarea textarea() { return new Textarea(); }
/** * {@doc HTML5.forms#attr-textarea-wrap wrap} attribute. * * <p> * How the value of the form control is to be wrapped for form submission. * * @param wrap The new value for this attribute. * @return This object (for method chaining). */ public final Textarea wrap(String wrap) { attr("wrap", wrap); return this; }
/** * {@doc HTML5.forms#attr-fe-disabled disabled} attribute. * * <p> * Whether the form control is disabled. * * @param disabled * The new value for this attribute. * Typically a {@link Boolean} or {@link String}. * @return This object (for method chaining). */ public final Textarea disabled(Object disabled) { attr("disabled", deminimize(disabled, "disabled")); return this; }
/** * Creates an empty {@link Textarea} element. * * @return The new element. */ public static final Textarea textarea() { return new Textarea(); }
/** * {@doc HTML5.forms#attr-fe-dirname dirname} attribute. * * <p> * Name of form field to use for sending the element's directionality in form submission. * * @param dirname The new value for this attribute. * @return This object (for method chaining). */ public final Textarea dirname(String dirname) { attr("dirname", dirname); return this; }
/** * {@doc HTML5.forms#attr-fe-name name} attribute. * * <p> * Name of form control to use for form submission and in the form.elements API. * * @param name The new value for this attribute. * @return This object (for method chaining). */ public final Textarea name(String name) { attr("name", name); return this; }
/** * {@doc HTML5.forms#attr-textarea-wrap wrap} attribute. * * <p> * How the value of the form control is to be wrapped for form submission. * * @param wrap The new value for this attribute. * @return This object (for method chaining). */ public final Textarea wrap(String wrap) { attr("wrap", wrap); return this; }
/** * {@doc HTML5.forms#attr-fe-autocomplete autocomplete} attribute. * * <p> * Hint for form auto-fill feature. * * @param autocomplete The new value for this attribute. * @return This object (for method chaining). */ public final Textarea autocomplete(String autocomplete) { attr("autocomplete", autocomplete); return this; }