[API Review] RT-15314

Tom Schindl tom.schindl at bestsolution.at
Wed May 29 23:16:12 PDT 2013


I'd go for option 3 at this

Tom

Von meinem iPhone gesendet

Am 29.05.2013 um 23:51 schrieb David Hill <David.Hill at oracle.com>:

> 
> We have a request <https://javafx-jira.kenai.com/browse/RT-15314> to allow non-sandboxed applications to disable the "ESC to exit full screen" overly (and the associated ESC action to exit Full Screen).
> 
> This is needed for "kiosk" style applications where Full Screen should only be under programmatic control.
> 
> I have several options to present, but all of them have an underlying change, which is the addition of a system property to disable the overlay behavior:
>    -Djavafx.fullScreenWarning=false
> 
> API Option One: Add to Platform, providing for a system toggle that is static.
>  public static void setFullScreenWarning(boolean warn)
>  public static boolean getFullScreenWarning()
> 
> Note: I considered other options, like Application, but felt they were poor fits. I am willing to listen to reason though.
> 
> API Option Two: Add to Stage. This would be a per instance change, and not a global toggle:
>  public void setFullScreenWarning(boolean warn)
>  public boolean getFullScreenWarning()
> 
> API Option Three: don't change the API at this point, rely only on the system properly to disable the overlay.
> 
> Note: option three seems to be a reasonable solution for many of the users of this functionality, because in a "kiosk" style application you can control the launching anyway.
> 
> -- 
> David Hill <David.Hill at Oracle.com>
> Java Embedded Development
> 
> "In the business world, the rearview mirror is always clearer than the windshield."
> -- Warren Buffett (1930 - )
> 


More information about the openjfx-dev mailing list