@Override public void visitBreak(JRBreak breakElement) { JRBaseBreak baseBreak = null; if (breakElement != null) { baseBreak = (JRBaseBreak)get(breakElement); if (baseBreak == null) { baseBreak = new JRBaseBreak(breakElement, this); } } setVisitResult(baseBreak); }
@Override public void visitBreak(JRBreak breakElement) { JRFillBreak fillBreak = null; if (breakElement != null) { fillBreak = (JRFillBreak)get(breakElement); if (fillBreak == null) { fillBreak = new JRFillBreak(filler, breakElement, this); } } setVisitResult(fillBreak); }
@Override public void visitBreak(JRBreak breakElement) { try { xmlWriter.writeBreak(breakElement); } catch (IOException e) { throw new JRRuntimeException(e); } }
/** * */ public void writeBreak(JRBreak breakElement) throws IOException { writer.startElement(JRXmlConstants.ELEMENT_break, getNamespace()); writer.addAttribute(JRXmlConstants.ATTRIBUTE_type, breakElement.getTypeValue(), BreakTypeEnum.PAGE); writeReportElement(breakElement); writer.closeElement(); }
/** * */ public void writeBreak( JRBreak breakElement, String breakName) { if(breakElement != null) { write( "JRDesignBreak " + breakName + " = new JRDesignBreak(jasperDesign);\n"); write( breakName + ".setType({0});\n", breakElement.getTypeValue(), BreakTypeEnum.PAGE); writeReportElement( breakElement, breakName); flush(); } }
/** * */ protected JRFillBreak( JRBaseFiller filler, JRBreak breakElement, JRFillObjectFactory factory ) { super(filler, breakElement, factory); }
/** * */ public void visitBreak(JRBreak breakElement) { if (breakElement.getTypeValue() == BreakTypeEnum.PAGE) name = "Page Break"; else name = "Column Break"; }
@Override public void visitBreak(JRBreak breakElement) { //FIXMECONVERT }
@Override public void visitBreak(JRBreak breakElement) { visitor.visitBreak(breakElement); }
@Override public void visitBreak(JRBreak breakElement) { visitElement(breakElement); }
@Override public void visitBreak(JRBreak breakElement) { apiWriter.writeBreak(breakElement, name); }
@Override public void visitBreak(JRBreak breakElement) { // NOOP }
@Override public void visitBreak(JRBreak breakElement) { //FIXMEDRAW }
@Override public BreakTypeEnum getTypeValue() { return ((JRBreak)parent).getTypeValue(); }
@Override public void visitBreak(JRBreak breakElement) { // FIXMEDRAW }
/** * */ public void visitBreak(JRBreak breakElement) { node = new ElementNode(jasperDesign, (JRDesignBreak)breakElement,doLkp); node.setIconBaseWithExtension(ICON_BREAK); }
/** * */ public void visitBreak(JRBreak breakElement) { collector.collect(breakElement); }
@Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { JLabel label = (JLabel)super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); label.setIcon(null); if (value instanceof Node) { Node node = (Node)value; String text = node.getDisplayName(); if (node instanceof ElementNode) { text = ""; JRDesignElement element = ((ElementNode)node).getElement(); if (element instanceof JRBreak) text += "Break"; if (element instanceof JRChart) text += "Chart"; if (element instanceof JRCrosstab) text += "Crosstab"; if (element instanceof JRElementGroup) text += "Element Group"; if (element instanceof JREllipse) text += "Ellipse"; if (element instanceof JRFrame) text += "Frame"; if (element instanceof JRImage) text += "Image"; if (element instanceof JRLine) text += "Line"; if (element instanceof JRRectangle) text += "Rectangle"; if (element instanceof JRStaticText) text += "Static Text"; if (element instanceof JRSubreport) text += "Subreport"; if (element instanceof JRTextField) text += "Text Field"; JRElementGroup parent = ModelUtils.getTopElementGroup(element); if (parent != null && parent instanceof JRDesignBand) text += " in band " + ModelUtils.nameOf(((JRDesignBand)parent).getOrigin()); else if (parent != null && parent instanceof JRDesignCellContents) text += " in cell " + ModelUtils.nameOf(((JRDesignCellContents)parent).getOrigin()); text += " " + node.getDisplayName(); } label.setText(text); label.setIcon( new ImageIcon(node.getIcon(BeanInfo.ICON_COLOR_16x16))); } else if (value instanceof JRDesignExpression) { JRDesignExpression exp = (JRDesignExpression)value; label.setText(exp.getText()); label.setIcon(expressionIcon); } return label; }
/** * Initializes properties that are specific to break elements. Common properties are initialized by its * parent constructors. * @param breakElement an element whose properties are copied to this element. Usually it is a * {@link net.sf.jasperreports.engine.design.JRDesignBreak} that must be transformed into an * <tt>JRBaseBreak</tt> at compile time. * @param factory a factory used in the compile process */ protected JRBaseBreak(JRBreak breakElement, JRBaseObjectFactory factory) { super(breakElement, factory); typeValue = breakElement.getTypeValue(); }