本文整理汇总了Java中org.eclipse.birt.report.engine.api.IExcelRenderOption类的典型用法代码示例。如果您正苦于以下问题:Java IExcelRenderOption类的具体用法?Java IExcelRenderOption怎么用?Java IExcelRenderOption使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IExcelRenderOption类属于org.eclipse.birt.report.engine.api包,在下文中一共展示了IExcelRenderOption类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupRenderOptions
import org.eclipse.birt.report.engine.api.IExcelRenderOption; //导入依赖的package包/类
private void setupRenderOptions()
{
IRenderOption renderOptions = service.getRenderOption( );
Object textWrapping = renderOptions.getOption(IExcelRenderOption.WRAPPING_TEXT);
if(textWrapping!=null && textWrapping instanceof Boolean)
{
context.setWrappingText((Boolean)textWrapping);
}
else
{
context.setWrappingText( ( Boolean )true);
}
Object hideGridlines = renderOptions
.getOption( IExcelRenderOption.HIDE_GRIDLINES );
if ( hideGridlines != null && hideGridlines instanceof Boolean )
{
context.setHideGridlines( (Boolean) hideGridlines );
}
else
{
context.setHideGridlines( (Boolean) false );
}
}
示例2: initialize
import org.eclipse.birt.report.engine.api.IExcelRenderOption; //导入依赖的package包/类
public void initialize( IEmitterServices service ) throws EngineException
{
if ( service == null )
{
return;
}
out = EmitterUtil.getOuputStream( service, "report.xls" );
if ( service.getReportEngine( ) != null )
{
this.tempFileDir = service.getReportEngine( ).getConfig( )
.getTempDir( );
}
IReportContext reportContext = service.getReportContext( );
if ( reportContext != null )
{
Locale locale = reportContext.getLocale( );
this.locale = locale == null ? ULocale.getDefault( ) : ULocale
.forLocale( locale );
this.timeZone = reportContext.getTimeZone( );
if ( timeZone == null )
{
timeZone = TimeZone.getDefault( );
}
}
IRenderOption renderOption = service.getRenderOption( );
Object option = renderOption
.getOption( IExcelRenderOption.OPTION_MULTIPLE_SHEET );
if ( option instanceof Boolean )
enableMultipleSheet = (Boolean) option;
this.reportContext = service.getReportContext( );
}
示例3: setReport
import org.eclipse.birt.report.engine.api.IExcelRenderOption; //导入依赖的package包/类
public void setReport( IReportContent report )
{
this.report = report;
IRenderOption renderOptions = report.getReportContext( )
.getRenderOption( );
Object dpi = renderOptions.getOption( IRenderOption.RENDER_DPI );
int renderDpi = 0;
if ( dpi != null && dpi instanceof Integer )
{
renderDpi = ( (Integer) dpi ).intValue( );
}
this.dpi = PropertyUtil.getRenderDpi( report, renderDpi );
Object textWrapping = renderOptions
.getOption( IExcelRenderOption.WRAPPING_TEXT );
if ( textWrapping instanceof Boolean )
{
this.wrappingText = ( (Boolean) textWrapping );
}
Object officeVersion = renderOptions
.getOption( IExcelRenderOption.OFFICE_VERSION );
if ( "office2007".equals( officeVersion ) )
{
this.officeVersion = "office2007";
}
Object hideGridlines = renderOptions
.getOption( IExcelRenderOption.HIDE_GRIDLINES );
if ( hideGridlines instanceof Boolean )
{
this.hideGridlines = (Boolean) hideGridlines;
}
Object ignoreImage = renderOptions
.getOption( IExcelRenderOption.IGNORE_IMAGE );
if ( ignoreImage instanceof Boolean )
{
this.ignoreImage = (Boolean) ignoreImage;
}
ReportDesignHandle designHandle = report.getDesign( ).getReportDesign( );
parseReportOrientation( designHandle );
parseReportLayout( designHandle );
parseSheetName( designHandle );
}