java - DynamicJasper Conditional Style - Stack Overflow

admin2025-04-16  1

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/

转载请注明原文地址:http://www.anycun.com/QandA/1744764883a87297.html