Package org.ujorm.tools.xml.config
Interface HtmlConfig
- All Superinterfaces:
XmlConfig
- All Known Implementing Classes:
DefaultHtmlConfig
Configuraion of HtmlPage
- Author:
- Pavel Ponec
-
Method Summary
Modifier and TypeMethodDescriptiondefault DefaultHtmlConfigClone the config for an AJAX processing@NotNull StringGet a content type where a recommended value is"text/html"@NotNull CharSequence[]CSS links of a HTML page@NotNull ApiInjector@NotNull Optional<CharSequence>Language of a HTML page@Nullable CharSequenceDeprecated.@NotNull StringA name of root element@NotNull CharSequencegetTitle()Title is a required element by HTML 5booleanBuild a real model or a plain writer with a recommended valuefalsebooleanA request to generate a minimal HTML headerstatic DefaultHtmlConfigof(@NotNull HtmlConfig htmlConfig) Clone config form anotherstatic @NotNull DefaultHtmlConfigCreate a new default configstatic @NotNull DefaultHtmlConfigNo HTML header is generated, no Doctype and no new linesstatic @NotNull DefaultHtmlConfigofElementName(@Nullable String rootElementName) No HTML header is generated, no Doctype and no new linesstatic @NotNull DefaultHtmlConfigCreate a configuration for an AJAX response.static DefaultHtmlConfigCreate a new configuration with a nice format by an HTML title.default booleanpairElement(@NotNull ApiElement element) The pair element for termination is required.Methods inherited from interface org.ujorm.tools.xml.config.XmlConfig
getDefaultValue, getDoctype, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed
-
Method Details
-
getTitle
Title is a required element by HTML 5 -
getCssLinks
CSS links of a HTML page -
getLanguage
Language of a HTML page -
getContentType
Get a content type where a recommended value is"text/html" -
isDocumentObjectModel
boolean isDocumentObjectModel()Build a real model or a plain writer with a recommended valuefalse -
isHtmlHeaderRequest
boolean isHtmlHeaderRequest()A request to generate a minimal HTML header -
getRawHeaderText
Deprecated.Use methodgetHeaderInjector()A raw text for HTML header -
getHeaderInjector
-
getRootElementName
A name of root element -
getUnpairElements
-
pairElement
Description copied from interface:XmlConfigThe pair element for termination is required.- Specified by:
pairElementin interfaceXmlConfig
-
cloneForAjax
Clone the config for an AJAX processing -
ofDefault
Create a new default config- Returns:
-
ofElementName
@NotNull static @NotNull DefaultHtmlConfig ofElementName(@Nullable @Nullable String rootElementName) No HTML header is generated, no Doctype and no new lines- Parameters:
rootElementName- Element name cannot contain special HTML characters. An undefined value ignores the creation of the root element.- Returns:
-
ofElement
@NotNull static @NotNull DefaultHtmlConfig ofElement(@Nullable @Nullable String rootElementName, boolean enabled) No HTML header is generated, no Doctype and no new lines- Parameters:
rootElementName- Element name cannot contain special HTML characters.enabled- Disabled root element ignores the creation of the root element.- Returns:
-
ofEmptyElement
Create a configuration for an AJAX response. -
of
Clone config form another -
ofTitle
Create a new configuration with a nice format by an HTML title.- Parameters:
title- If the title is null then create an EMPTY element.
-
getHeaderInjector()