tornadofx v1.7.5 Release Notes

Release Date: 2017-05-19 // almost 7 years ago
  • Important notice: The field builder used to operate on the inputContainer inside the Field. This has been changed so that it now operates on the field itself. If you did something like parent.isVisible = false to hide the field, you must now change your code to isVisible = false. This new behavior is more as one would expect and hopefully the change won't cause any trouble to anyone.

    โž• Additions

    • ๐Ÿ— ListMenu.item builder gets tag parameter (can be used to identify the item)
    • EventTarget.tag and tagProperty, useful for identifying Tabs, ListMenuItem and other components used in "selected" situations.
    • Map.queryString creates an URL encoded query string from a Map. Useful for REST calls.
    • Tab.enableWhen/disableWhen/visibleWhen
    • ๐Ÿ— TabPane.tab builder takes optional tag parameter. If no text parameter is supplied, tag.toString() is used
    • ๐Ÿ–จ Node.cache will create and cache a node inside another node. Useful for Cell implementations to reduce memory footprint. graphic = cache { createNode() }
    • ๐Ÿ‘ Rest client supports PATCH (https://github.com/edvin/tornadofx/issues/320)
    • โš  warning(), error(), confirmation() and information() shortcuts to alert()
    • Command bindings accepts optional parameter using invoke: button { command = someCommand(someParam) } or button { command = someCommand with someParam }
    • ๐Ÿ‘ ChoiceBox now supports Commanding
    • ๐Ÿ‘ TextField now supports Commanding
    • TreeTableSmartResize.POLICY - activate with smartResize() (https://github.com/edvin/tornadofx/issues/316)
    • โœ‚ removeWhen/visibleWhen/enableWhen/disableWhen etc functions now also take an observable instead of a function that returns an observable.
    • ๐Ÿ— The label builder is now capable of taking a graphic node label("some text", graphic)
    • ComboBoxBase.required() validator
    • SmartResize.POLICY can now be installed by calling smartResize() on any TableView
    • SmartResize will automatically resize if the itemsProperty of the TableView changes value
    • Workspace.showHeadingLabelProperty controls whether the heading is shown in the Workspace toolbar or not
    • TableView/TreeTableView requestResize() will reapply SmartResize policy, useful after content change
    • Column.makeEditable() works for all number subclasses
    • Workspace navigateForward and navigateBack explicit functions
    • ๐Ÿ’… Style builder for MenuItem (https://github.com/edvin/tornadofx/issues/327)
    • ๐Ÿ— imageview builder overloads that accepts observable urls or images

    ๐Ÿ›  Fixed

    • ๐Ÿ‘ AutoJsonModel supports String types
    • HTTPUrlConnection based Rest Client Engine will read data from response even when not successful
    • ๐Ÿ‘Œ Support view reloading in OSGi environment
    • Live Views did not reload changed classes correctly
    • ๐Ÿ›  Fixed equals/hashCode in FXEventRegistration, could cause events to not fire on similar components
    • ๐Ÿ’ป lazyPopulate child factory was called on UI thread (https://github.com/edvin/tornadofx/issues/318)
    • SmartResize.requestResize() some times resulted in misaligned column headers
    • ๐Ÿ‘ JsonModelAuto supports more types and doesn't produce duplicates (before: name and nameProperty - now: just name)
    • SmartResize flickers (https://github.com/edvin/tornadofx/issues/321)
    • ๐Ÿšš Workspace navigation (viewPos index) stays intact even when views are manually removed from the viewStack
    • ObservableValue.select() notice changes to outer property (https://github.com/edvin/tornadofx/issues/326)
    • Ignore duplicate onUndock call when both parent and scene are set to null

    ๐Ÿ”„ Changes

    • โœ‚ Removed Workspace experimental warning
    • alert content parameter is now optional
    • commandProperty and commandParameterProperty are now writable so you can choose between bind or assign
    • โš  CSS warning should not be issued in OSGi environment, since bundle activator installs CSS URL Handler
    • ๐Ÿ— All shape builders accepts Number instead of Double so you can write circle(10, 10, 5) instead of circle(10.0, 10.0, 5.0)
    • ๐Ÿšš ComboBox.validator moved to ComboBoxBase.validator to support ColorPicker and DatePicker as well
    • โœ‚ Removed InstanceScoped and removed it from Wizard. It was not needed.
    • ๐Ÿ— Deprecated menuitem builders in favor of item builders, which work the same way as other builders with respect to action (IDEA provides quick fix)
    • TreeView.lazyPopulate() is now data driven. If the returned list is observable, changes will be reflected in the tree (https://github.com/edvin/tornadofx/issues/317)
    • ๐Ÿ— field builder now operates on the field itself instead of the inputContainer. You can now hide() the field directly in the function reference.
    • ๐Ÿ‘ TableColumn.useProgressBar() supports Number subtypes instead of only Double