Top Constructors Methods
com.openhtmltopdf.util

public Class BoxUtil

extends Object
Class Inheritance
Imports
org.w3c.dom.Element, .Node, com.openhtmltopdf.render.Box

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Box

Returns:

body box, last child of root or root in order of preference.
getBodyBoxOrSomething
(Box root)

public static Element

Returns:

The body element, last element child of root or root in order of preference.
getBodyElementOrSomething
(Element root)

Looks at the children of root.

public static Box
getBodyOrNull(Box root)

Looks at the direct children of root to find one with an element with node name body.

private static boolean
isBody(Box child)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BoxUtilback to summary
public BoxUtil()

Method Detail

getBodyBoxOrSomethingback to summary
public static Box getBodyBoxOrSomething(Box root)
Returns:Box

body box, last child of root or root in order of preference.

getBodyElementOrSomethingback to summary
public static Element getBodyElementOrSomething(Element root)

Looks at the children of root.

Returns:Element

The body element, last element child of root or root in order of preference.

getBodyOrNullback to summary
public static Box getBodyOrNull(Box root)

Looks at the direct children of root to find one with an element with node name body.

isBodyback to summary
private static boolean isBody(Box child)