[External] : Re: RichTextArea Feedback
Andy Goryachev
andy.goryachev at oracle.com
Tue Nov 4 00:25:10 UTC 2025
Indeed! Filed https://bugs.openjdk.org/browse/JDK-8371183
Thanks,
-andy
From: Jurgen Doll <jurgen at ivoryemr.co.za>
Date: Sunday, November 2, 2025 at 23:18
To: Andy Goryachev <andy.goryachev at oracle.com>
Subject: [External] : Re: RichTextArea Feedback
Hi Andy
> Did I miss anything? Please let me know.
The summary covers most points, just need to also add the issue regarding:
Undoing a style only change fires a change event where ContentChange.isEdit is true when it should be false.
Thanks, regards
Jurgen
On Oct 31 2025, at 7:29 pm, Andy Goryachev <andy.goryachev at oracle.com> wrote:
Dear Jurgen:
Thank you for the feedback! Let's see if I could give a satisfactory response.
> In RichParagraph you have a note to make getSegments() public.
Yes, either this list must be made immutable (by adding some overhead) or we could add getSegmentCount() and getSegmentAt(int). Created RFE https://bugs.openjdk.org/browse/JDK-8371070
> When an INLINE_NODE in RichTextArea is updated and it triggers
requestLayout then the request doesn't propagate all the way up to VFlow
but stops when it reaches TextCell.
Interesting, I'll need to investigate. Created https://bugs.openjdk.org/browse/JDK-8371067
> When a paragraph ends with an INLINE_NODE and one tries to go to the end
of the line/paragraph (either via API or K/B end) then the caret moves
to the starting position of the node and not after it.
Support for inline nodes is not yet complete, see https://bugs.openjdk.org/browse/JDK-8365948
Created https://bugs.openjdk.org/browse/JDK-8371067 to address this specific scenario.
> As expected though paste and undo/redo don't work due to
StyledTextModel's final replace method not handling INLINE_NODE's
This is correct, and I think it might be better to leave up to the (custom) model. The reason for it is it should be up to the application/custom model to decide how to deal with the embedded nodes, especially interactive ones.
There exists a special case of embedding images - images are a binary objects that can be easily duplicated, copied, exported, and pasted. See https://bugs.openjdk.org/browse/JDK-8365949
Did I miss anything? Please let me know.
And keep that feedback coming!
Cheers,
-andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20251104/80ae8657/attachment-0001.htm>
More information about the openjfx-dev
mailing list