public static enum BlockBox.ContentType extends Enum<BlockBox.ContentType>
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.| Enum Constant and Description |
|---|
BLOCK
This block box's direct children consist only of
BlockBox and subclassed objects. |
EMPTY
This block box is empty but may still have border, etc.
|
INLINE
This block box contains inline content in the
BlockBox.getInlineContent()
property. |
UNKNOWN
The box builder has not yet run to
create our child boxes.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockBox.ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockBox.ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockBox.ContentType UNKNOWN
BlockBox.ensureChildren(LayoutContext).public static final BlockBox.ContentType INLINE
BlockBox.getInlineContent()
property. If it has also been laid out it will contain
children in Box.getChildren() and associated methods.
Children will be only LineBox objects.public static final BlockBox.ContentType BLOCK
BlockBox and subclassed objects.
The method BlockBox.setInlineContent(List) must not be used
with block content.public static final BlockBox.ContentType EMPTY
public static BlockBox.ContentType[] values()
for (BlockBox.ContentType c : BlockBox.ContentType.values()) System.out.println(c);
public static BlockBox.ContentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2025. All rights reserved.