ViewType - the generic type of the View that should be loaded. This type
has to implement FxmlView.ViewModelType - the generic type of the ViewModel. This type has to implement
ViewModel.public static class FluentViewLoader.FxmlViewStep<ViewType extends FxmlView<? extends ViewModelType>,ViewModelType extends ViewModel> extends Object
FluentViewLoader with the method
FluentViewLoader.fxmlView(Class).| Modifier and Type | Method and Description |
|---|---|
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
codeBehind(ViewType codeBehind)
This param is used to define an existing instance of the codeBehind
class that is used instead of creating a new one while loading.
|
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
context(Context context) |
ViewTuple<ViewType,ViewModelType> |
load()
The final step of the Fluent API.
|
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
providedScopes(Collection<Scope> providedScopes) |
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
providedScopes(Scope... providedScopes) |
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
resourceBundle(ResourceBundle resourceBundle)
Provide a
ResourceBundle that is used while loading this
view. |
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
root(Object root)
This param is used to define a JavaFX node that is used as the root
element when loading the fxml file.
|
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
viewModel(ViewModelType viewModel)
This param is used to define an existing viewModel instance to be
used when loading the view.
|
public FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> context(Context context)
public FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> providedScopes(Scope... providedScopes)
public FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> providedScopes(Collection<Scope> providedScopes)
public FluentViewLoader.FxmlViewStep<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.FxmlViewStep<ViewType,ViewModelType> root(Object root)
root - the root element that is used to load the fxml file.public FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> codeBehind(ViewType codeBehind)
codeBehind - the codeBehind instance that is used to load the fxml
file.public FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> viewModel(ViewModelType viewModel)
viewModel - the viewModel instance that is used to load the fxml file.public ViewTuple<ViewType,ViewModelType> load()
Copyright © 2016 Saxonia Systems AG. All rights reserved.