API request: WebEngine settings
Peter Zhelezniakov
Peter.Zhelezniakov at oracle.com
Fri Apr 27 05:47:00 PDT 2012
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