tornadofx v1.5.3 Release Notes
Release Date: 2016-08-02 // over 7 years ago-
โ Added
App.createPrimaryScene
overridable function to specify how the scene for the primary View is created- ๐ OSGI manifest metadata
- LayoutDebugger can edit new Node properties:
spacing
- ๐ Stylesheets can be dynamically added at runtime and will affect all active scenes
- Convenience methods for creating bindings on any object. e.g.
stringBinding(person, person.firstNameProperty, person.lastNameProperty) { "$firstName, #lastName" }
- View/Fragment takes optional title in constructor
๐ Changed
- ๐ UIComponent.showModal now supports reopening even if modalStage was never removed
fieldset
block now operates on anHBox
instead ofPane
so you can writealignment = Pos.BASELINE_RIGHT
to right-align buttons etc- Set modalStage before showAndWait() (https://github.com/edvin/tornadofx/pull/151)
- ๐
Parent.find
andUIComponent.find
renamed tolookup
for better alignment with JavaFXlookup
and to avoid confusion withfind(View::class)
- ๐ Improved
BorderPane
builders, they also now acceptUIComponent
references instead of instances - ๐ Builders now operate on
EventTarget
instead ofPane
and as a result, many builders have improved syntax and functionality - ๐
Reduced boilerplate for
App
creation (you can now useclass MyApp : App(MyView::class, Styles::class)
- โช ViewModel
commit
androllback
run on the UI thread because decorators might be invoked - ViewModel
commit
accepts a function that will be run if the commit is successful - ๐
find
can now also findFragments
, sofindFragment
is deprecated lookup
takes an optional op that operates on the UIComponent it foundTreeTableView/TableView.populate
accepts any kind ofIterable<T>
instead ofList