Package com.openhtmltopdf.render
Enum Class BlockBox.ContentType
- All Implemented Interfaces:
Serializable
,Comparable<BlockBox.ContentType>
,Constable
- Enclosing class:
BlockBox
What type of direct child content this block box contains.
NOTE: A
NOTE: A
BlockBox
can only contain inline or block content (not both) as direct children.
If this constraint is not met by the original document, the BoxBuilder
will insert AnonymousBlockBox
with inline content.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis block box's direct children consist only ofBlockBox
and subclassed objects.This block box is empty but may still have border, etc.This block box contains inline content in theBlockBox.getInlineContent()
property.The box builder has not yet run to create our child boxes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockBox.ContentType
Returns the enum constant of this class with the specified name.static BlockBox.ContentType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The box builder has not yet run to create our child boxes. The box builder can be run withBlockBox.ensureChildren(LayoutContext)
. -
INLINE
This block box contains inline content in theBlockBox.getInlineContent()
property. If it has also been laid out it will contain children inBox.getChildren()
and associated methods. Children will be onlyLineBox
objects. -
BLOCK
This block box's direct children consist only ofBlockBox
and subclassed objects. The methodBlockBox.setInlineContent(List)
must not be used with block content. -
EMPTY
This block box is empty but may still have border, etc.
-
-
Constructor Details
-
ContentType
private ContentType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-