Class SpanWrapper
java.lang.Object
com.itextpdf.html2pdf.attach.wrapelement.SpanWrapper
- All Implemented Interfaces:
-
IWrapElement
Wrapper for the
span
element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SpanWrapper span) Adds a child span.void
add
(com.itextpdf.layout.element.IBlockElement block) Adds a child block element.void
add
(com.itextpdf.layout.element.ILeafElement img) Adds a child image.void
addAll
(Collection collection) Adds a collection of lead elements as children.Gets a list of all the child elements.
-
Constructor Details
-
SpanWrapper
public SpanWrapper()
-
-
Method Details
-
add
Adds a child span.- Parameters:
-
span
- the span element to add
-
add
public void add(com.itextpdf.layout.element.ILeafElement img) Adds a child image.- Parameters:
-
img
- the img element to add
-
add
public void add(com.itextpdf.layout.element.IBlockElement block) Adds a child block element.- Parameters:
-
block
- the block element to add
-
addAll
Adds a collection of lead elements as children.- Parameters:
-
collection
- the collection to add
-
getElements
Gets a list of all the child elements.- Returns:
- the child elements
-