Package com.github.t1.bulmajava.basic
Class Html
- All Implemented Interfaces:
Renderable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.t1.bulmajava.basic.Renderable
Renderable.ConcatenatedRenderable, Renderable.Indented, Renderable.RenderableString, Renderable.UnsafeString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody(Renderable content) body(Function<AbstractElement<?>, AbstractElement<?>> function) content(Renderable content) head(Renderable content) head(Function<AbstractElement<?>, AbstractElement<?>> function) static HtmlIt generally makes sense to give the html head a title; if you really don't want it, passnull.javaScript(String src) javaScriptCode(String code) Add ascriptheader element withtype="application/javascript, and the script code you provide indented to the current level.voidstylesheet(String href) Methods inherited from class com.github.t1.bulmajava.basic.AbstractElement
ariaHidden, ariaHidden, ariaLabel, attr, attr, classes, close, content, content, content, content, content, content, contentAs, contentIsA, dataValue, disabled, findElement, findElement, firstContent, getOrCreate, getOrCreate, hasAttribute, hasBackground, hasClass, hasName, hasText, id, is, is, isPulledLeft, isPulledRight, map, notClasses, notClasses, rendersOnSeparateLines, self, style, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.t1.bulmajava.basic.Renderable
find, find, render, rendersOnSeparateLines
-
Constructor Details
-
Html
-
-
Method Details
-
html
It generally makes sense to give the html head a title; if you really don't want it, passnull. -
meta
-
metaName
-
meta
-
title
-
stylesheet
-
script
-
script
-
javaScript
-
javaScriptCode
Add ascriptheader element withtype="application/javascript, and the script code you provide indented to the current level.
Note that the code is unsafe! -
head
-
head
-
content
- Overrides:
contentin classAbstractElement<Html>
-
body
-
body
-
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classAbstractElement<Html>
-