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, hasPaddings
dump, 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, wordBreak
public BranchElement(BranchElement parent, Style props, HtmlTag tag, com.pd4ml.css.CSSName disp, Document document)
public Element getChildAt(int index)
getChildAt
in interface Element
getChildAt
in interface HtmlElement
getChildAt
in class EmptyBlockElement
public Element getPrevChild(Element current)
getPrevChild
in interface Element
getPrevChild
in class AbstractElement
public int getChildCount()
getChildCount
in interface Element
getChildCount
in interface HtmlElement
getChildCount
in class EmptyBlockElement
public boolean hasChildTags()
hasChildTags
in interface Element
hasChildTags
in class EmptyBlockElement
public Vector<Element> getChildren()
getChildren
in interface Element
getChildren
in class EmptyBlockElement
public List<Element> getChildrenFlow(List<Element> flow, TargetRenderContext ctx)
getChildrenFlow
in interface Element
getChildrenFlow
in class AbstractElement
public String getContent()
getContent
in interface HtmlElement
getContent
in class EmptyBlockElement
public boolean isLeaf()
isLeaf
in interface Element
isLeaf
in class EmptyBlockElement
public void addChild(Element child)
addChild
in interface Element
addChild
in class EmptyBlockElement
public 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 Element
style
in class AbstractElement
public com.pd4ml.css.CSSName getDisplayType()
getDisplayType
in interface Element
getDisplayType
in class AbstractElement
public boolean hasRtlContent()
hasRtlContent
in interface Element
hasRtlContent
in class AbstractElement
public void setHasRtlContent(boolean rtlContent)
Revision 4.0.15 / 20220727-0149