|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBeanSetProperty
An ISetProperty extension interface with convenience methods for
creating nested bean properties.
| Method Summary | |
|---|---|
IBeanMapProperty |
values(IBeanValueProperty property)
Returns a master-detail combination of this property and the specified value property. |
IBeanMapProperty |
values(String propertyName)
Returns a master-detail combination of this property and the specified value property. |
IBeanMapProperty |
values(String propertyName,
Class valueType)
Returns a master-detail combination of this property and the specified value property. |
| Methods inherited from interface org.eclipse.core.databinding.beans.IBeanProperty |
|---|
getPropertyDescriptor |
| Methods inherited from interface org.eclipse.core.databinding.property.set.ISetProperty |
|---|
getElementType, getSet, observe, observe, observeDetail, setFactory, setFactory, setSet, updateSet, values |
| Method Detail |
|---|
IBeanMapProperty values(String propertyName)
propertyName - the value property to observe. May be nested e.g.
"parent.name"
values(IBeanValueProperty)
IBeanMapProperty values(String propertyName,
Class valueType)
propertyName - the value property to observe. May be nested e.g.
"parent.name"valueType - the value type of the named property
values(IBeanValueProperty)IBeanMapProperty values(IBeanValueProperty property)
Example:
// Observes the set-typed "children" property of a Person object,
// where the elements are Person objects
IBeanSetProperty children = BeanProperties.set(Person.class, "children",
Person.class);
// Observes the string-typed "name" property of a Person object
IBeanValueProperty name = BeanProperties.value(Person.class, "name");
// Observes a map of children objects to their respective names.
IBeanMapProperty childrenNames = children.values(name);
property - the detail property to observe
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.