public interface BlockContentBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
addChars(CharSequence chars,
TextProperties props)
Add chars to the current block
|
void |
endSpan()
Ends a previously opened span section
|
void |
endStyle()
Ends a previously opened style section
|
void |
insertAnchor(String ref)
Insert an anchor at the current position in the flow
|
void |
insertEvaluate(DynamicContent exp,
TextProperties t)
Inserts an expression to evaluate.
|
void |
insertExternalReference(Object reference)
Inserts a reference element that could be used to add information required for
external systems.
|
void |
insertLeader(Leader leader)
Insert a leader at the current position in the flow
|
void |
insertMarker(Marker marker)
Insert a marker at the current position in the flow
|
void |
insertMarkerReference(MarkerReference ref,
TextProperties t)
Inserts a marker reference
|
void |
insertPageReference(String identifier,
NumeralStyle numeralStyle)
Adds the page number of a reference.
|
void |
newLine()
Explicitly break the current line, even if the line has space
left for more characters.
|
void |
startSpan(SpanProperties props)
Starts a span section
|
void |
startStyle(String style)
Starts a style section
|
void insertMarker(Marker marker)
marker - the marker to insertIllegalStateException - if the current state does not allow this call to be madevoid insertAnchor(String ref)
ref - anchor nameIllegalStateException - if the current state does not allow this call to be madevoid insertLeader(Leader leader)
leader - the leader to insertIllegalStateException - if the current state does not allow this call to be madevoid addChars(CharSequence chars, TextProperties props)
chars - the characters to add to the flowprops - the SpanProperties for the charactersIllegalStateException - if the current state does not allow this call to be madevoid startStyle(String style)
style - the name of the styleIllegalStateException - if the current state does not allow this call to be madevoid endStyle()
IllegalStateException - if the current state does not allow this call to be madevoid startSpan(SpanProperties props)
props - the span propertiesvoid endSpan()
IllegalStateException - if the current state does not allow this call to be madevoid newLine()
IllegalStateException - if the current state does not allow this call to be madevoid insertPageReference(String identifier, NumeralStyle numeralStyle)
identifier - the element of interestnumeralStyle - the numeral styleIllegalStateException - if the current state does not allow this call to be madevoid insertMarkerReference(MarkerReference ref, TextProperties t)
ref - the referencet - the text propertiesvoid insertEvaluate(DynamicContent exp, TextProperties t)
exp - the expressiont - the text propertiesvoid insertExternalReference(Object reference)
reference - Reference data.