本文整理汇总了Java中net.sf.jasperreports.engine.JRRuntimeException类的典型用法代码示例。如果您正苦于以下问题:Java JRRuntimeException类的具体用法?Java JRRuntimeException怎么用?Java JRRuntimeException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRRuntimeException类属于net.sf.jasperreports.engine包,在下文中一共展示了JRRuntimeException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: fill
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public JRPrintElement fill()
{
try
{
printText = (JRPrintText)textField.fill();
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
printElement.setY(fillContext.getElementPrintY());
printElement.setHeight(printText.getHeight());
copy(printElement);
return printElement;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:TextInputComponentFill.java
示例2: deserialize
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public Object deserialize(String data)
{
if (data.equals("true"))
{
return Boolean.TRUE;
}
if (data.equals("false"))
{
return Boolean.FALSE;
}
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_UNKNOWN_DATA,
new Object[]{data});
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:17,代码来源:JRValueStringUtils.java
示例3: setColumnNames
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
/**
* Specifies an array of strings representing column names matching field names in the report template
*/
public void setColumnNames(String[] columnNames)
{
if (processingStarted)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_CANNOT_MODIFY_PROPERTIES_AFTER_START,
(Object[])null);
}
this.columnNames = new LinkedHashMap<String, Integer>();
for (int i = 0; i < columnNames.length; i++)
{
this.columnNames.put(columnNames[i], Integer.valueOf(i));
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:JRCsvDataSource.java
示例4: visitColumn
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public FillColumn visitColumn(Column column)
{
try
{
boolean toPrint = toPrintColumn(column, evaluation);
if (toPrint)
{
JRPropertiesMap properties = evaluateProperties(column, evaluation);
return new FillColumn(column, properties);
}
return null;
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:FillTable.java
示例5: visitUPCA
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public void visitUPCA(UPCAComponent upcA)
{
try
{
startBarcode(upcA);
writeBaseAttributes(upcA);
xmlWriteHelper.addAttribute("checksumMode", upcA.getChecksumMode());
writeBaseContents(upcA);
endBarcode();
}
catch (IOException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:17,代码来源:BarcodeXmlWriter.java
示例6: getChartRenderableFactory
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
/**
*
*/
public ChartRenderableFactory getChartRenderableFactory(String renderType)
{
String factoryClass = JRPropertiesUtil.getInstance(jasperReportsContext).getProperty(ChartRenderableFactory.PROPERTY_CHART_RENDERER_FACTORY_PREFIX + renderType);
if (factoryClass == null)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_RENDERER_FACTORY_NOT_SPECIFIED,
new Object[]{renderType});
}
try
{
return CHART_RENDERABLE_FACTORY_CACHE.getCachedInstance(factoryClass);
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:24,代码来源:ChartUtil.java
示例7: getExpression
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
public ExpressionIndexes getExpression(int id)
{
if (id >= expressionIndexes.size())
{
throw
new JRRuntimeException(
JavaScriptCompileData.EXCEPTION_MESSAGE_KEY_EXPRESSION_NOT_FOUND,
new Object[]{id});
}
ExpressionIndexes expr = expressionIndexes.get(id);
if (expr == null)
{
throw
new JRRuntimeException(
JavaScriptCompileData.EXCEPTION_MESSAGE_KEY_EXPRESSION_NOT_FOUND,
new Object[]{id});
}
return expr;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:JavaScriptCompiledData.java
示例8: initializeGraphEnv
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
/**
*
*/
public static synchronized void initializeGraphEnv()
{
if (AVAILABLE_FONT_FACE_NAMES == null)
{
AVAILABLE_FONT_FACE_NAMES = new HashSet<String>();
try
{
AVAILABLE_FONT_FACE_NAMES.addAll(
Arrays.asList(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames())
);
}
catch(Exception e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_INITIALIZATION_ERROR,
(Object[])null,
e);
}
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRGraphEnvInitializer.java
示例9: performAction
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public void performAction()
{
// JasperDesign jasperDesign = getJasperDesign();
JasperDesignCache cache = JasperDesignCache.getInstance(getJasperReportsContext(), getReportContext());
Map<String, JasperDesignReportResource> cachedResources = cache.getCachedResources();
for (String uri : cachedResources.keySet())
{
JasperDesignReportResource resource = cachedResources.get(uri);
JasperDesign jasperDesign = resource.getJasperDesign();
if (jasperDesign != null)
{
JasperReport jasperReport = resource.getReport();
String appRealPath = null;//FIXMECONTEXT WebFileRepositoryService.getApplicationRealPath();
try
{
JRSaver.saveObject(jasperReport, new File(new File(new File(appRealPath), "WEB-INF/repository"), uri));//FIXMEJIVE harcoded
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
}
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:SaveAction.java
示例10: evaluateExpression
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
public Object evaluateExpression(Script expression)
{
ensureContext();
Object value = expression.exec(context, scope);
Object javaValue;
// not converting Number objects because the generic conversion call below
// always converts to Double
if (value == null || value instanceof Number)
{
javaValue = value;
}
else
{
try
{
javaValue = Context.jsToJava(value, Object.class);
}
catch (EvaluatorException e)
{
throw new JRRuntimeException(e);
}
}
return javaValue;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:JavaScriptEvaluatorScope.java
示例11: processFont
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
/**
*
*/
protected byte[] processFont(JasperReportsContext jasperReportsContext, String basePath, HtmlFontFamily htmlFontFamily)
{
FontFamilyHtmlResourceHandler resourceHandler = new FontFamilyHtmlResourceHandler(basePath, htmlFontFamily);
String fontCss = HtmlFontUtil.getInstance(jasperReportsContext).getHtmlFont(resourceHandler, null, htmlFontFamily, true, true);
try
{
return fontCss.getBytes("UTF-8");
}
catch (UnsupportedEncodingException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:FontWebResourceHandler.java
示例12: getPercentageCalculatorClass
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public Class<?> getPercentageCalculatorClass()
{
if (percentageCalculatorClass == null)
{
String className = getPercentageCalculatorClassRealName();
if (className != null)
{
try
{
percentageCalculatorClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_PERCENTAGE_CALCULATOR_CLASS_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return percentageCalculatorClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRBaseCrosstabMeasure.java
示例13: getValueClass
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:JRBaseCrosstabBucket.java
示例14: createSubreportFiller
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
protected BaseReportFiller createSubreportFiller(final PartPrintOutput output) throws JRException
{
SectionTypeEnum sectionType = jasperReport.getSectionType();
sectionType = sectionType == null ? SectionTypeEnum.BAND : sectionType;
BaseReportFiller filler;
switch (sectionType)
{
case BAND:
filler = createBandSubfiller(output);
break;
case PART:
filler = createPartSubfiller(output);
break;
default:
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_UNKNOWN_REPORT_SECTION_TYPE,
new Object[]{sectionType});
}
return filler;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:24,代码来源:SubreportFillPart.java
示例15: getIncrementerFactoryClass
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public Class<?> getIncrementerFactoryClass()
{
if (incrementerFactoryClass == null)
{
String className = JRClassLoader.getClassRealName(incrementerFactoryClassName);
if (className != null)
{
try
{
incrementerFactoryClass = JRClassLoader.loadClassForName(className);
}
catch (ClassNotFoundException e)
{
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_MEASURE_INCREMENTER_LOAD_ERROR,
(Object[])null,
e);
}
}
}
return incrementerFactoryClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:26,代码来源:BaseDataMeasure.java
示例16: putReference
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
protected void putReference(int typeValue, ReferenceType referenceType, Object value)
{
Map<Object, Integer> objectsMap = writtenObjects[typeValue - SerializationConstants.OBJECT_TYPE_OFFSET];
if (objectsMap == null)
{
switch (referenceType)
{
case OBJECT:
objectsMap = new HashMap<Object, Integer>();
break;
case IDENTITY:
objectsMap = new IdentityHashMap<Object, Integer>();
break;
default:
throw
new JRRuntimeException(
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REFERENCE_TYPE,
new Object[]{referenceType});
}
writtenObjects[typeValue - SerializationConstants.OBJECT_TYPE_OFFSET] = objectsMap;
}
int objectIndex = objectsMap.size();
objectsMap.put(value, objectIndex);
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:27,代码来源:VirtualizationOutput.java
示例17: waitConfirmation
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
public boolean waitConfirmation(int processStartTimeout)
{
try
{
boolean done = startLatch.await(processStartTimeout, TimeUnit.MILLISECONDS);
if (log.isDebugEnabled())
{
log.debug(processId + " done " + done + ", confirmed " + confirmed);
}
return confirmed;
}
catch (InterruptedException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:17,代码来源:ProcessOutputReader.java
示例18: visitUSPSIntelligentMail
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public void visitUSPSIntelligentMail(
USPSIntelligentMailComponent intelligentMail)
{
try
{
startBarcode(intelligentMail);
writeBaseAttributes(intelligentMail);
writeFourStateAttributes(intelligentMail);
writeBaseContents(intelligentMail);
endBarcode();
}
catch (IOException e)
{
throw new JRRuntimeException(e);
}
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:BarcodeXmlWriter.java
示例19: getValueClass
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
/**
* @deprecated To be removed.
*/
@Override
public Class<?> getValueClass()
{
if (valueClass == null)
{
String className = getValueClassRealName();
if (className != null)
{
try
{
valueClass = JRClassLoader.loadClassForName(className);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
}
return valueClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:25,代码来源:JRBaseExpression.java
示例20: getIncrementerFactoryClass
import net.sf.jasperreports.engine.JRRuntimeException; //导入依赖的package包/类
@Override
public Class<?> getIncrementerFactoryClass()
{
if (incrementerFactoryClass == null)
{
String className = getIncrementerFactoryClassRealName();
if (className != null)
{
try
{
incrementerFactoryClass = JRClassLoader.loadClassForName(className);
}
catch(ClassNotFoundException e)
{
throw new JRRuntimeException(e);
}
}
}
return incrementerFactoryClass;
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:22,代码来源:JRBaseVariable.java
注:本文中的net.sf.jasperreports.engine.JRRuntimeException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论