/** * Creates an empty {@link Th} element. * * @return The new element. */ public static final Th th() { return new Th(); }
/** * {@doc HTML5.tabular-data#attr-th-abbr abbr} attribute. * * <p> * Alternative label to use for the header cell when referencing the cell in other contexts. * * @param abbr The new value for this attribute. * @return This object (for method chaining). */ public final Th abbr(String abbr) { attr("abbr", abbr); return this; }
/** * Creates a {@link Th} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Th th(Object...children) { return th().children(children); }
tableContainer.child(div(h4("Parameters")._class("title"))._class("op-block-section-header")); Table parameters = table(tr(th("Name")._class("parameter-key"), th("Description")._class("parameter-key")))._class("parameters"); tableContainer.child(div(h4("Responses")._class("title"))._class("op-block-section-header")); Table responses = table(tr(th("Code")._class("response-key"), th("Description")._class("response-key")))._class("responses"); tableContainer.child(responses);
@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 Th} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Th th(Object...children) { return th().children(children); }
tableContainer.child(div(h4("Parameters")._class("title"))._class("op-block-section-header")); Table parameters = table(tr(th("Name")._class("parameter-key"), th("Description")._class("parameter-key")))._class("parameters"); tableContainer.child(div(h4("Responses")._class("title"))._class("op-block-section-header")); Table responses = table(tr(th("Code")._class("response-key"), th("Description")._class("response-key")))._class("responses"); tableContainer.child(responses);
@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())) ) ) ) ); }
/** * {@doc HTML5.tabular-data#attr-th-sorted sorted} attribute. * * <p> * Column sort direction and ordinality. * * @param sorted The new value for this attribute. * @return This object (for method chaining). */ public final Th sorted(String sorted) { attr("sorted", sorted); return this; }
/** * Creates a {@link Th} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Th th(Object...children) { return th().children(children); }
/** * Creates an empty {@link Th} element. * * @return The new element. */ public static final Th th() { return new Th(); }
tableContainer.child(div(h4("Parameters")._class("title"))._class("op-block-section-header")); Table parameters = table(tr(th("Name")._class("parameter-key"), th("Description")._class("parameter-key")))._class("parameters"); tableContainer.child(div(h4("Responses")._class("title"))._class("op-block-section-header")); Table responses = table(tr(th("Code")._class("response-key"), th("Description")._class("response-key")))._class("responses"); tableContainer.child(responses);
/** * {@doc HTML5.tabular-data#attr-tdth-headers headers} attribute. * * <p> * The headers for this cell. * * @param headers The new value for this attribute. * @return This object (for method chaining). */ public final Th headers(String headers) { attr("headers", headers); return this; }
/** * Creates an empty {@link Th} element. * * @return The new element. */ public static final Th th() { return new Th(); }
/** * {@doc HTML5.tabular-data#attr-th-abbr abbr} attribute. * * <p> * Alternative label to use for the header cell when referencing the cell in other contexts. * * @param abbr The new value for this attribute. * @return This object (for method chaining). */ public final Th abbr(String abbr) { attr("abbr", abbr); return this; }
/** * {@doc HTML5.tabular-data#attr-th-sorted sorted} attribute. * * <p> * Column sort direction and ordinality. * * @param sorted The new value for this attribute. * @return This object (for method chaining). */ public final Th sorted(String sorted) { attr("sorted", sorted); return this; }
/** * {@doc HTML5.tabular-data#attr-tdth-headers headers} attribute. * * <p> * The headers for this cell. * * @param headers The new value for this attribute. * @return This object (for method chaining). */ public final Th headers(String headers) { attr("headers", headers); return this; }
/** * {@doc HTML5.tabular-data#attr-th-sorted sorted} attribute. * * <p> * Column sort direction and ordinality. * * @param sorted The new value for this attribute. * @return This object (for method chaining). */ public final Th sorted(String sorted) { attr("sorted", sorted); return this; }