Class EmfBooleanDataBinding<T extends org.eclipse.emf.ecore.EObject>

Type Parameters:
T - The type of EObject container
All Implemented Interfaces:
AbstractDataBinding<Boolean>, ContainerDataBinding<T,Boolean>, EmfDataBinding<T,Boolean>

public class EmfBooleanDataBinding<T extends org.eclipse.emf.ecore.EObject> extends ContainerBooleanDataBinding<T> implements EmfDataBinding<T,Boolean>
A specialized boolean data binding implementation for EMF (Eclipse Modeling Framework) models. Extends ContainerBooleanDataBinding and implements EmfDataBinding to provide EMF-specific boolean binding functionality.
Author:
Ionov Ivan
See Also:
  • Constructor Details

    • EmfBooleanDataBinding

      public EmfBooleanDataBinding()
  • Method Details

    • feature

      public EmfBooleanDataBinding<T> feature(org.eclipse.emf.ecore.EStructuralFeature feature)
      Sets the EMF structural feature to bind to the checkbox. Automatically configures the value extractor and handler to work with the EMF feature.
      Parameters:
      feature - The EMF structural feature to bind
      Returns:
      this binding instance for method chaining
    • createBinding

      public void createBinding()
      Description copied from interface: AbstractDataBinding
      Creates and initializes the data binding.
      Specified by:
      createBinding in interface AbstractDataBinding<T extends org.eclipse.emf.ecore.EObject>
      Overrides:
      createBinding in class ContainerBooleanDataBinding<T extends org.eclipse.emf.ecore.EObject>
    • getFeature

      public org.eclipse.emf.ecore.EStructuralFeature getFeature()
      Description copied from interface: EmfDataBinding
      Gets the EMF structural feature being bound.
      Specified by:
      getFeature in interface EmfDataBinding<T extends org.eclipse.emf.ecore.EObject,Boolean>
      Returns:
      The EStructuralFeature representing the model attribute being bound to the UI control. This defines which property of the EObject container is being observed/modified.