Package fr.iMath.controllers
Class WebController
java.lang.Object
fr.iMath.controllers.WebController
- All Implemented Interfaces:
javafx.fxml.Initializable
public class WebController
extends java.lang.Object
implements javafx.fxml.Initializable
JavaFX: Load a website in a canvas
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.web.WebView
webView
-
Constructor Summary
Constructors Constructor Description WebController()
-
Method Summary
Modifier and Type Method Description void
initialize(java.net.URL location, java.util.ResourceBundle resources)
void
showWeb(java.lang.String url)
Load a web page from a URL
-
Field Details
-
webView
public javafx.scene.web.WebView webView
-
-
Constructor Details
-
WebController
public WebController()
-
-
Method Details
-
showWeb
public void showWeb(java.lang.String url)Load a web page from a URL- Parameters:
url
- website to show
-
initialize
public void initialize(java.net.URL location, java.util.ResourceBundle resources)- Specified by:
initialize
in interfacejavafx.fxml.Initializable
-