Class AbstractBooleanDataBinding

java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractBooleanDataBinding
All Implemented Interfaces:
AbstractDataBinding<Boolean>
Direct Known Subclasses:
BooleanDataBinding, ContainerBooleanDataBinding

public abstract class AbstractBooleanDataBinding extends Object implements AbstractDataBinding<Boolean>
An abstract implementation of AbstractDataBinding for binding boolean values to SWT Button controls (typically used for checkboxes). This class handles the two-way synchronization between a boolean model value and an SWT checkbox widget.

The binding automatically:

  • Updates the checkbox state when the model changes
  • Updates the model when the checkbox is toggled by the user
  • Prevents unnecessary updates when values haven't actually changed
Author:
Ionov Ivan
See Also:
  • Field Details

    • checkbox

      protected org.eclipse.swt.widgets.Button checkbox
  • Constructor Details

    • AbstractBooleanDataBinding

      public AbstractBooleanDataBinding()
  • Method Details