Skip to content

1.2.0

Compare
Choose a tag to compare
@manuel-mauky manuel-mauky released this 04 May 12:33
· 547 commits to develop since this release

This release mainly contains improvements for the beta features ModelWrapper and Commands that where added in the last release. Additionally there are changed for the Notifications mechanism.

Commands (BETA)

Docs: https://github.com/sialcasa/mvvmFX/wiki/Commands

  • The Command interface now has a progress property that is similar to the progress property of JavaFX's Task class.
    The DelegateCommand is now implemented as a subclass of Service. Instead of a 'Runnable' it now takes a 'Supplier'
    as argument where Action is a subclass of Task<Void>. (#218 and #225)
  • The 'Command' has now a property 'notExecutable' which is the negated version of 'executable'. This way binding to the 'disable' property of a Button is easier. (#210)

ModelWrapper (BETA)

Docs: https://github.com/sialcasa/mvvmFX/wiki/ModelWrapper

  • In version 1.1.0 the ModelWrapper was creating fields of type Property<String>, Property<Integer>, Property<Number> and so on.
    This makes databinding complicated. In the new release the created type ìs StringProperty and IntegerProperty etc. which will simplify data binding a lot. (#211)

Notifications

Docs: https://github.com/sialcasa/mvvmFX/wiki/NotificationCenter

  • It is now possible to send notifications directly from the ViewModel to the corresponding View
    without using the global NotificationCenter. (#203)
  • A bug was fixed where an observer was still registered after unsubscribe when the same observer instance was subscribed multiple times. (#223)