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.
|
ViewTuple<ViewType,ViewModelType> |
load()
The final step of the Fluent API.
|
FluentViewLoader.FxmlViewStep<ViewType,ViewModelType> |
resourceBundle(ResourceBundle resourceBundle) |
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> resourceBundle(ResourceBundle resourceBundle)
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 © 2015 Saxonia Systems AG. All rights reserved.