On Thu, 12 Mar 2026 19:20:56 GMT, Andy Goryachev <[email protected]> wrote:

>> modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model/StyleAttributeMap.java
>>  line 363:
>> 
>>> 361:      * @return the paragraph alignment attribute value
>>> 362:      */
>>> 363:     public TabStop[] getTabStops() {
>> 
>> `@since 27`
>> 
>> And would it be better to return a `List`?
>
> There might be benefits, but this would not compile:
> 
> `public static final StyleAttribute<List<TabStop>> TAB_STOPS = 
> StyleAttribute.paragraph("TAB_STOPS", List<TabStop>.class);`
> 
> The idea here is to make the declaration and usage of it completely type-safe.

That's too bad, since List<TabStop> seems like a cleaner API. It might worth 
filing a follow-on RFE to see if there is a way to make it work. Perhaps ask 
Joe about it when you file the CSR?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1800#discussion_r3082634416

Reply via email to