本文整理汇总了Java中net.sf.jasperreports.engine.JRConstants类的典型用法代码示例。如果您正苦于以下问题:Java JRConstants类的具体用法?Java JRConstants怎么用?Java JRConstants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRConstants类属于net.sf.jasperreports.engine包,在下文中一共展示了JRConstants类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
positionValue = EdgeEnum.getByValue(position);
position = null;
}
if (blockFrame != null && frame == null)// check version?
{
frame = new BlockFrameWrapper(blockFrame);
blockFrame = null;
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:LegendSettings.java
示例2: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3)
{
shapeValue = MeterShapeEnum.getByValue(shape);
meterAngleInteger = Integer.valueOf(meterAngle);
tickIntervalDouble = Double.valueOf(tickInterval);
}
else
{
shapeValue = MeterShapeEnum.getByValue(shapeByte);
shapeByte = null;
}
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:21,代码来源:JRBaseMeterPlot.java
示例3: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
// this fixes a problem with JFreeChart that changed the default value of isCircular at some point.
// look into Git history for details
ObjectInputStream.GetField fields = in.readFields();
//the following lines are required because above we called readFields(), not defaultReadObject()
labelFormat = (String) fields.get("labelFormat", null);
legendLabelFormat = (String) fields.get("legendLabelFormat", null);
itemLabel = (JRItemLabel) fields.get("itemLabel", null);
showLabels = (Boolean) fields.get("showLabels", null);
PSEUDO_SERIAL_VERSION_UID = fields.get("PSEUDO_SERIAL_VERSION_UID", 0);
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3)
{
boolean circularField = fields.get("isCircular", true);
circular = Boolean.valueOf(circularField);
}
else
{
circular = (Boolean) fields.get("circular", null);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:23,代码来源:JRBasePiePlot.java
示例4: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
styleResolver = StyleResolver.getInstance();
if (detail != null)
{
detailSection = new JRBaseSection(detail);
detail = null;
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
whenNoDataTypeValue = WhenNoDataTypeEnum.getByValue(whenNoDataType);
printOrderValue = PrintOrderEnum.getByValue(printOrder);
orientationValue = OrientationEnum.getByValue(orientation);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:21,代码来源:JRBaseReport.java
示例5: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3)
{
backgroundAlphaFloat = new Float(backgroundAlpha);
foregroundAlphaFloat = new Float(foregroundAlpha);
labelRotationDouble = new Double(labelRotation);
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_4_1_3)
{
orientationValue = PlotOrientationEnum.getByValue(orientation);
orientation = null;
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:JRBaseChartPlot.java
示例6: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:21,代码来源:JRBaseTextField.java
示例7: write
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
* Writes the template to the output writer.
*
* @throws IOException
*/
public void write() throws IOException
{
writer.writeProlog(encoding);
XmlNamespace namespace;
if (isNewerVersionOrEqual(JRConstants.VERSION_6_3_0))
{
namespace = JASPERTEMPLATE_NAMESPACE;
}
else
{
writer.writePublicDoctype(JRXmlConstants.TEMPLATE_ELEMENT_ROOT,
JRXmlConstants.JASPERTEMPLATE_PUBLIC_ID, JRXmlConstants.JASPERTEMPLATE_SYSTEM_ID);
namespace = null;
}
writer.startElement(JRXmlConstants.TEMPLATE_ELEMENT_ROOT, namespace);
writeIncludedTemplates();
writeStyles();
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JRXmlTemplateWriter.java
示例8: writeScriptlet
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
*
*/
private void writeScriptlet(JRScriptlet scriptlet) throws IOException
{
if(isNewerVersionOrEqual(JRConstants.VERSION_3_1_4))
{
writer.startElement(JRXmlConstants.ELEMENT_scriptlet);
writer.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_name, scriptlet.getName());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_class, scriptlet.getValueClassName());
writeProperties(scriptlet);
writer.writeCDATAElement(JRXmlConstants.ELEMENT_scriptletDescription, scriptlet.getDescription());
writer.closeElement();
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:JRXmlWriter.java
示例9: writeParameter
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
*
*/
private void writeParameter(JRParameter parameter) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_parameter);
writer.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_name, parameter.getName());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_class, parameter.getValueClassName());
if(isNewerVersionOrEqual(JRConstants.VERSION_3_1_4))
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_nestedType, parameter.getNestedTypeName());
}
writer.addAttribute(JRXmlConstants.ATTRIBUTE_isForPrompting, parameter.isForPrompting(), true);
if(isNewerVersionOrEqual(JRConstants.VERSION_6_3_1))
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_evaluationTime, parameter.getEvaluationTime());
}
writeProperties(parameter);
writer.writeCDATAElement(JRXmlConstants.ELEMENT_parameterDescription, parameter.getDescription());
writeExpression(JRXmlConstants.ELEMENT_defaultValueExpression, parameter.getDefaultValueExpression(), false);
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRXmlWriter.java
示例10: writeTextElement
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
*
*/
private void writeTextElement(JRTextElement textElement) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_textElement);
writer.addAttribute(JRXmlConstants.ATTRIBUTE_textAlignment, textElement.getOwnHorizontalTextAlign());
VerticalTextAlignEnum vTextAlign = textElement.getOwnVerticalTextAlign();
if (isOlderVersionThan(JRConstants.VERSION_6_2_1))
{
vTextAlign = vTextAlign == VerticalTextAlignEnum.JUSTIFIED ? VerticalTextAlignEnum.TOP : vTextAlign;
}
writer.addAttribute(JRXmlConstants.ATTRIBUTE_verticalAlignment, vTextAlign);
writer.addAttribute(JRXmlConstants.ATTRIBUTE_rotation, textElement.getOwnRotationValue());
if (isOlderVersionThan(JRConstants.VERSION_4_0_2))
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_lineSpacing, textElement.getParagraph().getLineSpacing());
}
writer.addAttribute(JRXmlConstants.ATTRIBUTE_markup, textElement.getOwnMarkup());
writeFont(textElement);
writeParagraph(textElement.getParagraph());
writer.closeElement(true);
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRXmlWriter.java
示例11: writeTableCell
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
protected void writeTableCell(JRComponentElement componentElement, Cell cell, String name,
JRXmlWriter reportWriter) throws IOException
{
if (cell != null)
{
JRXmlWriteHelper writer = reportWriter.getXmlWriteHelper();
writer.startElement(name);
reportWriter.writeStyleReferenceAttr(cell);
writer.addAttribute("height", cell.getHeight());
writer.addAttribute("rowSpan", cell.getRowSpan());
if (isNewerVersionOrEqual(componentElement, reportWriter, JRConstants.VERSION_4_8_0))
{
reportWriter.writeProperties(cell);
}
reportWriter.writeBox(cell.getLineBox(), JRXmlWriter.JASPERREPORTS_NAMESPACE);
reportWriter.writeChildElements(cell);
writer.closeElement();//cell
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:22,代码来源:ComponentsXmlWriter.java
示例12: writePieChart
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
*
*/
public void writePieChart(JRChart chart) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_pieChart, getNamespace());
writeChart(chart);
writePieDataset((JRPieDataset) chart.getDataset());
// write plot
JRPiePlot plot = (JRPiePlot) chart.getPlot();
writer.startElement(JRXmlConstants.ELEMENT_piePlot);
if(isNewerVersionOrEqual(JRConstants.VERSION_3_7_5))
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_isShowLabels, plot.getShowLabels());
}
writer.addAttribute(JRXmlConstants.ATTRIBUTE_isCircular, plot.getCircular());
if(isNewerVersionOrEqual(JRConstants.VERSION_3_1_0))
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_labelFormat, plot.getLabelFormat());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_legendLabelFormat, plot.getLegendLabelFormat());
}
writePlot(chart.getPlot());
writeItemLabel(plot.getItemLabel());
writer.closeElement();
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:29,代码来源:JRXmlWriter.java
示例13: writeTimeSeriesPlot
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
private void writeTimeSeriesPlot(JRTimeSeriesPlot plot) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_timeSeriesPlot);
writer.addAttribute(JRXmlConstants.ATTRIBUTE_isShowLines, plot.getShowLines());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_isShowShapes, plot.getShowShapes());
writePlot( plot );
writeExpression(JRXmlConstants.ELEMENT_timeAxisLabelExpression, plot.getTimeAxisLabelExpression(), false);
writeAxisFormat(JRXmlConstants.ELEMENT_timeAxisFormat, plot.getTimeAxisLabelFont(), plot.getOwnTimeAxisLabelColor(),
plot.getTimeAxisTickLabelFont(), plot.getOwnTimeAxisTickLabelColor(),
plot.getTimeAxisTickLabelMask(), plot.getTimeAxisVerticalTickLabels(), plot.getOwnTimeAxisLineColor());
writeExpression(JRXmlConstants.ELEMENT_valueAxisLabelExpression, plot.getValueAxisLabelExpression(), false);
writeAxisFormat(JRXmlConstants.ELEMENT_valueAxisFormat, plot.getValueAxisLabelFont(), plot.getOwnValueAxisLabelColor(),
plot.getValueAxisTickLabelFont(), plot.getOwnValueAxisTickLabelColor(),
plot.getValueAxisTickLabelMask(), plot.getValueAxisVerticalTickLabels(), plot.getOwnValueAxisLineColor());
if(isNewerVersionOrEqual(JRConstants.VERSION_3_5_0))
{
writeExpression(JRXmlConstants.ELEMENT_domainAxisMinValueExpression, plot.getDomainAxisMinValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_domainAxisMaxValueExpression, plot.getDomainAxisMaxValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_rangeAxisMinValueExpression, plot.getRangeAxisMinValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_rangeAxisMaxValueExpression, plot.getRangeAxisMaxValueExpression(), false);
}
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JRXmlWriter.java
示例14: writeAreaPlot
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
/**
*
*/
private void writeAreaPlot(JRAreaPlot plot) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_areaPlot);
writePlot(plot);
writeExpression(JRXmlConstants.ELEMENT_categoryAxisLabelExpression, plot.getCategoryAxisLabelExpression(), false);
writeCategoryAxisFormat(plot.getCategoryAxisLabelFont(), plot.getOwnCategoryAxisLabelColor(),
plot.getCategoryAxisTickLabelFont(), plot.getOwnCategoryAxisTickLabelColor(),
plot.getCategoryAxisTickLabelMask(), plot.getCategoryAxisVerticalTickLabels(),
plot.getCategoryAxisTickLabelRotation(), plot.getOwnCategoryAxisLineColor());
writeExpression(JRXmlConstants.ELEMENT_valueAxisLabelExpression, plot.getValueAxisLabelExpression(), false);
writeAxisFormat(JRXmlConstants.ELEMENT_valueAxisFormat, plot.getValueAxisLabelFont(), plot.getOwnValueAxisLabelColor(),
plot.getValueAxisTickLabelFont(), plot.getOwnValueAxisTickLabelColor(),
plot.getValueAxisTickLabelMask(), plot.getValueAxisVerticalTickLabels(), plot.getOwnValueAxisLineColor());
if(isNewerVersionOrEqual(JRConstants.VERSION_3_5_0))
{
writeExpression(JRXmlConstants.ELEMENT_domainAxisMinValueExpression, plot.getDomainAxisMinValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_domainAxisMaxValueExpression, plot.getDomainAxisMaxValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_rangeAxisMinValueExpression, plot.getRangeAxisMinValueExpression(), false);
writeExpression(JRXmlConstants.ELEMENT_rangeAxisMaxValueExpression, plot.getRangeAxisMaxValueExpression(), false);
}
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:29,代码来源:JRXmlWriter.java
示例15: writeCrosstabRowGroup
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
protected void writeCrosstabRowGroup(JRCrosstabRowGroup group) throws IOException
{
writer.startElement(JRCrosstabRowGroupFactory.ELEMENT_rowGroup);
writer.addEncodedAttribute(JRCrosstabGroupFactory.ATTRIBUTE_name, group.getName());
writer.addAttribute(JRCrosstabRowGroupFactory.ATTRIBUTE_width, group.getWidth());
writer.addAttribute(JRCrosstabGroupFactory.ATTRIBUTE_totalPosition, group.getTotalPositionValue(), CrosstabTotalPositionEnum.NONE);
writer.addAttribute(JRCrosstabRowGroupFactory.ATTRIBUTE_headerPosition, group.getPositionValue(), CrosstabRowPositionEnum.TOP);
if (isNewerVersionOrEqual(JRConstants.VERSION_6_2_0))
{
writer.addAttribute(JRCrosstabGroupFactory.ATTRIBUTE_mergeHeaderCells, group.getMergeHeaderCells());
}
writeBucket(group.getBucket());
JRCellContents header = group.getHeader();
writer.startElement(JRCrosstabRowGroupFactory.ELEMENT_crosstabRowHeader);
writeCellContents(header);
writer.closeElement();
JRCellContents totalHeader = group.getTotalHeader();
writer.startElement(JRCrosstabRowGroupFactory.ELEMENT_crosstabTotalRowHeader);
writeCellContents(totalHeader);
writer.closeElement();
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JRXmlWriter.java
示例16: readObject
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
GetField fields = in.readFields();
this.PSEUDO_SERIAL_VERSION_UID = fields.get("PSEUDO_SERIAL_VERSION_UID", 0);
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
byte evaluationTime = fields.get("evaluationTime", (byte) 0);
this.evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
}
else
{
this.evaluationTimeValue = (EvaluationTimeEnum) fields.get("evaluationTimeValue", null);
}
this.evaluationGroup = (String) fields.get("evaluationGroup", null);
this.codeExpression = (JRExpression) fields.get("codeExpression", null);
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_6_0_2
&& this instanceof Barcode4jComponent)
{
//up to 6.0.0 this class had several fields that were moved to Barcode4jComponent in 6.0.2.
//copying the values to the Barcode4jComponent fields.
Barcode4jComponent barcode4jComponent = (Barcode4jComponent) this;
barcode4jComponent.copyBarcodeComponentFields(fields);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:BarcodeComponent.java
示例17: writeCellContents
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
protected void writeCellContents(JRCellContents contents) throws IOException
{
if (contents != null)
{
writer.startElement(JRCellContentsFactory.ELEMENT_cellContents);
writer.addAttribute(JRCellContentsFactory.ATTRIBUTE_backcolor, contents.getBackcolor());
writer.addAttribute(JRCellContentsFactory.ATTRIBUTE_mode, contents.getModeValue());
writeStyleReferenceAttr(contents);
if(isNewerVersionOrEqual(JRConstants.VERSION_4_8_0))
{
writeProperties(contents);
}
writeBox(contents.getLineBox());
writeChildElements(contents);
writer.closeElement();
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:21,代码来源:JRXmlWriter.java
示例18: writeDataset
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
public void writeDataset(JRDataset dataset) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_subDataset, getNamespace());
writer.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_name, dataset.getName());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_scriptletClass, dataset.getScriptletClass());
writer.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_resourceBundle, dataset.getResourceBundle());
writer.addAttribute(JRXmlConstants.ATTRIBUTE_whenResourceMissingType, dataset.getWhenResourceMissingTypeValue(), WhenResourceMissingTypeEnum.NULL);
if (
isNewerVersionOrEqual(JRConstants.VERSION_4_6_0)
&& !isExcludeUuids()
)
{
writer.addAttribute(JRXmlConstants.ATTRIBUTE_uuid, dataset.getUUID().toString());
}
writeProperties(dataset);
if (isNewerVersionOrEqual(JRConstants.VERSION_6_3_1))
{
writePropertyExpressions(dataset.getPropertyExpressions());
}
writeDatasetContents(dataset);
writer.closeElement();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JRXmlWriter.java
示例19: writeDataLevelBucket
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
protected void writeDataLevelBucket(DataLevelBucket bucket) throws IOException
{
writer.startElement(JRXmlConstants.ELEMENT_axisLevelBucket);
writer.addAttribute(JRCrosstabBucketFactory.ATTRIBUTE_order, bucket.getOrder(), BucketOrder.ASCENDING);
writer.addAttribute(JRCrosstabMeasureFactory.ATTRIBUTE_class, bucket.getValueClassName());
writer.writeExpression(JRCrosstabBucketFactory.ELEMENT_bucketExpression, bucket.getExpression());
if(isNewerVersionOrEqual(JRConstants.VERSION_6_4_3))
{
writer.writeExpression(JRXmlConstants.ELEMENT_MULTI_AXIS_BUCKET_LABEL_EXPRESSION, bucket.getLabelExpression());
}
writer.writeExpression(JRCrosstabBucketFactory.ELEMENT_comparatorExpression, bucket.getComparatorExpression());
List<DataLevelBucketProperty> bucketProperties = bucket.getBucketProperties();
if (bucketProperties != null)
{
for (DataLevelBucketProperty bucketProperty : bucketProperties)
{
JRExpression valueExpression = bucketProperty.getExpression();
String expressionText = valueExpression == null ? "" : valueExpression.getText();
writer.writeCDATAElement(JRXmlConstants.ELEMENT_bucketProperty, getNamespace(), expressionText,
JRXmlConstants.ATTRIBUTE_name, bucketProperty.getName());
}
}
writer.closeElement();//JRXmlConstants.ELEMENT_axisLevelBucket
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JRXmlWriter.java
示例20: writeExpression
import net.sf.jasperreports.engine.JRConstants; //导入依赖的package包/类
@SuppressWarnings("deprecation")
protected void writeExpression(String name, JRExpression expression, boolean writeClass) throws IOException
{
if(versionComparator.compare(version, JRConstants.VERSION_4_1_1) >= 0 )
{
xmlWriteHelper.writeExpression(name, expression);
}
else
{
xmlWriteHelper.writeExpression(name, expression, writeClass);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:BarcodeXmlWriter.java
注:本文中的net.sf.jasperreports.engine.JRConstants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论