Open JonDoeBerlin opened 2 years ago
Hi,
please add the package com.jfoenix.controls.base to the exports. This way the IFXValidatableControl interface could be used. Simple example for usage:
com.jfoenix.controls.base
public List<IFXValidatableControl> getAllValidatableControls(Node pNode) { List<IFXValidatableControl> controls = new ArrayList<>(); if (pNode instanceof IFXValidatableControl) { controls.add((IFXValidatableControl) pNode); } if (pNode instanceof Parent) { for (Node node : ((Parent) pNode).getChildrenUnmodifiable()) { controls.addAll(getAllValidatableControls(node)); } } if (pNode instanceof ScrollPane) { controls.addAll(getAllValidatableControls(((ScrollPane) pNode).getContent())); } return controls; }
I used this for Binding so I could check if any "errors" exists on the given node to toggle a Buttons enabledProperty.
Hi,
please add the package
com.jfoenix.controls.base
to the exports. This way the IFXValidatableControl interface could be used. Simple example for usage:I used this for Binding so I could check if any "errors" exists on the given node to toggle a Buttons enabledProperty.