Package org.xhtmlrenderer.simple.extend
Class XhtmlCssOnlyNamespaceHandler
java.lang.Object
org.xhtmlrenderer.swing.NoNamespaceHandler
org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler
- All Implemented Interfaces:
NamespaceHandler
- Direct Known Subclasses:
XhtmlNamespaceHandler
Handles xhtml but only css styling is honored,
no presentational html attributes (see css 2.1 spec, 6.4.4)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the class attribute of the XhtmlNamespaceHandler objectgetDefaultStylesheet
(StylesheetFactory factory) getDocumentTitle
(Document doc) Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found.Gets the elementStyling attribute of the XhtmlNamespaceHandler objectGets the iD attribute of the XhtmlNamespaceHandler objectGets the linkUri attribute of the XhtmlNamespaceHandler objectGets the namespace attribute of the XhtmlNamespaceHandler objectgetStylesheets
(Document doc) Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler objectMethods inherited from class org.xhtmlrenderer.swing.NoNamespaceHandler
getAttributeValue, getAttributeValue, getImageSourceURI, getLang, getNonCssStyling, isFormElement, isImageElement
-
Constructor Details
-
XhtmlCssOnlyNamespaceHandler
public XhtmlCssOnlyNamespaceHandler()
-
-
Method Details
-
getNamespace
Gets the namespace attribute of the XhtmlNamespaceHandler object- Specified by:
getNamespace
in interfaceNamespaceHandler
- Overrides:
getNamespace
in classNoNamespaceHandler
- Returns:
- The namespace value
-
getClass
Gets the class attribute of the XhtmlNamespaceHandler object- Specified by:
getClass
in interfaceNamespaceHandler
- Overrides:
getClass
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The class value
-
getID
Gets the iD attribute of the XhtmlNamespaceHandler object- Specified by:
getID
in interfaceNamespaceHandler
- Overrides:
getID
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The iD value
-
getElementStyling
Gets the elementStyling attribute of the XhtmlNamespaceHandler object- Specified by:
getElementStyling
in interfaceNamespaceHandler
- Overrides:
getElementStyling
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The elementStyling value
-
getLinkUri
Gets the linkUri attribute of the XhtmlNamespaceHandler object- Specified by:
getLinkUri
in interfaceNamespaceHandler
- Overrides:
getLinkUri
in classNoNamespaceHandler
- Parameters:
e
- PARAM- Returns:
- The linkUri value
-
getAnchorName
- Specified by:
getAnchorName
in interfaceNamespaceHandler
- Overrides:
getAnchorName
in classNoNamespaceHandler
-
getDocumentTitle
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found.- Specified by:
getDocumentTitle
in interfaceNamespaceHandler
- Overrides:
getDocumentTitle
in classNoNamespaceHandler
- Parameters:
doc
- the document to search for a title- Returns:
- The document's title, or "" if none found
-
getStylesheets
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object- Specified by:
getStylesheets
in interfaceNamespaceHandler
- Overrides:
getStylesheets
in classNoNamespaceHandler
- Parameters:
doc
- PARAM- Returns:
- The stylesheetLinks value
-
getDefaultStylesheet
- Specified by:
getDefaultStylesheet
in interfaceNamespaceHandler
- Overrides:
getDefaultStylesheet
in classNoNamespaceHandler
- Returns:
- the default CSS stylesheet for this namespace
-