org.eclipse.emf.databinding.edit.internal
Class EMFEditListPropertyDecorator

java.lang.Object
  extended by org.eclipse.core.databinding.property.list.ListProperty
      extended by org.eclipse.emf.databinding.edit.internal.EMFEditListPropertyDecorator
All Implemented Interfaces:
IProperty, IListProperty, IEMFEditListProperty, IEMFEditProperty, IEMFListProperty, IEMFProperty

public class EMFEditListPropertyDecorator
extends ListProperty
implements IEMFEditListProperty

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

Since:
2.5

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.databinding.IEMFListProperty
IEMFListProperty.ListElementAccess<O>
 
Constructor Summary
EMFEditListPropertyDecorator(EditingDomain editingDomain, IListProperty delegate, EStructuralFeature eStructuralFeature)
           
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.core.databinding.property.list.ListProperty
doGetList, doSetList, doUpdateList, getList, setList, updateList, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.databinding.property.list.IListProperty
getList, setList, updateList, values
 

Constructor Detail

EMFEditListPropertyDecorator

public EMFEditListPropertyDecorator(EditingDomain editingDomain,
                                    IListProperty delegate,
                                    EStructuralFeature eStructuralFeature)
Parameters:
editingDomain -
delegate -
eStructuralFeature -
Method Detail

getElementType

public java.lang.Object getElementType()
Specified by:
getElementType in interface IListProperty

values

public IEMFEditListProperty values(EStructuralFeature feature)
Description copied from interface: IEMFEditListProperty
Returns a master-detail combination of this property and the specified value property.

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

values

public IEMFEditListProperty values(FeaturePath featurePath)
Description copied from interface: IEMFEditListProperty
Returns a master-detail combination of this property and the specified value nested feature.

Specified by:
values in interface IEMFEditListProperty
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:
IEMFEditListProperty.values(IEMFEditValueProperty)

values

public IEMFEditListProperty values(IEMFEditValueProperty property)
Description copied from interface: IEMFEditListProperty
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 IEMFEditListProperty
Parameters:
property - the detail property to observe
Returns:
a master-detail combination of this property and the specified value property.

getStructuralFeature

public EStructuralFeature getStructuralFeature()
Description copied from interface: IEMFProperty
Returns the descriptor of the EStructuralFeature being observed.

Specified by:
getStructuralFeature in interface IEMFProperty
Returns:
the EStructuralFeature being observed

observe

public IObservableList observe(java.lang.Object source)
Specified by:
observe in interface IListProperty
Overrides:
observe in class ListProperty

observe

public IObservableList observe(Realm realm,
                               java.lang.Object source)
Specified by:
observe in interface IListProperty

listFactory

public IObservableFactory listFactory()
Specified by:
listFactory in interface IListProperty
Overrides:
listFactory in class ListProperty

listFactory

public IObservableFactory listFactory(Realm realm)
Specified by:
listFactory in interface IListProperty
Overrides:
listFactory in class ListProperty

observeDetail

public IObservableList observeDetail(IObservableValue master)
Specified by:
observeDetail in interface IListProperty
Overrides:
observeDetail in class ListProperty

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEditingDomain

public EditingDomain getEditingDomain()
Specified by:
getEditingDomain in interface IEMFEditProperty
Returns:
the editing domain to execute commands

values

public 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 IEMFEditListProperty
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

public 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 IEMFEditListProperty
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.