ViewType - the generic type of the View that should be loaded. This type
has to implement JavaView.ViewModelType - the generic type of the ViewModel. This type has to implement
ViewModel.public static class FluentViewLoader.JavaViewStep<ViewType extends JavaView<? extends ViewModelType>,ViewModelType extends ViewModel> extends Object
FluentViewLoader with the method
FluentViewLoader.javaView(Class).public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> context(Context context)
public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> providedScopes(Scope... providedScopes)
public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> providedScopes(Collection<Scope> providedScopes)
public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> resourceBundle(ResourceBundle resourceBundle)
ResourceBundle that is used while loading this
view. Note: It is possible to provide a global application-wide
resourceBundle via
MvvmFX.setGlobalResourceBundle(ResourceBundle) method.
If there is a global resourceBundle set it will be merged with the
resourceBundle provided by this builder method. The resourceBundle
provided by this method will have a higher priority then the global
one which means that if there are duplicate keys, the values of the
global resourceBundle will be overwritten and the values of this
resourceBundle will be used.
It is possible to add multiple resourceBundles by invoking this builder method
multiple times. In this case the last provided resourceBundle will have the
highest priority when it comes to overwriting values with the same keys.resourceBundle - the resource bundle that is used while loading the view.public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> viewModel(ViewModelType viewModel)
viewModel - the viewModel instance that is used to load the java view.public FluentViewLoader.JavaViewStep<ViewType,ViewModelType> codeBehind(ViewType codeBehind)
codeBehind - the codeBehind instance that is used to load this java
view.public ViewTuple<ViewType,ViewModelType> load()
Copyright © 2019 Saxonia Systems AG. All rights reserved.