public final class ContentElement extends LeafElement
| Modifier and Type | Field and Description | 
|---|---|
String | 
originalContent  | 
DEFAULT_ALIGN, DEFAULT_IMG_ALIGN, LAYOUT_FINALIZE_PARENT_UNKNOWN, LAYOUT_HEADER, LAYOUT_NORMAL, LAYOUT_PARENT_WIDTH_UNKNOWN, tag| Constructor and Description | 
|---|
ContentElement(BranchElement parent,
              HtmlTag tag,
              String text,
              Document document,
              ContentElement prevContent)  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
allowedBreakAfter(char c,
                 char next)  | 
String | 
dump(int mode)  | 
Color | 
getBackgroundColor()  | 
BoxLengths | 
getBorders()  | 
Color | 
getColor()  | 
String | 
getContent()  | 
com.pd4ml.fonts.CachedFontMetrics | 
getFontMetrics()  | 
boolean | 
hasRtlContent()  | 
boolean | 
hasVisibleContent()  | 
void | 
substitutePlaceholders(String page,
                      String total)  | 
void | 
substituteTocPlaceholders(Context ctx,
                         Map<String,String> map)  | 
static String | 
supressWhitespaces(String content,
                  boolean pre,
                  boolean suppressLeadingWhitespaces)  | 
String | 
toString()  | 
void | 
trimTrailingWhitespace(Element follower,
                      boolean force)  | 
Style.WhiteSpace | 
whiteSpace()  | 
addChild, getChildAt, getChildCount, getChildren, hasChildTags, isLeafgetBlock, getChildrenFlow, getContentStyle, getContext, getDisplayType, getDocument, getFloat, getFontSize, getIndex, getLastContentElement, getLastContentElementOfBlock, getLineHeight, getLineHeightObj, getLogicalWidth, getName, getParent, getPositioning, getPrevChild, getRemBase, getTag, getTextDecorationType, getTextTransform, getTextTransformType, getWordBreakType, hasBorders, hasBothCoordinates, isAbsPositioned, isFloat, isImplicit, isRelPositioned, isRTL, isTBRL, keepPhysicalUnits, objectToLength, pageBreakAfterObj, pageBreakBeforeObj, previousSibling, removeEmptyInlineChildElements, setParent, style, textAlign, textAlign, wordBreakpublic String originalContent
public ContentElement(BranchElement parent, HtmlTag tag, String text, Document document, ContentElement prevContent)
public BoxLengths getBorders()
getBorders in interface ElementgetBorders in class AbstractElementpublic com.pd4ml.fonts.CachedFontMetrics getFontMetrics()
getFontMetrics in interface ElementgetFontMetrics in class AbstractElementpublic String toString()
toString in class AbstractElementpublic boolean hasVisibleContent()
public Color getColor()
public Color getBackgroundColor()
public Style.WhiteSpace whiteSpace()
whiteSpace in interface ElementwhiteSpace in class AbstractElementpublic static boolean allowedBreakAfter(char c,
                                        char next)
public static String supressWhitespaces(String content, boolean pre, boolean suppressLeadingWhitespaces)
public String getContent()
getContent in interface HtmlElementgetContent in class LeafElementpublic void substitutePlaceholders(String page, String total)
substitutePlaceholders in interface ElementsubstitutePlaceholders in class AbstractElementpublic void substituteTocPlaceholders(Context ctx, Map<String,String> map)
substituteTocPlaceholders in interface ElementsubstituteTocPlaceholders in class AbstractElementpublic void trimTrailingWhitespace(Element follower, boolean force)
public boolean hasRtlContent()
hasRtlContent in interface ElementhasRtlContent in class AbstractElementpublic String dump(int mode)
dump in interface Elementdump in class AbstractElementRevision 4.0.15 / 20220727-0149