MaterialFX/wiki/Lists.md
palexdev ff8f531b59 ♻️ Minor changes and bug fixes
📝 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>
2022-02-04 14:02:36 +01:00

3.3 KiB

Lists

Preview

Listviews

MFXListViews

  • Style Class: mfx-list-view

  • Default Stylesheet: MFXListView.css

  • Default Skin: MFXListViewSkin.java

  • Default Cell: MFXListCell.java

Properties

Property Description Type
items The items list property ObservableList
converter Specifies the StringConverter used to convert a generic item to a String, used by the list cells StringConverter
selectionModel The model holding the list's selection IMultipleSelectionModel
cellFactory Specifies the function used to build the list's cells Function
trackColor Specifies the color of the scrollbars' track Paint
thumbColor Specifies the color of the scrollbars' thumb Paint
thumbHoverColor Specifies the color of the scrollbars' thumb when mouse hover Paint
hideAfter Specifies the time after which the scrollbars are hidden Duration

Styleable Properties

Property Description CSS Property Type Default Value
hideScrollBars Specifies if the scrollbars should be hidden when the mouse is not on the list -mfx-hide-scrollbars Boolean false
depthLevel Specifies the shadow strength around the control -mfx-depth-level DepthLevel[Enum] DepthLevel.LEVEL2

CSS Selectors

  • .mfx-list-view

  • .mfx-list-view .virtual-flow

  • .mfx-list-view .virtual-flow .scroll-bar

  • .mfx-list-view .virtual-flow .mfx-list-cell

  • .mfx-list-view .virtual-flow .mfx-list-cell .mfx-ripple-generator

  • .mfx-list-view .virtual-flow .mfx-list-cell .data-label (cell's text)

MFXCheckListViews

  • Style Class: mfx-check-list-view

  • Default Stylesheet: MFXCheckListView.css

  • Default Skin: MFXListViewSkin.java

  • Default Cell: MFXCheckListCell.java

Properties and Styleable Properties

This list view has the same exact properties and styleable properties as MFXListView.

CSS Selectors

  • .mfx-check-list-view

  • .mfx-check-list-view .virtual-flow

  • .mfx-check-list-view .virtual-flow .scroll-bar

  • .mfx-check-list-view .virtual-flow .mfx-check-list-cell

  • .mfx-check-list-view .virtual-flow .mfx-check-list-cell .mfx-ripple-generator

  • .mfx-check-list-view .virtual-flow .mfx-check-list-cell .data-label (cell's text)

  • .mfx-check-list-view .virtual-flow .mfx-check-list-cell .mfx-checkbox