Class EmfBooleanDataBinding<T extends org.eclipse.emf.ecore.EObject>
java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractBooleanDataBinding
com.amalgamasimulation.desktop.binding.widgets.ContainerBooleanDataBinding<T>
com.amalgamasimulation.desktop.binding.widgets.EmfBooleanDataBinding<T>
- 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:
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerBooleanDataBinding
containerObservable, handler, modelChangeListener, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractBooleanDataBinding
checkbox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and initializes the data binding.feature(org.eclipse.emf.ecore.EStructuralFeature feature) Sets the EMF structural feature to bind to the checkbox.org.eclipse.emf.ecore.EStructuralFeatureGets the EMF structural feature being bound.Methods inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerBooleanDataBinding
containerObservable, doAction, executeToModel, executeToTarget, getContainer, getValue, handler, valueExtractorMethods inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractBooleanDataBinding
enable, isSenseless, setControl, updateEnableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.binding.widgets.AbstractDataBinding
createControlDecoration, doAction, enable, executeToModel, executeToTarget, getValue, setControlMethods inherited from interface com.amalgamasimulation.desktop.binding.widgets.ContainerDataBinding
getContainer
-
Constructor Details
-
EmfBooleanDataBinding
public EmfBooleanDataBinding()
-
-
Method Details
-
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:AbstractDataBindingCreates and initializes the data binding.- Specified by:
createBindingin interfaceAbstractDataBinding<T extends org.eclipse.emf.ecore.EObject>- Overrides:
createBindingin classContainerBooleanDataBinding<T extends org.eclipse.emf.ecore.EObject>
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()Description copied from interface:EmfDataBindingGets the EMF structural feature being bound.- Specified by:
getFeaturein interfaceEmfDataBinding<T extends org.eclipse.emf.ecore.EObject,Boolean> - Returns:
- The
EStructuralFeaturerepresenting the model attribute being bound to the UI control. This defines which property of the EObject container is being observed/modified.
-