/** * 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); }
/** * 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())) ) ) ) ); }
@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())) ) ) ) ); }
tr( td().colspan(5).children( textarea().name("sql").text(sql == null ? " " : sql).style("width:100%;height:200px;font-family:Courier;font-size:9pt;").onkeydown("checkTab(event)")
tr( td().colspan(5).children( textarea().name("sql").text(sql == null ? " " : sql).style("width:100%;height:200px;font-family:Courier;font-size:9pt;").onkeydown("checkTab(event)")
"Textarea", Textarea.class, textarea("foo", "bar"),