public class EMFEditListPropertyDecorator extends ListProperty implements IEMFEditListProperty
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
IEMFListProperty.ListElementAccess<O>| Constructor and Description |
|---|
EMFEditListPropertyDecorator(EditingDomain editingDomain,
IListProperty delegate,
EStructuralFeature eStructuralFeature) |
| Modifier and Type | Method and Description |
|---|---|
EditingDomain |
getEditingDomain() |
java.lang.Object |
getElementType() |
EStructuralFeature |
getStructuralFeature()
Returns the descriptor of the
EStructuralFeature being observed. |
IObservableFactory |
listFactory() |
IObservableFactory |
listFactory(Realm realm) |
IObservableList |
observe(java.lang.Object source) |
IObservableList |
observe(Realm realm,
java.lang.Object source) |
IObservableList |
observeDetail(IObservableValue master) |
java.lang.String |
toString() |
IEMFEditValueProperty |
value(IEMFListProperty.ListElementAccess<?> elementAccess)
This API is highly experimental and if possible will get moved upwards to Core-Databinding
Observe one of the elements in the list
|
IEMFEditListProperty |
values(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified
value property.
|
IEMFEditListProperty |
values(FeaturePath featurePath)
Returns a master-detail combination of this property and the specified
value nested feature.
|
IEMFEditListProperty |
values(IEMFEditValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
IEMFEditListProperty |
values(IEMFValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
public EMFEditListPropertyDecorator(EditingDomain editingDomain, IListProperty delegate, EStructuralFeature eStructuralFeature)
editingDomain - delegate - eStructuralFeature - public java.lang.Object getElementType()
public IEMFEditListProperty values(EStructuralFeature feature)
IEMFEditListPropertyvalues in interface IEMFEditListPropertyvalues in interface IEMFListPropertyfeature - the featurepublic IEMFEditListProperty values(FeaturePath featurePath)
IEMFEditListPropertyvalues in interface IEMFEditListPropertyvalues in interface IEMFListPropertyfeaturePath - the nested feature to observeIEMFEditListProperty.values(IEMFEditValueProperty)public IEMFEditListProperty values(IEMFEditValueProperty property)
IEMFEditListPropertyExample:
// Observes the list-typed "children" property of a Person object,
// where the elements are Person objects
IEMFListProperty children = EMFProperties
.list(MyPackage.Literals.PERSON_CHILDREN);
// Observes the string-typed "name" property of a Person object
IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.PERSON_NAME);
// Observes the names of children of a Person object.
IEMFListProperty childrenNames = children.values(name);
values in interface IEMFEditListPropertyproperty - the detail property to observepublic EStructuralFeature getStructuralFeature()
IEMFPropertyEStructuralFeature being observed.getStructuralFeature in interface IEMFPropertyEStructuralFeature being observedpublic IObservableList observe(java.lang.Object source)
public IObservableList observe(Realm realm,
java.lang.Object source)
public IObservableFactory listFactory()
public IObservableFactory listFactory(Realm realm)
public IObservableList observeDetail(IObservableValue master)
public java.lang.String toString()
public EditingDomain getEditingDomain()
getEditingDomain in interface IEMFEditPropertypublic IEMFEditListProperty values(IEMFValueProperty property)
IEMFListPropertyExample:
// Observes the list-typed "children" property of a Person object,
// where the elements are Person objects
IEMFListProperty children = EMFProperties
.list(MyPackage.Literals.PERSON_CHILDREN);
// Observes the string-typed "name" property of a Person object
IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.PERSON_NAME);
// Observes the names of children of a Person object.
IEMFListProperty childrenNames = children.values(name);
values in interface IEMFEditListPropertyvalues in interface IEMFListPropertyproperty - the detail property to observepublic IEMFEditValueProperty value(IEMFListProperty.ListElementAccess<?> elementAccess)
IEMFListPropertyThis API is highly experimental and if possible will get moved upwards to Core-Databinding
Observe one of the elements in the listvalue in interface IEMFEditListPropertyvalue in interface IEMFListPropertyelementAccess - the element access to use