MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / HtmlLists

Class HtmlLists

flowifier/src/test/java/htmlflow/test/views/HtmlLists.java:33–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31import org.xmlet.htmlapifaster.*;
32
33public class HtmlLists {
34 public static final String DIV_CLASS = "divClass";
35 public static final String DIV_ID = "divId";
36
37 public static HtmlPage taskView (Appendable out) {
38 return HtmlFlow.doc(out)
39 .html()
40 .head()
41 .script()
42 .attrType(EnumTypeScriptType.TEXT_JAVASCRIPT)
43 .attrSrc("test.css")
44 .__() //script
45 .__() // head
46 .body()
47 .div()
48 .comment("A simple dummy comment")
49 .__() //div
50 .div()
51 .attrId(DIV_ID)
52 .attrClass(DIV_CLASS)
53 .addAttr("toto", "tutu")
54 .form()
55 .attrAction("/action.do")
56 .attrMethod(EnumMethodType.POST)
57 .attrEnctype(EnumEnctypeType.APPLICATION_X_WWW_FORM_URLENCODED)
58 .__() //form
59 .__() //div
60 .__() //body
61 .__(); //html
62 }
63
64 public static HtmlView viewDetails = HtmlFlow.view(view -> view
65 .html()
66 .head()
67 .title().text("Task Details").__()
68 .link()
69 .attrRel(EnumRelType.STYLESHEET)
70 .attrType(EnumTypeContentType.TEXT_CSS)
71 .attrHref("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css")
72 .__() //link
73 .__() //head
74 .body()
75 .attrClass("container")
76 .h1().text("Task Details").__()
77 .hr().__()
78 .div().text("Title: ISEL MPD project")
79 .br().__()
80 .text("Description: A Java library for serializing objects in HTML.")
81 .br().__()
82 .text("Priority: HIGH")
83 .__() //div
84 .__() //body
85 .__() //html
86 );
87 public static void taskDetailsTemplate(HtmlPage view) {
88 view
89 .html()
90 .head()

Callers

nothing calls this directly

Calls 5

viewMethod · 0.95
__Method · 0.80
divMethod · 0.80
headMethod · 0.80
htmlMethod · 0.45

Tested by

no test coverage detected