Class EmfTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractTextDataBinding<V>
com.amalgamasimulation.desktop.binding.widgets.ContainerTextDataBinding<T,V>
com.amalgamasimulation.desktop.binding.widgets.EmfTextDataBinding<T,V>
- Type Parameters:
T- The type of EObject containerV- The type of the bound feature value
- All Implemented Interfaces:
AbstractDataBinding<V>,ContainerDataBinding<T,,V> EmfDataBinding<T,V>
public class EmfTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
extends ContainerTextDataBinding<T,V>
implements EmfDataBinding<T,V>
A specialized text data binding implementation for EMF (Eclipse Modeling Framework) models.
Extends
ContainerTextDataBinding and implements EmfDataBinding to provide
EMF-specific text binding functionality.- Author:
- Ionov Ivan
- See Also:
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerTextDataBinding
containerObservable, handler, modelChangeListener, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractTextDataBinding
background, canBeNull, controlDecoration, readonly, strategy, text -
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 text control.org.eclipse.emf.ecore.EStructuralFeatureGets the EMF structural feature being bound.Methods inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerTextDataBinding
containerObservable, doAction, executeToModel, executeToTarget, getContainer, getValue, handler, valueExtractorMethods inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractTextDataBinding
background, canBeNull, enable, isSenseless, readonly, setControl, strategyMethods 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
-
EmfTextDataBinding
public EmfTextDataBinding()
-
-
Method Details
-
feature
Sets the EMF structural feature to bind to the text control. Configures automatic value extraction and command-based updates through EMF's editing domain.- 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 classContainerTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
-
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,V> - Returns:
- The
EStructuralFeaturerepresenting the model attribute being bound to the UI control. This defines which property of the EObject container is being observed/modified.
-