@Override public void visit(JRVisitor visitor) { visitor.visitComponentElement(this); if (component instanceof JRVisitable) { ((JRVisitable) component).visit(visitor); } }
@Override public void visit(JRVisitor visitor) { visitor.visitElementGroup(this); if (ElementsVisitorUtils.visitDeepElements(visitor)) { ElementsVisitorUtils.visitElements(visitor, children); } }
@Override public void visit(JRVisitor visitor) { visitor.visitFrame(this); if (ElementsVisitorUtils.visitDeepElements(visitor)) { ElementsVisitorUtils.visitElements(visitor, children); } }
/** * Visits a collections of elements. * * @param visitor the visitor * @param elements the elements */ public static void visitElements(JRVisitor visitor, Collection<? extends JRVisitable> elements) { if (elements != null) { for (JRVisitable element : elements) { element.visit(visitor); } } }
@Override public void visit(JRVisitor visitor) { visitor.visitComponentElement(this); // visiting the fill component, not the parent component if (fillComponent instanceof JRVisitable) { ((JRVisitable) fillComponent).visit(visitor); } }
@Override public void visit(JRVisitor visitor) { visitor.visitCrosstab(this); if (ElementsVisitorUtils.visitDeepElements(visitor)) { new CrosstabDeepVisitor(visitor).deepVisitCrosstab(this); } }
@Override public void visit(JRVisitor visitor) { visitor.visitFrame(this); if (ElementsVisitorUtils.visitDeepElements(visitor)) { ElementsVisitorUtils.visitElements(visitor, getChildren()); } }
@Override public void visit(JRVisitor visitor) { if (ElementsVisitorUtils.visitDeepElements(visitor) && contents != null) { ElementsVisitorUtils.visitElements(visitor, contents.getChildren()); } }
/** * */ private static JRStaticText getProxy(final JRStaticText staticText, final String suffix) { return (JRStaticText)Proxy.newProxyInstance( HeaderLabelUtil.class.getClassLoader(), new Class<?>[]{JRStaticText.class}, new InvocationHandler() { @Override public Object invoke( Object proxy, Method method, Object[] args ) throws Throwable { if ("getText".equals(method.getName())) { return staticText.getText() + suffix; } if ("visit".equals(method.getName())) { ((JRVisitor)args[0]).visitStaticText((JRStaticText)proxy); return null; } return method.invoke(staticText, args); } } ); }
@Override public void visit(JRVisitor visitor) { if (ElementsVisitorUtils.visitDeepElements(visitor)) { ColumnElementsVisitor columnElementsVisitor = new ColumnElementsVisitor(visitor); for (BaseColumn column : columns) { column.visitColumn(columnElementsVisitor); } } }
@Override public void visit(JRVisitor visitor) { visitor.visitRectangle(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitChart(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitGenericElement(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitLine(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitSubreport(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitStaticText(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitTextField(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitImage(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitEllipse(this); }
@Override public void visit(JRVisitor visitor) { visitor.visitBreak(this); }