public class BranchElement extends EmptyBlockElement
DEFAULT_ALIGN, DEFAULT_IMG_ALIGN, LAYOUT_FINALIZE_PARENT_UNKNOWN, LAYOUT_HEADER, LAYOUT_NORMAL, LAYOUT_PARENT_WIDTH_UNKNOWN, tag| Constructor and Description |
|---|
BranchElement(BranchElement parent,
Style props,
HtmlTag tag,
com.pd4ml.css.CSSName disp,
Document document) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Element child) |
int |
countBlocks() |
Element |
getChildAt(int index) |
int |
getChildCount() |
Vector<Element> |
getChildren() |
List<Element> |
getChildrenFlow(List<Element> flow,
TargetRenderContext ctx) |
String |
getContent() |
com.pd4ml.css.CSSName |
getDisplayType() |
int |
getPositionInList() |
int |
getPositionInList(BranchElement listItem) |
Element |
getPrevChild(Element current) |
Element |
getPreviousChild(Element e) |
Element |
getPreviousElement(ContentElement current) |
boolean |
hasChildTags() |
boolean |
hasRtlContent() |
boolean |
isFirstChildTag(Element x) |
boolean |
isLastChildIsBranch() |
boolean |
isLastChildIsLinebreak() |
boolean |
isLastChildTag(Element x) |
boolean |
isLeaf() |
void |
rearrangeChildren() |
void |
removeChild(Element child) |
void |
removeLastChild() |
void |
setHasRtlContent(boolean rtlContent) |
void |
setStyle(Style s) |
Style |
style() |
getBorders, getLogicalHeight, getLogicalWidth, getMargins, getPaddings, hasBorders, hasPaddingsdump, getBlock, getContentStyle, getContext, getDocument, getFloat, getFontMetrics, getFontSize, getIndex, getLastContentElement, getLastContentElementOfBlock, getLineHeight, getLineHeightObj, getName, getParent, getPositioning, getRemBase, getTag, getTextDecorationType, getTextTransform, getTextTransformType, getWordBreakType, hasBothCoordinates, isAbsPositioned, isFloat, isImplicit, isRelPositioned, isRTL, isTBRL, keepPhysicalUnits, objectToLength, pageBreakAfterObj, pageBreakBeforeObj, previousSibling, removeEmptyInlineChildElements, setParent, substitutePlaceholders, substituteTocPlaceholders, textAlign, textAlign, toString, whiteSpace, wordBreakpublic BranchElement(BranchElement parent, Style props, HtmlTag tag, com.pd4ml.css.CSSName disp, Document document)
public Element getChildAt(int index)
getChildAt in interface ElementgetChildAt in interface HtmlElementgetChildAt in class EmptyBlockElementpublic Element getPrevChild(Element current)
getPrevChild in interface ElementgetPrevChild in class AbstractElementpublic int getChildCount()
getChildCount in interface ElementgetChildCount in interface HtmlElementgetChildCount in class EmptyBlockElementpublic boolean hasChildTags()
hasChildTags in interface ElementhasChildTags in class EmptyBlockElementpublic Vector<Element> getChildren()
getChildren in interface ElementgetChildren in class EmptyBlockElementpublic List<Element> getChildrenFlow(List<Element> flow, TargetRenderContext ctx)
getChildrenFlow in interface ElementgetChildrenFlow in class AbstractElementpublic String getContent()
getContent in interface HtmlElementgetContent in class EmptyBlockElementpublic boolean isLeaf()
isLeaf in interface ElementisLeaf in class EmptyBlockElementpublic void addChild(Element child)
addChild in interface ElementaddChild in class EmptyBlockElementpublic void removeChild(Element child)
public void removeLastChild()
public void rearrangeChildren()
public boolean isLastChildIsBranch()
public boolean isLastChildIsLinebreak()
public boolean isFirstChildTag(Element x)
public boolean isLastChildTag(Element x)
public int countBlocks()
public int getPositionInList()
public int getPositionInList(BranchElement listItem)
public Element getPreviousElement(ContentElement current)
public void setStyle(Style s)
public Style style()
style in interface Elementstyle in class AbstractElementpublic com.pd4ml.css.CSSName getDisplayType()
getDisplayType in interface ElementgetDisplayType in class AbstractElementpublic boolean hasRtlContent()
hasRtlContent in interface ElementhasRtlContent in class AbstractElementpublic void setHasRtlContent(boolean rtlContent)
Revision 4.0.15 / 20220727-0149