RFR: 8185831: Pseudo selectors do not appear to work in Node.lookupAll() [v9]
Kevin Rushforth
kcr at openjdk.org
Fri Oct 27 16:47:50 UTC 2023
On Thu, 26 Oct 2023 18:39:45 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Sai Pradeep Dandem has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Minor change
>> - Updated documentation in regards with pseudo states lookup
>
> modules/javafx.graphics/src/main/java/javafx/scene/Node.java line 1984:
>
>> 1982: * a pseudo state "myPseudo", then to find all nodes with "myPseudo" state, the lookupAll method can be used as follows:
>> 1983: * <code>scene.lookupAll(".myStyle:myPseudo");</code> or <code>scene.lookupAll(":myPseudo");</code>
>> 1984: * </p>
>
> Added explanation is very good! I would add one more thing - that if no pseudo class is specified by the lookup selector, the result will contain nodes with pseudo classes (that is, pseudo classes are ignored).
>
> Minor note: should we be using {@code ... } instead of < code > ?
The second example is good. I echo my above comments about adding "For example, ".
> modules/javafx.graphics/src/main/java/javafx/scene/Node.java line 2005:
>
>> 2003: * @param selector The Selector.
>> 2004: * @param results The results.
>> 2005: * @return List of matching nodes. The returned value can be null.
>
> minor: I don't think we should capitalize text in @ param and @ return
Agreed. Please change "The" and "List" to lower case.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1245#discussion_r1374807822
PR Review Comment: https://git.openjdk.org/jfx/pull/1245#discussion_r1374807878
More information about the openjfx-dev
mailing list