public class MvvmFX extends Object
Constructor and Description |
---|
MvvmFX() |
Modifier and Type | Method and Description |
---|---|
static NotificationCenter |
getNotificationCenter() |
static void |
setCustomDependencyInjector(javafx.util.Callback<Class<?>,Object> injector)
This method is used to integrate the mvvmFX framework into your dependency injection environment.
|
static void |
setGlobalResourceBundle(ResourceBundle resourceBundle)
This method is used to set a global
ResourceBundle for the application. |
public static NotificationCenter getNotificationCenter()
NotificationCenter
.public static void setCustomDependencyInjector(javafx.util.Callback<Class<?>,Object> injector)
FXMLLoader.setControllerFactory(javafx.util.Callback)
that is normally used with JavaFX's
fxml.injector
- a callback that returns instances for given class types.public static void setGlobalResourceBundle(ResourceBundle resourceBundle)
ResourceBundle
for the application.
This resource bundle is automatically loaded for all views. If there is an resourceBundle provided
while loading the view (via FluentViewLoader.FxmlViewStep.resourceBundle(ResourceBundle)
or
FluentViewLoader.JavaViewStep.resourceBundle(ResourceBundle)
) both resourceBundles will be merged.
The global resourceBundle set by this method will have a lower priority then the ones provided while loading. If there are keys available in both resourceBundles, the values of the global resourceBundle will be overwritten.
resourceBundle
- the resourceBundleCopyright © 2015 Saxonia Systems AG. All rights reserved.