public interface IBeanListProperty extends IBeanProperty, IListProperty
IListProperty
extension interface with convenience methods for
creating nested bean properties.Modifier and Type | Method and Description |
---|---|
IBeanListProperty |
values(IBeanValueProperty property)
Returns a master-detail combination of this property and the specified
value property.
|
IBeanListProperty |
values(String propertyName)
Returns a master-detail combination of this property and the specified
value property.
|
IBeanListProperty |
values(String propertyName,
Class valueType)
Returns a master-detail combination of this property and the specified
value property.
|
getPropertyDescriptor
getElementType, getList, listFactory, listFactory, observe, observe, observeDetail, setList, updateList, values
IBeanListProperty values(String propertyName)
propertyName
- the value property to observe. May be nested e.g.
"parent.name"values(IBeanValueProperty)
IBeanListProperty 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 propertyvalues(IBeanValueProperty)
IBeanListProperty values(IBeanValueProperty property)
Example:
// Observes the list-typed "children" property of a Person object, // where the elements are Person objects IBeanListProperty children = BeanProperties.list(Person.class, "children", Person.class); // Observes the string-typed "name" property of a Person object IBeanValueProperty name = BeanProperties.value(Person.class, "name"); // Observes the names of children of a Person object. IBeanListProperty childrenNames = children.values(name);
property
- the detail property to observe
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.