org.eclipse.emf.databinding.edit
Interface IEMFEditListProperty

All Superinterfaces:
IEMFEditProperty, IEMFListProperty, IEMFProperty, IListProperty, IProperty
All Known Implementing Classes:
EMFEditListPropertyDecorator, EMFEditMultiListProperty

public interface IEMFEditListProperty
extends IEMFEditProperty, IEMFListProperty

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.

An IListProperty extension interface with convenience methods for creating nested EStructuralFeatures

Since:
2.5

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.databinding.IEMFListProperty
IEMFListProperty.ListElementAccess<O>
 
Method Summary
 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.
 
Methods inherited from interface org.eclipse.emf.databinding.edit.IEMFEditProperty
getEditingDomain
 
Methods inherited from interface org.eclipse.emf.databinding.IEMFProperty
getStructuralFeature
 
Methods inherited from interface org.eclipse.core.databinding.property.list.IListProperty
getElementType, getList, listFactory, listFactory, observe, observe, observeDetail, setList, updateList, values
 

Method Detail

values

IEMFEditListProperty values(FeaturePath featurePath)
Returns a master-detail combination of this property and the specified value nested feature.

Specified by:
values in interface IEMFListProperty
Parameters:
featurePath - the nested feature to observe
Returns:
a nested combination of this property and the specified nested feature.
See Also:
values(IEMFEditValueProperty)

values

IEMFEditListProperty values(EStructuralFeature feature)
Returns a master-detail combination of this property and the specified value property.

Specified by:
values in interface IEMFListProperty
Parameters:
feature - the feature
Returns:
a nested combination of this property and the specified nested feature.

values

IEMFEditListProperty values(IEMFEditValueProperty property)
Returns a master-detail combination of this property and the specified value property. The returned property will observe the specified value property for all elements observed by this list property.

Example:

 // 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);
 

Parameters:
property - the detail property to observe
Returns:
a master-detail combination of this property and the specified value property.

values

IEMFEditListProperty values(IEMFValueProperty property)
Description copied from interface: IEMFListProperty
Returns a master-detail combination of this property and the specified value property. The returned property will observe the specified value property for all elements observed by this list property.

Example:

 // 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);
 

Specified by:
values in interface IEMFListProperty
Parameters:
property - the detail property to observe
Returns:
a master-detail combination of this property and the specified value property.

value

IEMFEditValueProperty value(IEMFListProperty.ListElementAccess<?> elementAccess)
Description copied from interface: IEMFListProperty

This API is highly experimental and if possible will get moved upwards to Core-Databinding

Observe one of the elements in the list

Specified by:
value in interface IEMFListProperty
Parameters:
elementAccess - the element access to use
Returns:
a master-detail property

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.