public class ViewLoader
extends java.lang.Object
| Constructor and Description |
|---|
ViewLoader(DependencyInjector di) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
loadView(java.lang.String viewPath,
java.lang.Object... values)
Loads the FXML file represented by the given view.
|
public ViewLoader(DependencyInjector di)
di - the dependency injector to use to inject dependencies in views' controllerspublic <T> T loadView(java.lang.String viewPath,
java.lang.Object... values)
DependencyInjectors.T - the type of the root node of the FXML fileviewPath - the path to the view to loadvalues - the values to pass the controller of the given viewInjectValue,
ViewParam