Re: Enhancements for JavaFX 18

2021-08-08 Thread Ty Young
Oh, and to add one more feature: ability to add context menu to specific 
TreeView cells without going through cell factory.



On 7/30/21 7:56 AM, Kevin Rushforth wrote:
Now that JavaFX 17 is in RDP2, we can turn more attention to bug fixes 
and enhancement requests for JavaFX 18. It's the summer, so there may 
be delays as some people are out at various times (including me), but 
I would like to get some of the outstanding enhancement requests 
moving over the next few weeks.


Specifically, I'd like to see the following proceed:

* Transparent backgrounds in WebView
JBS: https://bugs.openjdk.java.net/browse/JDK-8090547
PR: https://github.com/openjdk/jfx/pull/563

* Add DirectionalLight
JBS: https://bugs.openjdk.java.net/browse/JDK-8234921
PR: https://github.com/openjdk/jfx/pull/548

* CSS pseudoclasses :focus-visible and :focus-within
https://bugs.openjdk.java.net/browse/JDK-8268225
PR: https://github.com/openjdk/jfx/pull/475

* Improve property system to facilitate correct usage (minus the 
binary incompatible API change)

JBS: https://bugs.openjdk.java.net/browse/JDK-8268642
PR: https://github.com/openjdk/jfx/pull/590 (Draft)

And maybe the following:

* Add CSS themes as a first-class concept (need a consensus on how to 
proceed)


* Undecorated interactive stage style (still in early discussion, but 
the concept looks interesting and useful)


There are probably others I'm forgetting.

Each of the above should be discussed in their own thread on 
openjfx-dev rather than a reply to this thread.


-- Kevin




Re: Enhancements for JavaFX 18

2021-08-08 Thread Ty Young



On 8/4/21 5:35 PM, John Hendrikx wrote:



On 04/08/2021 19:05, Ty Young wrote:


* A late "showing" property for when the application has been shown to
the user and all first viewing UI components have had their sizes
calculated and are being displayed, if it doesn't exist already and I'm
completely blind.


Do you mean a property that is true if the current node is visible, 
attached to a scene which is attached to a window which is currently 
showing?


This can be achieved with a small util that takes a Node and returns
an ObservableValue.  I can dig up the code, I use this all 
the time to automatically unbind bindings when UI parts become invisible.



Something like that, yes.




--John


Re: Formatter of LocalDateTimeStringConverter

2021-08-08 Thread Dan Howard

That does look weird. It's the same looking back at the history.

On 8/6/2021 2:21 PM, Nir Lisker wrote:

I'm looking at [1]. The logic to create the formatter seems fishy. First, a
formatter is created. Then, if dateStyle is null, it tries to create a new
formatter that has its year digits fixed.  However, this ignores the
created formatter. Is this correct behavior and it's just the flow control
that is off?

[1]
https://github.com/openjdk/jfx/blob/ba61a17307d48d373fd8faa169ed16821e81c0fd/modules/javafx.base/src/main/java/javafx/util/converter/LocalDateTimeStringConverter.java#L261