Some changes for PR #227🐛 The listeners for the centering should be handled by the property otherwise disabling the centering would not work anymore
✏️ Made some code style changes
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
Beans Package
♻️ SizeBean: override toString() method
Controls Package
💥 Implement an API for controls that can be styled (almost all MFX controls). This API also allows SceneBuilder support for the new styling system introduced by version 11.14.0
Utils Package
✨ Improved When, OnChanged and OnInvalidated constructs by importing them from the latest version of MFXCore
✨ Added utility to detect SceneBuilder at runtime
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
This minor version includes a bunch of kindly submitted PRs and some minor refactor.
Also, Gradle has been updated to version 7.6
Signed-off-by: Alessadro Parisi <alessandro.parisi406@gmail.com>
Controls Package
🐛 MFXTextField: fixed TextFormatter not working. It must be added on the BoundTextField, for this reason, added a delegate property (Fix for #174)
CSS Package
♻️ MFXCSSBridge: do not take into account the Region's user agent stylesheet. If it's needed to specify the user agent the popup's getUserAgentStylesheet() method should be overridden inline, as well as for any other component that mey require it (see MFXComboBoxSkin as an example) (Fix for #173)
Selection Package
♻️ Adds a method to retrieve the selection values as a List (rather than getSelection().values() which returns a generic Collection). Also make MultipleSelectionManager use LinkedHashSet and LinkedHashMap (TreeMap was used, oversight sorry) to keep insertion order for selection, this also ensures that building the values List returns the selected values in the same exact order as in the selection Map (Enhancement for #161)
Skins Package
🐛 MFXComboBoxSkin, MFXFilterComboBoxSkin: fixed an issue that prevented the combo box's popup from being fully customizable with CSS (Fix for #173)
🐛 MFXDatePickerSkin: initialize the picker's text if the initial date is not null (Fix for #172)
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
🐛 Fixed Maven POM once and for all
🐛 MFXTextFieldSkin: fixed bug which caused improper text fill in specific occasions
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
⬆️ Update Gradle plugins
⬆️ Update VirtualizedFX to 11.2.5
📝 Improve ROADMAP
📝 Update Text Fields wiki
✨ MFXTextField added a label to specify the unit of measure (optional, leave blank string to remove)
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
Controls Package
🐛 BoundTextField: remove text formatter binding as it was causing an exception, also it works anyway, so it was unnecessary
🐛 MFXIconWrapper: fix NullPointerException when creating an empty wrapper
♻️ MFXIconWrapper: add handler to acquire focus
Utils Package
🐛 ListChangeProcessor: fix computeRemoval() method returning negative indexes
🐛 ListChangeProcessor: fix findShift() method by including the given index in the count too
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
📝 Update wiki with info about new PseudoClasses
🐛 MFXTextField and all subclasses: fixed an issue with CSS and :focused PseudoClass. It was being ignored in some cases, probably because the inner TextField was stealing the focus to the actual control. To fix this we use a new PseudoClass ":focus-within" to specify that the inner field is focused, so the control should be considered focused as well
🐛 I18N: do not use URLClassLoader to load the ResourceBundles as using MaterialFX is other projects would lead to a MissingResourceException, instead change the bundle base name returned by getBundleBaseName() with the complete path to the bundles
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
⏪ Partially revert commit e5d8e31058564b44a367d182077bab3f55a1c490 as it breaks the Demo
Skins Package
🐛 MFXComboBoxSkin: ensure the caret position is at 0 if the combo box is not selectable
♻️ MFXFilterPaneSkin: properly compute the minimum width
♻️ MFXTableViewSkin: allow to drag the filter dialog
🐛 MFXTableViewSkin: ensure the dialog is on foreground
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
✨ ColorUtils: added some new methods to convert Colors to Strings
♻️ ColorUtils: changed some method to be null-safe
✨ FunctionalStringConverter: added two new convenience methods
✨ New utils class SwingFXUtils (copied from javafx.embed.swing)
Signed-off-by: palexdev <alessandro.parisi406@gmail.com>