public class ExtendedFXMLLoader
extends java.lang.Object
FXMLLoader
if
not found.
The greatly improves performance because a precompiled .class file can be
used whereas FXMLLoader
has to use reflection to create instances at
runtimeModifier and Type | Class and Description |
---|---|
static interface |
ExtendedFXMLLoader.Data<N,C>
Constructed information
|
Constructor and Description |
---|
ExtendedFXMLLoader() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
load(@NonNull java.lang.ClassLoader cl,
@Nullable java.util.ResourceBundle resourceBundle,
@NonNull java.lang.String path)
Load the FXML file
|
static <T> T |
load(@NonNull java.lang.ClassLoader cl,
@Nullable java.util.ResourceBundle resourceBundle,
T root,
@NonNull java.lang.String path)
Load the FXML file
|
static <T> T |
load(@NonNull java.lang.ClassLoader cl,
@NonNull java.lang.String path)
Load the FXML file
|
static <N,C> ExtendedFXMLLoader.Data<N,C> |
loadWithController(@NonNull java.lang.ClassLoader cl,
@Nullable java.util.ResourceBundle resourceBundle,
@Nullable javafx.util.Callback<java.lang.Class<?>,java.lang.Object> controllerFactory,
@NonNull java.lang.String path)
Load the FXML file
|
static <N,D extends N,C> |
loadWithController(@NonNull java.lang.ClassLoader cl,
@Nullable java.util.ResourceBundle resourceBundle,
D root,
@Nullable javafx.util.Callback<java.lang.Class<?>,java.lang.Object> controllerFactory,
@NonNull java.lang.String path)
Load the FXML file
|
public static <T> T load(@NonNull java.lang.ClassLoader cl, @NonNull java.lang.String path) throws java.io.IOException
cl
- the classloader to usepath
- the path to the FXML-Filejava.io.IOException
public static <T> T load(@NonNull java.lang.ClassLoader cl, @Nullable java.util.ResourceBundle resourceBundle, @NonNull java.lang.String path) throws java.io.IOException
cl
- the classloader to useresourceBundle
- the l10n bundle for localizationpath
- the path to the FXML-Filejava.io.IOException
public static <T> T load(@NonNull java.lang.ClassLoader cl, @Nullable java.util.ResourceBundle resourceBundle, T root, @NonNull java.lang.String path) throws java.io.IOException
cl
- the classloader to useroot
- the root node if fx:root is usedresourceBundle
- the l10n bundle for localizationpath
- the path to the FXML-Filejava.io.IOException
public static <N,C> ExtendedFXMLLoader.Data<N,C> loadWithController(@NonNull java.lang.ClassLoader cl, @Nullable java.util.ResourceBundle resourceBundle, @Nullable javafx.util.Callback<java.lang.Class<?>,java.lang.Object> controllerFactory, @NonNull java.lang.String path) throws java.io.IOException
cl
- the classloader to useresourceBundle
- the l10n bundle for localizationcontrollerFactory
- an optional controller factorypath
- the path to the FXML-Filejava.io.IOException
public static <N,D extends N,C> @NonNull ExtendedFXMLLoader.Data<N,C> loadWithController(@NonNull java.lang.ClassLoader cl, @Nullable java.util.ResourceBundle resourceBundle, D root, @Nullable javafx.util.Callback<java.lang.Class<?>,java.lang.Object> controllerFactory, @NonNull java.lang.String path) throws java.io.IOException
cl
- the classloader to useresourceBundle
- the l10n bundle for localizationroot
- the root node if fx:root is usedcontrollerFactory
- an optional controller factorypath
- the path to the FXML-Filejava.io.IOException