RFR: 8301121: RichTextArea Control (Incubator) [v29]

Alexander Zuev kizune at openjdk.org
Wed Oct 30 15:37:23 UTC 2024


On Tue, 29 Oct 2024 19:56:39 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model/CodeTextModel.java line 95:
>> 
>>> 93:                 protected void invalidated() {
>>> 94:                     TextPos end = getDocumentEnd();
>>> 95:                     SyntaxDecorator d = get();
>> 
>> What does the get() method return? Why is it a decorator? I'm confused...
>
> it is in the context of `SimpleObjectProperty<SyntaxDecorator>()`
> 
> this is a common pattern in FX controls' properties

Thanks for explanation, now i get() it.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1524#discussion_r1822886132


More information about the openjfx-dev mailing list