Class ContainerBooleanDataBinding<T>

java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractBooleanDataBinding
com.amalgamasimulation.desktop.binding.widgets.ContainerBooleanDataBinding<T>
Type Parameters:
T - The type of the container object
All Implemented Interfaces:
AbstractDataBinding<Boolean>, ContainerDataBinding<T,Boolean>
Direct Known Subclasses:
EmfBooleanDataBinding

public class ContainerBooleanDataBinding<T> extends AbstractBooleanDataBinding implements ContainerDataBinding<T,Boolean>
A specialized boolean data binding implementation that works with container objects. Extends AbstractBooleanDataBinding and implements ContainerDataBinding to provide container-aware boolean binding functionality.
Author:
Ionov Ivan
See Also:
  • Field Details

    • containerObservable

      protected org.eclipse.core.databinding.observable.value.IObservableValue<T> containerObservable
      The observable container value that holds the boolean state. Defaults to an empty writable value.
    • modelChangeListener

      protected org.eclipse.core.databinding.observable.value.IValueChangeListener<Object> modelChangeListener
      Listener that handles container value changes and updates the checkbox state.
    • valueExtractor

      protected Function<T,Boolean> valueExtractor
      Function that extracts the boolean value from the container. Defaults to a function that always returns false.
    • handler

      protected BiConsumer<T,Boolean> handler
      Handler that processes new boolean values and updates the container. Defaults to a no-op consumer.
  • Constructor Details

    • ContainerBooleanDataBinding

      public ContainerBooleanDataBinding()
  • Method Details