DynamicReports (JasperReports) - check if a component list is empty
DynamicReports is a Java api to dynamically produce JasperReports using purely java (i.e., no jrxml).
the horizontalList and verticalList components can be used to consolidate other components together including text, images, subreports, or even other lists.
I was working with these and wanted at one point my my algorithm to know how to check if a list component is empty. You can perform this as follows:
HorizontalListBuilder myList = cmp.horizontalList(); // other code goes here ... myList.getList().getListCells().isEmpty();












