public class FXMLLoaders extends Object
FXMLLoader.| Modifier and Type | Method and Description |
|---|---|
static javafx.fxml.FXMLLoader |
createFXMLLoader(Class<?> type)
Creates a new
FXMLLoader. |
static Object |
load(javafx.fxml.FXMLLoader loader,
Class<?> type)
Loads the <class name>.fxml file, which is expected to be in the same package as the specified type.
|
static void |
loadRoot(Class<?> type,
Object rootController)
Loads the <class name>.fxml file, which is expected to be in the same package as the specified type.
|
static void |
loadRoot(Object rootController)
Loads the <class name>.fxml file, where <class name> is the type of the specified rootController and
the FXML-file is expected to be in the same package.
|
public static javafx.fxml.FXMLLoader createFXMLLoader(Class<?> type)
FXMLLoader. ClassLoader to the ClassLoader of the specified typeResourceBundle by looking for a Bundle.properties file in the package of the specified type (or a locale specific derivation) using the default Localetype - the type specifing the ClassLoader and the package of the Bundle.properties fileFXMLLoaderpublic static void loadRoot(Object rootController) throws IOException
ClassLoader to the ClassLoader of the type of the rootControllerResourceBundle by looking for a Bundle.properties file in the package of the type of
the specified rootController (or a locale specific derivation) using the default Locale<fx:root type="{super-type}" xmlns:fx="http://javafx.com/fxml">
rootController - the Object acting as the root and as the controller.IOExceptionpublic static void loadRoot(Class<?> type, Object rootController) throws IOException
ClassLoader to the ClassLoader of the specified typeResourceBundle by looking for a Bundle.properties file in the package of the specified
type (or a locale specific derivation) using the default Locale<fx:root type="{super-type}" xmlns:fx="http://javafx.com/fxml">
type - the typerootController - the Object acting as the root and as the controller.IOExceptionpublic static Object load(javafx.fxml.FXMLLoader loader, Class<?> type) throws IOException
loader - the FXMLLoadertype - the typeIOExceptionCopyright © 2012–2014 Drombler. All rights reserved.