Class TriStateCheckBoxTreeBinders

java.lang.Object
com.inductiveautomation.ignition.designer.mvvm.binders.swing.TriStateCheckBoxTreeBinders

@NullMarked public class TriStateCheckBoxTreeBinders extends Object
Binders for TriStateCheckBoxTree that manage checked state via a two-path design.

Programmatic update path — when the checkedNodes property emits, the binder syncs the TriStateCheckBoxTree.TriStateSelectionModel from the current BindableTreeNode.CheckBoxState values on each node. The publisher is expected to have already set node states before emitting.

User-click path — when the user clicks a checkbox, the binder reads the raw checked set from TriStateCheckBoxTree.TriStateSelectionModel and passes it to the callback. The callback (typically a ViewModel) is responsible for deriving the correct BindableTreeNode.CheckBoxState for all affected nodes and emitting an updated checked set. After the callback returns, the binder syncs JIDE from the updated node states as a safety net for cases where the callback did not emit.

The binder itself is stateless with respect to derivation — it never sets BindableTreeNode.CheckBoxState directly.

  • Constructor Details

    • TriStateCheckBoxTreeBinders

      public TriStateCheckBoxTreeBinders()
  • Method Details