public final class FxmlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Parent |
load(Object controller)
Loads a FXML document using supplied controller.
|
static Parent |
load(Object controller,
String fxmlFile)
Loads an FXML document using specified controller and file.
|
static Parent |
load(Object controller,
URL fxmlURL)
Loads an FXML document using specified controller and URL.
|
public static Parent load(Object controller) throws IOException
controller
plus the ".fxml"
extension.controller
- the controller of the FXML document.Parent
containing the FXML document.NullPointerException
- if controller
is null
.FileNotFoundException
- if the FXML resource was not found.IOException
- if I/O error occurs loading the FXML.public static Parent load(Object controller, String fxmlFile) throws IOException
controller
- the controller of the FXML document.fxmlFile
- the resource name of the FXML document.Parent
containing the FXML document.NullPointerException
- if an argument is null
.FileNotFoundException
- if fxmlFile
was not found.IOException
- if I/O error occurs loading the FXML.public static Parent load(Object controller, URL fxmlURL) throws IOException
controller
- the controller of the FXML document.fxmlURL
- the URL of the FXML document resource.Parent
containing the FXML document.NullPointerException
- if an argument is null
.IOException
- if I/O error occurs loading the FXML.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.