|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.dom4j.DocumentFormatter
public class DocumentFormatter
Builds the formatting structure for DOM4J documents.
This is the class to use for rendering CSS-styled DOM4J documents.
| Constructor Summary | |
|---|---|
DocumentFormatter(UserAgent<?> userAgent)
|
|
| Method Summary | |
|---|---|
protected void |
checkBackgroundImage(CSS2ComputedProperties style)
|
CSSContainerBox |
formatDocument(XHTMLDocument xdoc)
Builds a CSS formatting structure for the given document. |
protected CSSBox |
generateBox(DOM4JCSSStyleDeclaration style)
Creates a box of the appropriate type according to CSS box model. |
CSSBoxFactory |
getBoxFactory()
|
DOM4JCSSErrorHandler |
getErrorHandler()
|
UserAgent<?> |
getUserAgent()
|
void |
setBoxFactory(CSSBoxFactory boxFactory)
|
void |
setErrorHandler(DOM4JCSSErrorHandler errorHandler)
Sets the error handler. |
void |
setUserAgent(UserAgent<?> userAgent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentFormatter(UserAgent<?> userAgent)
| Method Detail |
|---|
public DOM4JCSSErrorHandler getErrorHandler()
public UserAgent<?> getUserAgent()
public void setUserAgent(UserAgent<?> userAgent)
public void setErrorHandler(DOM4JCSSErrorHandler errorHandler)
errorHandler - the DOM4J-specific CSS error handler.public CSSBoxFactory getBoxFactory()
public void setBoxFactory(CSSBoxFactory boxFactory)
public CSSContainerBox formatDocument(XHTMLDocument xdoc)
throws CSSStyleException
xdoc - the document to be formatted.
CSSStyleException - if the root box could not be established.
protected CSSBox generateBox(DOM4JCSSStyleDeclaration style)
throws CSSStyleException
Note that table sub-elements are not generated here.
style - the computed style that applies for the box.
display: none).
CSSStyleException - if an error occurs generating the box.protected void checkBackgroundImage(CSS2ComputedProperties style)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||