最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - DynamicJasper Conditional Style - Stack Overflow

programmeradmin0浏览0评论

I have just started DynamicJasper and trying to figure out how to apply conditional formatting.

I have these columns with data coming from Database.

    AbstractColumn caTypeColumn = ColumnBuilder.getNew()
            .setColumnProperty("caType", String.class.getName())
            .setTitle("Type")
            .setWidth(100)
            .build();


    AbstractColumn caCodeColumn = ColumnBuilder.getNew()
            .setColumnProperty("caCode", String.class.getName())
            .setTitle("Code")
            .setWidth(150)
            .build();

and so one

I want to make all these values BOLD based on value=1 in column caTypeColumn.

I have tried to fiddle with this example without success: ://dynamicjasper/2010/10/06/how-to-use-conditional-styles/

发布评论

评论列表(0)

  1. 暂无评论