Class IconLabelComponentXmlWriter
- java.lang.Object
-
- net.sf.jasperreports.components.iconlabel.IconLabelComponentXmlWriter
-
- All Implemented Interfaces:
ComponentXmlWriter
public class IconLabelComponentXmlWriter extends Object implements ComponentXmlWriter
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IconLabelComponentXmlWriter(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNewerVersionOrEqual(String currentVersion, String oldVersion)booleanisToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)Specifies whether this component should be written out.protected voidwriteIconLabelComponent(IconLabelComponent iconLabelComponent, ComponentKey componentKey, JRXmlWriter reportWriter)voidwriteToXml(JRComponentElement componentElement, JRXmlWriter reportWriter)Outputs the XML representation of a component.
-
-
-
Constructor Detail
-
IconLabelComponentXmlWriter
public IconLabelComponentXmlWriter(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
isToWrite
public boolean isToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)
Description copied from interface:ComponentXmlWriterSpecifies whether this component should be written out. This is useful for versioning.- Specified by:
isToWritein interfaceComponentXmlWriter
-
writeToXml
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
Description copied from interface:ComponentXmlWriterOutputs the XML representation of a component.- Specified by:
writeToXmlin interfaceComponentXmlWriter- Parameters:
componentElement- the component elementreportWriter- the report writer to which output is to be written- Throws:
IOException- exceptions produced while writing to the output stream- See Also:
ComponentKey.getNamespacePrefix(),JRXmlWriter.getXmlWriteHelper()
-
writeIconLabelComponent
protected void writeIconLabelComponent(IconLabelComponent iconLabelComponent, ComponentKey componentKey, JRXmlWriter reportWriter) throws IOException
- Throws:
IOException
-
-