ButtonText.javathis — allowing calendar configuration to be composed inline. Serialized to JSON by Jackson and embedded in the FullCalendar initialization JavaScript.All setters return ButtonText (not void), enabling chained calls: new ButtonText().setPrev("Zurück").setNext("Vor").setToday("Heute"). This is the standard pattern throughout the FullCalendar model classes (Config, Event, EventSource, Header) — all use fluent setters for concise configuration in Java code.
Jackson serializes this object to a JSON object like {"prev":"Prev","next":"Next","prevYear":"Prev Year",...}. Only non-null fields are included (Jackson's default behavior), so if a button text isn't customized, the FullCalendar JavaScript client falls back to its built-in defaults for that button.
The FullCalendar header can display buttons in three sections (left, center, right) with any combination of navigation commands. Each command can have custom text: prev/next for month navigation, prevYear/nextYear for year navigation, today for the "jump to today" button, and month/week/day for the view switcher buttons.
| Commit | What changed |
|---|---|
868d6abb7 through ceb63e8a1 | Six annual copyright header updates. The DTO's field list and fluent API have remained unchanged — the FullCalendar button label model accurately represents all button positions the JavaScript library supports, and no additional buttons have been needed. |