Package org.ujorm.tools.xml.config.impl
Class DefaultHtmlConfig
java.lang.Object
org.ujorm.tools.xml.config.impl.DefaultXmlConfig
org.ujorm.tools.xml.config.impl.DefaultHtmlConfig
- All Implemented Interfaces:
HtmlConfig,XmlConfig
Configuraion of HtmlPage
- Author:
- Pavel Ponec
-
Field Summary
Fields inherited from class org.ujorm.tools.xml.config.impl.DefaultXmlConfig
DEFAULT_FIRST_LEVEL, DEFAULT_INTENDATION, DEFAULT_NEW_LINE, doctype, EMPTY, REQUIRED_MSG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet a content type where a recommended value is"text/html"CSS links of a HTML page@NotNull CharSequenceA header declaration of the document or a doctype@NotNull ApiInjectorReturn a header injector@NotNull Optional<CharSequence>Language of a HTML pageA raw text for HTML header@NotNull StringA name of root element@NotNull CharSequencegetTitle()Title is a required element by HTML 5booleanBuild a real model or a plain writer, the default value isfalsebooleanA request to generate a minimal HTML headersetContentType(@NotNull String contentType) setCssLinks(@NotNull CharSequence... cssLinks) setDocumentObjectModel(boolean buildDom) Build a real model or a plain writer, the default value isfalsevoidsetDom(boolean buildDom) Deprecated.setHeaderInjector(@NotNull ApiInjector headerInjector) Assign a new header injectorsetHtmlHeader(boolean htmlHeaderRequest) A request to generate a minimal HTML headersetLanguage(@NotNull CharSequence language) setRawHedaderCode(@Nullable String rawHeaderText) Deprecated.setRootElementName(@Nullable String rootElementName) The element name must not be special HTML characters.setTitle(@NotNull CharSequence title) Title is a required element by HTML 5voidsetUnpairElements(@NotNull Set<String> unpairElements) Set Unpair element namesMethods inherited from class org.ujorm.tools.xml.config.impl.DefaultXmlConfig
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed, nonnull, setCacheAllowed, setCompressedFormat, setDefaultValue, setDoctype, setFirstLevel, setFormatter, setCharset, setIndentationSpace, setNewLine, setNiceFormat, setNiceFormatMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ujorm.tools.xml.config.HtmlConfig
cloneForAjax, pairElementMethods inherited from interface org.ujorm.tools.xml.config.XmlConfig
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed
-
Constructor Details
-
DefaultHtmlConfig
public DefaultHtmlConfig() -
DefaultHtmlConfig
-
-
Method Details
-
getDoctype
Description copied from class:DefaultXmlConfigA header declaration of the document or a doctype- Specified by:
getDoctypein interfaceXmlConfig- Overrides:
getDoctypein classDefaultXmlConfig
-
getTitle
Description copied from interface:HtmlConfigTitle is a required element by HTML 5- Specified by:
getTitlein interfaceHtmlConfig
-
getCssLinks
Description copied from interface:HtmlConfigCSS links of a HTML page- Specified by:
getCssLinksin interfaceHtmlConfig
-
getLanguage
Description copied from interface:HtmlConfigLanguage of a HTML page- Specified by:
getLanguagein interfaceHtmlConfig
-
getContentType
Description copied from interface:HtmlConfigGet a content type where a recommended value is"text/html"- Specified by:
getContentTypein interfaceHtmlConfig
-
isDocumentObjectModel
public boolean isDocumentObjectModel()Build a real model or a plain writer, the default value isfalse- Specified by:
isDocumentObjectModelin interfaceHtmlConfig
-
isHtmlHeaderRequest
public boolean isHtmlHeaderRequest()A request to generate a minimal HTML header- Specified by:
isHtmlHeaderRequestin interfaceHtmlConfig
-
getRawHeaderText
A raw text for HTML header- Specified by:
getRawHeaderTextin interfaceHtmlConfig
-
getHeaderInjector
Return a header injector- Specified by:
getHeaderInjectorin interfaceHtmlConfig
-
getRootElementName
A name of root element- Specified by:
getRootElementNamein interfaceHtmlConfig
-
getUnpairElements
- Specified by:
getUnpairElementsin interfaceHtmlConfig
-
setTitle
Title is a required element by HTML 5 -
setCssLinks
-
setLanguage
-
setContentType
-
setDom
Deprecated.Use the methodsetDocumentObjectModel(boolean).Build a real model or a plain writer, the default value isfalse. -
setDocumentObjectModel
Build a real model or a plain writer, the default value isfalse -
setHtmlHeader
A request to generate a minimal HTML header -
setRootElementName
The element name must not be special HTML characters. Thenullvalue is intended to build a root of AJAX queries. -
setUnpairElements
Set Unpair element names -
setRawHedaderCode
Deprecated.Use thesetHeaderInjector(org.ujorm.tools.xml.config.ApiInjector)method rather.- Parameters:
rawHeaderText-- Returns:
-
setHeaderInjector
Assign a new header injector
-
setDocumentObjectModel(boolean).