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)
.Modifier and Type | Method and Description |
---|---|
ViewTuple<ViewType,ViewModelType> |
load()
The final step of the Fluent API.
|
FluentViewLoader.JavaViewStep<ViewType,ViewModelType> |
resourceBundle(ResourceBundle resourceBundle)
Provide a
ResourceBundle that is used while loading this view. |
FluentViewLoader.JavaViewStep<ViewType,ViewModelType> |
viewModel(ViewModelType viewModel)
This param is used to define an existing viewModel instance to be used when loading the view.
|
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.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 ViewTuple<ViewType,ViewModelType> load()
Copyright © 2015 Saxonia Systems AG. All rights reserved.