Skip to content

feat: add ChartFunction setters for all function options (#10797) (CP: 25.4) - #10820

Merged
mcollovati merged 1 commit into
25.4from
cherry-pick-10797-to-25.4-1795541604592
Nov 24, 2026
Merged

mcollovati merged 1 commit into
25.4from
cherry-pick-10797-to-25.4-1795541604592

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #10797 to branch 25.4.


Description

Part of #10723
Depends on #10796

  • Added setXFunction(ChartFunction) and getXFunction() for the remaining function options
    • Accessibility, Breadcrumbs, Condition, ContextButtonMenuItem, CrosshairLabel, DragHandle, Exporting, ExportingMenuItemDefinition, Legend, RangeSelector, SeriesTooltip, StackLabels
    • pointDescriptionFormatter of the PlotOptions* classes
  • Kept the pointDescriptionFormatter field and methods of AreaOptions, OhlcOptions, PointOptions and PyramidOptions in the abstract base class, with protected clear hooks, so application subclasses keep compiling
  • Each String setter clears its function, and the Javadoc says so
  • Added ChartFunctionSettersTest, which finds every option from its _fn_ field and checks all 53 setter pairs by reflection

Type of change

  • Feature

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Checkstyle issues resolved.

Part of #10723
Depends on #10796

- Added `setXFunction(ChartFunction)` and `getXFunction()` for the
remaining function options
- `Accessibility`, `Breadcrumbs`, `Condition`, `ContextButtonMenuItem`,
`CrosshairLabel`, `DragHandle`, `Exporting`,
`ExportingMenuItemDefinition`, `Legend`, `RangeSelector`,
`SeriesTooltip`, `StackLabels`
  - `pointDescriptionFormatter` of the `PlotOptions*` classes
- Kept the `pointDescriptionFormatter` field and methods of
`AreaOptions`, `OhlcOptions`, `PointOptions` and `PyramidOptions` in the
abstract base class, with protected clear hooks, so application
subclasses keep compiling
- Each `String` setter clears its function, and the Javadoc says so
- Added `ChartFunctionSettersTest`, which finds every option from its
`_fn_` field and checks all 53 setter pairs by reflection

- Feature
@mcollovati
mcollovati force-pushed the cherry-pick-10797-to-25.4-1795541604592 branch from 05333ef to ab0dd32 Compare November 24, 2026 20:00
@mcollovati
mcollovati merged commit d0043f1 into 25.4 Nov 24, 2026
22 of 24 checks passed
@mcollovati
mcollovati deleted the cherry-pick-10797-to-25.4-1795541604592 branch November 24, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants