Fork me on GitHub
#cljfx
<
2021-06-24
>
thom10:06:42

has anyone here wrapped (and maybe even published) the ControlsFX CheckTreeView for use in cljfx? http://javadox.com/org.controlsfx/controlsfx/8.40.10/org/controlsfx/control/CheckTreeView.html. I think I can probably work it out based on the existing TreeView and how the MultipleSelectionModel is implemented but would be happy to do less work. 🙂

vlaaad11:06:33

haven’t tried, you can use cljfx.composite/props and cljfx.composite/describe macros to wrap those, e.g. like https://github.com/cljfx/cljfx/blob/master/src/cljfx/fx/tree_view.clj#L28-L60. I also have a https://github.com/cljfx/cljfx/blob/master/dev/user.clj#L5 infer-props to infer some props from a given JavaFX class, that can help.