1.4.0
manuel-mauky
released this
02 Nov 10:45
·
416 commits
to develop
since this release
This release contains mostly improvements and bugfixes:
Improvements
- [#221] The ModelWrapper now supports mapping for (observable) lists. Thx to @lihop for this contribution.
- [#247] JFX-Testrunner is now integrated in mvvmfx-testing-utils. This util is still in beta state and will be further improved in the future.
- [#275] The
CachedViewModelCellFactory
now supports customization of theViewListCells
. - [#287] The implementation of the
NotificationCenter
can now be replaced with the new MethodNotificationCenterFactory.setNotificationCenter(...)
. This can make testing easier because you can now use a mock notification center. - [#258] The
GCVerifier
had a dependency to the assertJ library. This dependency was removed. - [#293] The
CachedViewModelCellFactory
has now a shortcut method for use cases where the cell is an mvvmFX-View. For example:CachedViewModelCellFactory.createFxmlView(MyView.class);
creates a cellfactory, that loads anMyView
for every cel. - [#303] A new check in the loading mechanism was added. When a View tries to inject a ViewModel with
@InjectViewModel
we now check that the type of the ViewModel matches the declared generic type of the View. - [#269] Maven dependencies are now using the maven dependency management feature. Thx to @tomasz for this contribution.
- [#279] For the mvvmfx-cdi module the dependency to
org.jboss.weld.se:weld-se
was replaced withweld-se-core
asweld-se
is an uber-jar. This should prevent dependency problems when using other libraries that also have dependencies to weld-se. Thx to @tomasz for this contribution.
Bugfixes
- [#281] The ListTransformation util was firing multiple change events when multiple elements where added. This was leading to problems with
FilteredList
. Now only one change event is fired. - [#292] Under some special conditions a new ViewModel instance was created even if an existing instance was provided to the FluentViewLoader.
- [#301] NotificationCenter was throwing a NullPointerException when trying to remove an observer that isn't registered.
Documentation
- [#252] Documentation for the
@InjectViewModel
annotation in combination with dependency injection frameworks was added in the wiki. - [#217] All examples are now restructured. The "examples" directory contains 3 big example applications books-example, contacts-example and todomvc-example. Additionally there is a subdirectory "mini-examples" for the smaller examples like the helloworld app.