tornadofx v1.7.5 Release Notes
Release Date: 2017-05-19 // almost 7 years ago-
Important notice: The
field
builder used to operate on theinputContainer
inside theField
. This has been changed so that it now operates on the field itself. If you did something likeparent.isVisible = false
to hide the field, you must now change your code toisVisible = 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) }
orbutton { 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 nodelabel("some text", graphic)
- ComboBoxBase.required() validator
- SmartResize.POLICY can now be installed by calling
smartResize()
on anyTableView
- 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
andnavigateBack
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
andcommandParameterProperty
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 ofDouble
so you can writecircle(10, 10, 5)
instead ofcircle(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 ofitem
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