EN · DE · RU · FR · ES

#2788: Header.java

projectforge-wicket/src/main/java/net/ftlines/wicket/fullcalendar/Header.java Java DTO (FullCalendar Header Layout) · projectforge-wicket/src/main/java/net/ftlines/wicket/fullcalendar/Header.java 73 lines · 28 code · 33 comments · 12 blank
A simple data transfer object that defines the layout of the FullCalendar toolbar — which controls appear in the left, center, and right sections of the calendar's header. Each section accepts a space-separated string of button/command names (e.g., "prev,next today" for the left section, "title" for center, "month,agendaWeek,agendaDay" for right). The layout is serialized to JSON and passed to the FullCalendar JavaScript client as part of the initialization configuration.

Architecture

Three-Section Layout

FullCalendar's header divides into three horizontal regions:

Each field value is a string passed directly to FullCalendar's header option. The space-separated format is FullCalendar convention — commas or spaces separate items, with spaces being the ProjectForge convention.

Fluent API

All setters return Header, consistent with the fluent builder pattern used throughout the FullCalendar model classes. Enables inline configuration: config.getHeader().setLeft("prev,next today").setCenter("title").setRight("month,agendaWeek").

Git History

CommitWhat changed
868d6abb7 through ceb63e8a1Six annual copyright header updates. The three-field layout model has been stable — the header section concept maps directly to FullCalendar's documented configuration options, and no changes to the layout model have been needed.