public String dump(LayoutContext c, String indent, int which) { if (which != Box.DUMP_RENDER) { throw new IllegalArgumentException(); } StringBuffer result = new StringBuffer(indent); result.append(this); result.append('\n'); dumpBoxes(c, indent, getNonFlowContent(), Box.DUMP_RENDER, result); if (getNonFlowContent().size() > 0 ) { result.append('\n'); } dumpBoxes(c, indent, getChildren(), Box.DUMP_RENDER, result); return result.toString(); }
public String dump(LayoutContext c, String indent, int which) { if (which != Box.DUMP_RENDER) { throw new IllegalArgumentException(); } StringBuffer result = new StringBuffer(indent); result.append(this); result.append('\n'); dumpBoxes(c, indent, getNonFlowContent(), Box.DUMP_RENDER, result); if (getNonFlowContent().size() > 0 ) { result.append('\n'); } dumpBoxes(c, indent, getChildren(), Box.DUMP_RENDER, result); return result.toString(); }