Threading and Node.lookup

Tom Schindl tom.schindl at bestsolution.at
Wed Mar 20 05:04:35 PDT 2013


On 20.03.13 12:59, Philipp Dörfler wrote:
> Oh, turns out I had no idea that CSS selectors can be that complex! Yes, I certainly don't want to replicate this. Might be a good exercise, though.
>

had no idea myself before I started working on the CSS-Editor ;-)

See
  * http://www.w3.org/TR/CSS2/selector.html
  * http://www.w3.org/TR/selectors/

Not all of those selectors work in JavaFX but i gives you an expression 
how complex those can get.

So if you create an API you better not allow CSS-Selectors but:
* findById(String)
* findByClassNames(String ...)

BTW if you need an intermediate complex solution there is JXPath 
allowing you to traverse Java-Object graphs using XPath ;-)

http://commons.apache.org/proper/commons-jxpath/

Tom


More information about the openjfx-dev mailing list