1 28 package net.sf.jasperreports.engine.base; 29 30 import java.io.IOException ; 31 32 import net.sf.jasperreports.engine.JRAbstractObjectFactory; 33 import net.sf.jasperreports.engine.JRChild; 34 import net.sf.jasperreports.engine.JRConstants; 35 import net.sf.jasperreports.engine.JRExpressionCollector; 36 import net.sf.jasperreports.engine.JRStaticText; 37 import net.sf.jasperreports.engine.xml.JRXmlWriter; 38 39 40 46 public class JRBaseStaticText extends JRBaseTextElement implements JRStaticText 47 { 48 49 50 53 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 54 55 58 protected String text = null; 59 60 61 64 protected JRBaseStaticText(JRStaticText staticText, JRBaseObjectFactory factory) 65 { 66 super(staticText, factory); 67 68 text = staticText.getText(); 69 } 70 71 72 75 public String getText() 76 { 77 return this.text; 78 } 79 80 83 public void setText(String text) 84 { 85 this.text = text; 86 } 87 88 91 public JRChild getCopy(JRAbstractObjectFactory factory) 92 { 93 return factory.getStaticText(this); 94 } 95 96 99 public void collectExpressions(JRExpressionCollector collector) 100 { 101 collector.collect(this); 102 } 103 104 107 public void writeXml(JRXmlWriter writer) throws IOException 108 { 109 writer.writeStaticText(this); 110 } 111 112 113 } 114 | Popular Tags |