Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.databinding.beans
Interface IBeanSetProperty

All Superinterfaces:
IBeanProperty, org.eclipse.core.databinding.property.IProperty, org.eclipse.core.databinding.property.set.ISetProperty

public interface IBeanSetProperty
extends IBeanProperty, org.eclipse.core.databinding.property.set.ISetProperty

An ISetProperty extension interface with convenience methods for creating nested bean properties.

Since:
1.2
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.

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, observe, observe, observeDetail, setFactory, setFactory, values
 

Method Detail

values


IBeanMapProperty values(
String propertyName)
Returns a master-detail combination of this property and the specified value property.

Parameters:
propertyName - the value property to observe. May be nested e.g. "parent.name"
Returns:
a master-detail combination of this property and the specified value property.
See Also:
values(IBeanValueProperty)

values


IBeanMapProperty values(
String propertyName,
                        
Class valueType)
Returns a master-detail combination of this property and the specified value property.

Parameters:
propertyName - the value property to observe. May be nested e.g. "parent.name"
valueType - the value type of the named property
Returns:
a master-detail combination of this property and the specified value property.
See Also:
values(IBeanValueProperty)

values


IBeanMapProperty values(
IBeanValueProperty 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 set property, mapping from this set property's elements (keys) to the specified value property's value for each element (values).

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

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire