Re: Re: API request: WebEngine settings
goddard at seznam.cz
goddard at seznam.cz
Fri Apr 27 06:26:34 PDT 2012
Hello,
can you add support for rather experimental WebKit features?
It'd allow us to test and later on use the new HTML5 thingies :)
Regards, Jiri
------------ Původní zpráva ------------
Od: Peter Zhelezniakov <Peter.Zhelezniakov at oracle.com>
Předmět: Re: API request: WebEngine settings
Datum: 27.4.2012 14:48:20
----------------------------------------
On Apr 26, 2012, at 6:53 PM, Richard Bair wrote:
> What is the benefit of having Settings vs adding properties to WebEngine? What
would it look like from FXML?
Well, Webkit has 100+ different customizable settings. I don't think we need all
of them, but I can imagine us having 20-30 settings (e.g. whether to load
images, max number of network connections per server, turn page caching on/off,
user agent ID string etc). So I thought a separate namespace for settings was
appropriate.
>From FXML standpoint the single entry point for javafx.scene.web is currently
WebView. It has a custom builder class that passes some properties to the
underlying WebEngine, e.g.
<WebView location="..."/> calls webView.getEngine().setLocation(...);
and we can extend it so that
<WebView javaScriptEnabled="true"/> calls
webEngine.getEngine().getSettings().setJavaScriptEnabled(true);
Thanks!
--
Peter
More information about the openjfx-dev
mailing list