RFR: 8092102: Labeled: truncated property [v14]

Andy Goryachev angorya at openjdk.org
Fri May 3 21:00:26 UTC 2024


> Adds **Labeled.textTruncated** property which indicates when the text is visually truncated (and the ellipsis string is inserted) in order to fit the available width.
> 
> The new property is being set by the code which computes the actual text string to be displayed (and which inserts the ellipsis string) in `LabeledSkinBase.updateDisplayedText(double,double)`.
> 
> 
> **Alternative**
> 
> None exists as this requires changes to the core (Utils).
> 
> 
> **See Also**
> 
> * [JDK-8327483](https://bugs.openjdk.org/browse/JDK-8327483) TreeView: Allow for tooltip when cell text is truncated
> * [JDK-8205211](https://bugs.openjdk.org/browse/JDK-8205211) Ability to show Tooltip only when text is shown with ellipsis (...)

Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:

  whitespace

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1389/files
  - new: https://git.openjdk.org/jfx/pull/1389/files/7a0dedd4..7d267043

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1389&range=13
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1389&range=12-13

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jfx/pull/1389.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1389/head:pull/1389

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


More information about the openjfx-dev mailing list