|Getting IValueProperty of a certain value in a MAP [message #897485]
||Tue, 24 July 2012 09:25
|| Simon Scholz
Registered: April 2012
I took a look at the Snippet013TableViewerEditing sample snippet.
In that snippet the ViewerSupport is used for the binding between model and the TableViewer.
ViewerSupport.bind method needs an array of IValueProperty to bind the items in the input list.
In the sample the IValueProperty is staticly defined by the person class, which has a name property, so BeanProperties.value(Person.class, "name") can be used.
My "Person" class contains a Map, which has a key to identify in which column the value should be shown.
Is it somehow possible to create an IValueProperty for a certain Map Entry in my own "Person" class?
Something like :
BeanProperties.value(Person.class, "nameOfTheMapInsideThePersonClass", keyOfTheMapEntry) ?
So that I can pass IValueProperty to the ViewerSupport.bind method, which describe the values in the Map?
Powered by FUDForum
. Page generated in 0.03941 seconds