Integrated: 8092102: Labeled: textTruncated property
Andy Goryachev
angorya at openjdk.org
Wed May 8 14:23:03 UTC 2024
On Mon, 4 Mar 2024 21:04:28 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> 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 (...)
This pull request has now been integrated.
Changeset: 7699c448
Author: Andy Goryachev <angorya at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/7699c448bbdfe4213f74eb47409d9c42b16b59a4
Stats: 396 lines in 7 files changed: 337 ins; 28 del; 31 mod
8092102: Labeled: textTruncated property
Reviewed-by: kpk, kcr, arapte
-------------
PR: https://git.openjdk.org/jfx/pull/1389
More information about the openjfx-dev
mailing list