RFR: 8369836: Update HeaderBar API [v8]

Michael Strauß mstrauss at openjdk.org
Thu Jan 1 10:28:48 UTC 2026


> The `HeaderBar` control currently has three areas: `leading`, `center`, and `trailing`. Additionally, there's `leftSystemInset` and `rightSystemInset`, which are not RTL adjusted. I've come to the understanding that there is no particularly good reason for this, because every time you would want to use this information for layout purposes, it should also be adjusted for RTL.
> 
> With this in mind, there are three changes for the `HeaderBar` control:
> 1. Rename `leading` to `left`, and `trailing` to `right`, which aligns the terminology with `BorderPane`.
> 2. Adjust `leftSystemInset` and `rightSystemInset` for RTL.
> 3. Make `leftSystemInset`, `rightSystemInset`, and `minSystemHeight` attached properties for `Stage`.
> 
> With this change, the `HeaderBar` control is more semantically consistent and easier to use, and the renamed `left` and `right` areas now show its close relationship with `BorderPane`.

Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:

  HeaderDragType.TRANSPARENT/TRANSPARENT_SUBTREE

-------------

Changes:
  - all: https://git.openjdk.org/jfx/pull/1936/files
  - new: https://git.openjdk.org/jfx/pull/1936/files/6cf87e00..aa8ce81d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1936&range=07
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1936&range=06-07

  Stats: 300 lines in 5 files changed: 237 ins; 21 del; 42 mod
  Patch: https://git.openjdk.org/jfx/pull/1936.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1936/head:pull/1936

PR: https://git.openjdk.org/jfx/pull/1936


More information about the openjfx-dev mailing list