public void resetChildren(LayoutContext c, int start, int end) { for (int i = start; i <= end; i++) { Box box = getChild(i); box.reset(c); } }
public void resetChildren(LayoutContext c, int start, int end) { for (int i = start; i <= end; i++) { Box box = getChild(i); box.reset(c); } }
protected void resetChildren(LayoutContext c) { int remaining = getChildCount(); for (int i = 0; i < remaining; i++) { Box box = getChild(i); box.reset(c); } }
protected void resetChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object object = getInlineChild(i); if (object instanceof Box) { ((Box)object).reset(c); } } }
protected void resetChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object object = getInlineChild(i); if (object instanceof Box) { ((Box)object).reset(c); } } }
protected void resetChildren(LayoutContext c) { int remaining = getChildCount(); for (int i = 0; i < remaining; i++) { Box box = getChild(i); box.reset(c); } }
public void detach(LayoutContext c) { reset(c); if (getParent() != null) { getParent().removeChild(this); setParent(null); } }
public void detach(LayoutContext c) { reset(c); if (getParent() != null) { getParent().removeChild(this); setParent(null); } }
private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.isRequiresLayout()) { layoutAbsoluteChild(c, child); if (child.getMaster().getStyle().isAvoidPageBreakInside() && child.getMaster().crossesPageBreak(c)) { child.getMaster().reset(c); ((BlockBox)child.getMaster()).setNeedPageClear(true); layoutAbsoluteChild(c, child); if (child.getMaster().crossesPageBreak(c)) { child.getMaster().reset(c); layoutAbsoluteChild(c, child); } } child.setRequiresLayout(false); child.finish(c); c.getRootLayer().ensureHasPage(c, child.getMaster()); } } c.restoreLayoutState(state); } }
List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.isRequiresLayout()) { layoutAbsoluteChild(c, child); if (child.getMaster().getStyle().isAvoidPageBreakInside() && child.getMaster().crossesPageBreak(c)) { child.getMaster().reset(c); ((BlockBox)child.getMaster()).setNeedPageClear(true); layoutAbsoluteChild(c, child); if (child.getMaster().crossesPageBreak(c)) { child.getMaster().reset(c); layoutAbsoluteChild(c, child); } } child.setRequiresLayout(false); child.finish(c); c.getRootLayer().ensureHasPage(c, child.getMaster()); } } c.restoreLayoutState(state); } } private void layoutAbsoluteChild(LayoutContext c, Layer child) {
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); _floatedBoxData.getDrawingLayer().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }