public class DefaultHtmlConfig extends DefaultXmlConfig implements HtmlConfig
DEFAULT_FIRST_LEVEL, DEFAULT_INTENDATION, DEFAULT_NEW_LINE, doctype, EMPTY, REQUIRED_MSG
Constructor and Description |
---|
DefaultHtmlConfig() |
DefaultHtmlConfig(HtmlConfig htmlConfig) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Get a content type where a recommended value is
"text/html" |
CharSequence[] |
getCssLinks()
CSS links of a HTML page
|
CharSequence |
getDoctype()
A header declaration of the document or a doctype
|
ApiInjector |
getHeaderInjector()
Return a header injector
|
Optional<CharSequence> |
getLanguage()
Language of a HTML page
|
CharSequence |
getRawHeaderText()
A raw text for HTML header
|
String |
getRootElementName()
A name of root element
|
CharSequence |
getTitle()
Title is a required element by HTML 5
|
boolean |
isDocumentObjectModel()
Build a real model or a plain writer, the default value is
false |
boolean |
isHtmlHeaderRequest()
A request to generate a minimal HTML header
|
DefaultHtmlConfig |
setContentType(String contentType) |
DefaultHtmlConfig |
setCssLinks(CharSequence... cssLinks) |
DefaultHtmlConfig |
setDocumentObjectModel(boolean buildDom)
Build a real model or a plain writer, the default value is
false |
void |
setDom(boolean buildDom)
Deprecated.
Use the method
setDocumentObjectModel(boolean) . |
DefaultHtmlConfig |
setHeaderInjector(ApiInjector headerInjector)
Assign a new header injector
|
DefaultHtmlConfig |
setHtmlHeader(boolean htmlHeaderRequest)
A request to generate a minimal HTML header
|
DefaultHtmlConfig |
setLanguage(CharSequence language) |
DefaultHtmlConfig |
setRawHedaderCode(String rawHeaderText)
Deprecated.
|
DefaultHtmlConfig |
setRootElementName(String rootElementName)
The element name must not be special HTML characters.
|
DefaultHtmlConfig |
setTitle(CharSequence title)
Title is a required element by HTML 5
|
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed, nonnull, setCacheAllowed, setCompressedFormat, setDefaultValue, setDoctype, setFirstLevel, setFormatter, setCharset, setIndentationSpace, setNewLine, setNiceFormat, setNiceFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneForAjax, of, ofDefault, ofElement, ofElementName, ofEmptyElement
getDefaultValue, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed, ofDoctype
public DefaultHtmlConfig()
public DefaultHtmlConfig(@Nonnull HtmlConfig htmlConfig)
@Nonnull public CharSequence getDoctype()
DefaultXmlConfig
getDoctype
in interface XmlConfig
getDoctype
in class DefaultXmlConfig
@Nonnull public CharSequence getTitle()
HtmlConfig
getTitle
in interface HtmlConfig
public CharSequence[] getCssLinks()
HtmlConfig
getCssLinks
in interface HtmlConfig
@Nonnull public Optional<CharSequence> getLanguage()
HtmlConfig
getLanguage
in interface HtmlConfig
@Nonnull public String getContentType()
HtmlConfig
"text/html"
getContentType
in interface HtmlConfig
public boolean isDocumentObjectModel()
false
isDocumentObjectModel
in interface HtmlConfig
public boolean isHtmlHeaderRequest()
isHtmlHeaderRequest
in interface HtmlConfig
public CharSequence getRawHeaderText()
getRawHeaderText
in interface HtmlConfig
@Nonnull public ApiInjector getHeaderInjector()
getHeaderInjector
in interface HtmlConfig
public String getRootElementName()
getRootElementName
in interface HtmlConfig
public DefaultHtmlConfig setTitle(@Nonnull CharSequence title)
public DefaultHtmlConfig setCssLinks(@Nonnull CharSequence... cssLinks)
public DefaultHtmlConfig setLanguage(@Nonnull CharSequence language)
public DefaultHtmlConfig setContentType(@Nonnull String contentType)
@Deprecated public void setDom(boolean buildDom)
setDocumentObjectModel(boolean)
.false
.public DefaultHtmlConfig setDocumentObjectModel(boolean buildDom)
false
public DefaultHtmlConfig setHtmlHeader(boolean htmlHeaderRequest)
public DefaultHtmlConfig setRootElementName(@Nullable String rootElementName)
null
value is intended to build a root of AJAX queries.@Deprecated public DefaultHtmlConfig setRawHedaderCode(@Nullable String rawHeaderText)
setHeaderInjector(org.ujorm.tools.xml.config.ApiInjector)
method rather.rawHeaderText
- public DefaultHtmlConfig setHeaderInjector(@Nonnull ApiInjector headerInjector)
Copyright 2019-2022, Pavel Ponec