tornadofx v1.6.1 Release Notes

Release Date: 2017-01-26 // over 7 years ago
    • whenSaved and whenRefreshed lambdas as alternative to overriding onSave and onRefresh
    • Workspace onSave and onDock delegates to the docked View
    • InputStream.toJSON and .toJSONArray + resources.json(key) and resources.jsonArray(key)
    • Color.derive and Color.ladder
    • Rest.Response implements Closeable so it can be useed (https://github.com/edvin/tornadofx/issues/237)
    • UIComponent disableSave() and disableRefresh()
    • can now bind to a pojo by providing only a single getter ( eg. person.observable( JavaPerson::getId ) )
      • API break: previously returned a PojoProperty - now returns an ObjectProperty
      • uses javafx.beans.property.adapter.JavaBeanObjectPropertyBuilder and will now propogate PropertyChangeEvents from the pojo
    • UIComponent.headingProperty is ObservableValue for easier binding
    • ๐Ÿ— field builder supports orientation parameter which will cause input container to be a VBox instead of an HBox (https://github.com/edvin/tornadofx/issues/190)
    • UIComponents can now be instantiated manually instead of via inject() and find()
    • ๐Ÿ— Input Control builders now support ObservableValue instead of just Property for automatic binding
    • ListView.useCheckbox()
    • ItemViewModel.asyncItem helper to reload the underlying item
    • Corrected Workspace.dockInNewScope, docking was performed in the old scope (!)