#714: CellHolder.java

projectforge-business/src/main/java/org/projectforge/framework/renderer/CellHolder.java Data Holder, projectforge-business/src/main/java/org/projectforge/framework/renderer/CellHolder.java 91 lines · 46 code · 32 comments · 13 blank
Simple bean for storing a single table cell's content, colspan, and rowspan values. Used by the XSL-FO / PDF rendering pipeline to compose tabular data.

Structure

A plain Java bean (POJO) with three fields:

FieldTypeDefaultDescription
contentStringnull ("" if constructed with null)The textual content of the cell. toString() returns this directly.
colspanint1Number of columns this cell spans.
rowspanint1Number of rows this cell spans.

Constructors

Notable Behavior

The null-safe constructor ensures getContent() never returns null, preventing NPEs in template rendering. Standard getters/setters are provided for all fields. No validation is performed on colspan/rowspan values.

Git History

868d6abb7 2026-01-01 2025 -> 2026
63081666f 2025-01-01 Source file headers: 2024-> 2025.
b6092df09 2024-01-09 Copyright 2023 -> 2024
ab45d51fa 2023-01-01 Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 2022-02-18 Copyright 2021 -> 2022
ceb63e8a1 2021-03-08 Source code header: (C) 2001-2021.
7c79f1922 2020-01-03 Copyright of source header -> 2020.
dd5ca38ac 2019-06-07 CopyRight of all java file-header updated or created.
9ebb88522 2016-07-18 Initial commit