Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide shortcut for CachedViewModelCellFactory #293

Closed
manuel-mauky opened this issue Aug 16, 2015 · 0 comments
Closed

provide shortcut for CachedViewModelCellFactory #293

manuel-mauky opened this issue Aug 16, 2015 · 0 comments
Milestone

Comments

@manuel-mauky
Copy link
Collaborator

The CachedViewModelCellFactory has to be created with a Function as argument that takes a VM
and calls the FluentViewLoader with the given VM as argument.

In some cases this is needed f.e. when a specific loading process needs to be done (like giving a special resourceBundle to the FluentViewLoader).

But in most cases the Function looks the same:

CachedViewModelCellFactory.create(vm -> FluentViewLoader.fxmlView(MyView.class).viewModel(vm).load());

We could provide a shortcut method for these usecases like this:

CachedViewModelCellFactory.createFxmlView(MyView.class);

Internally we can create the function with the given View type. We need to provide two methods: One for FxmlViews and one for JavaViews.

@manuel-mauky manuel-mauky added this to the 1.4.0 milestone Aug 18, 2015
manuel-mauky added a commit that referenced this issue Aug 18, 2015
#293 simpler factory methods for CachedViewModelCellFactory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant