Module MaterialFX

Class TreeCheckModel<T>

java.lang.Object
io.github.palexdev.materialfx.selection.TreeSelectionModel<T>
io.github.palexdev.materialfx.selection.TreeCheckModel<T>
All Implemented Interfaces:
ITreeCheckModel<T>, ITreeSelectionModel<T>

public class TreeCheckModel<T> extends TreeSelectionModel<T> implements ITreeCheckModel<T>
Concrete implementation of the ITreeCheckModel interface.

This provides common methods for items check. Also, since it extends TreeSelectionModel it also provides all the methods for items selection.

The check should be handled internally only. This is because the mechanism is kind of tricky. If you take a look at the MFXCheckTreeItem's skin, MFXCheckTreeItemSkin, you can see that when the checkbox is fired, a CHECK_EVENT is fired and "travels" up to the root. Each item then calls check(MFXCheckTreeItem, CheckTreeItemEvent).

  • Constructor Details

    • TreeCheckModel

      public TreeCheckModel()
  • Method Details