Package com.scroogexhtml.configuration
Class HtmlHeadConfiguration
java.lang.Object
com.scroogexhtml.configuration.HtmlHeadConfiguration
- All Implemented Interfaces:
Serializable
Nested property which contains HTML HEAD section properties.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlHeadConfiguration
(String defaultGenerator) Represents a configuration for the HTML head section. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStyleSheetLink
(String href) Adds a style sheet link to the list of style sheet links in the HTML head configuration.boolean
void
setDocumentTitle
(String newValue) Sets the document title.void
setIncludeDefaultFontStyle
(boolean newValue) If this property is set to true, the HTML head section will include a CSS definition for the default font style.void
setMetaAuthor
(String newValue) This property may be used to specify a META tag which contains the document author.void
setMetaDescription
(String newValue) This property may be used to specify a document description.void
setMetaGenerator
(String newValue) This property may be used to specify the content of the generator "meta" element.void
setMetaKeywords
(String newValue) This property may be used to specify keywords for the document.void
setMetaViewport
(String newValue) Use this property to define the viewport meta-tag manually.void
setStyleSheetInclude
(String newValue) Additional style sheet definitions which are stored in the HTML document.void
setStyleSheetLink
(String newValue) URL of a file which contains external CSS style sheet definitions for the HTML document.void
setStyleSheetLinks
(List<String> newValue)
-
Constructor Details
-
HtmlHeadConfiguration
Represents a configuration for the HTML head section.- Parameters:
defaultGenerator
- the default value for the "generator" meta-tag.
-
-
Method Details
-
setDocumentTitle
Sets the document title.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new documentTitle value- Default value:
- "Untitled document"
-
setIncludeDefaultFontStyle
public void setIncludeDefaultFontStyle(boolean newValue) If this property is set to true, the HTML head section will include a CSS definition for the default font style.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new includeDefaultFontStyle value- See Also:
- Default value:
- false
-
setMetaAuthor
This property may be used to specify a META tag which contains the document author.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new metaAuthor value- Default value:
- empty
-
setMetaDescription
This property may be used to specify a document description.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new metaDescription value- Default value:
- empty
-
setMetaGenerator
This property may be used to specify the content of the generator "meta" element.- Parameters:
newValue
- The new metaGenerator value- Default value:
- name and version of the converter
-
setMetaKeywords
This property may be used to specify keywords for the document.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new metaKeywords value- Default value:
- empty
-
setMetaViewport
Use this property to define the viewport meta-tag manually.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new viewport value- Default value:
- empty
-
setStyleSheetInclude
Additional style sheet definitions which are stored in the HTML document.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new styleSheetInclude value- Default value:
- empty
-
setStyleSheetLink
URL of a file which contains external CSS style sheet definitions for the HTML document.Note: this property is only effective if the property
AddOuterHTML
is set to true.- Parameters:
newValue
- The new styleSheetLink value- Default value:
- empty
-
addStyleSheetLink
Adds a style sheet link to the list of style sheet links in the HTML head configuration.- Parameters:
href
- The URL of the style sheet file
-
setStyleSheetLinks
-
getDocumentTitle
-
isIncludeDefaultFontStyle
public boolean isIncludeDefaultFontStyle() -
getMetaAuthor
-
getMetaDescription
-
getMetaGenerator
-
getMetaKeywords
-
getMetaViewport
-
getStyleSheetInclude
-
getStyleSheetLinks
-