public void addInlineChild(LayoutContext c, Object child, boolean callUnmarkPending) { if (_inlineChildren == null) { _inlineChildren = new ArrayList(); } _inlineChildren.add(child); if (callUnmarkPending && isPending()) { unmarkPending(c); } if (child instanceof Box) { Box b = (Box)child; b.setParent(this); b.initContainingLayer(c); } else if (child instanceof InlineText) { ((InlineText)child).setParent(this); } else { throw new IllegalArgumentException(); } }
public void addInlineChild(LayoutContext c, Object child, boolean callUnmarkPending) { if (_inlineChildren == null) { _inlineChildren = new ArrayList(); } _inlineChildren.add(child); if (callUnmarkPending && isPending()) { unmarkPending(c); } if (child instanceof Box) { Box b = (Box)child; b.setParent(this); b.initContainingLayer(c); } else if (child instanceof InlineText) { ((InlineText)child).setParent(this); } else { throw new IllegalArgumentException(); } }
currentIB.setPending(prev.isPending());
currentIB.setPending(prev.isPending());
public void prunePendingInlineBoxes() { if (getChildCount() > 0) { for (int i = getChildCount() - 1; i >= 0; i--) { Box b = (Box)getChild(i); if (! (b instanceof InlineLayoutBox)) { break; } InlineLayoutBox iB = (InlineLayoutBox)b; iB.prunePending(); if (iB.isPending()) { removeChild(i); } } } }
public void prunePendingInlineBoxes() { if (getChildCount() > 0) { for (int i = getChildCount() - 1; i >= 0; i--) { Box b = (Box)getChild(i); if (! (b instanceof InlineLayoutBox)) { break; } InlineLayoutBox iB = (InlineLayoutBox)b; iB.prunePending(); if (iB.isPending()) { removeChild(i); } } } }
public void prunePending() { if (getInlineChildCount() > 0) { for (int i = getInlineChildCount() - 1; i >= 0; i--) { Object child = (Object)getInlineChild(i); if (! (child instanceof InlineLayoutBox)) { break; } InlineLayoutBox iB = (InlineLayoutBox)child; iB.prunePending(); if (iB.isPending()) { removeChild(i); } else { break; } } } }
public void prunePending() { if (getInlineChildCount() > 0) { for (int i = getInlineChildCount() - 1; i >= 0; i--) { Object child = (Object)getInlineChild(i); if (! (child instanceof InlineLayoutBox)) { break; } InlineLayoutBox iB = (InlineLayoutBox)child; iB.prunePending(); if (iB.isPending()) { removeChild(i); } else { break; } } } }
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
if (currentIB.isPending()) { currentIB.unmarkPending(c); if (! currentIB.isPending() && (currentIB.getElement() == null || currentIB.getElement() != c.getLayer().getMaster().getElement())) { throw new RuntimeException("internal error"); if (! currentIB.isPending()) { c.getLayer().setEnd(currentIB); c.popLayer();
if (currentIB.isPending()) { currentIB.unmarkPending(c); if (! currentIB.isPending() && (currentIB.getElement() == null || currentIB.getElement() != c.getLayer().getMaster().getElement())) { throw new RuntimeException("internal error"); if (! currentIB.isPending()) { c.getLayer().setEnd(currentIB); c.popLayer();