[ 
https://issues.apache.org/jira/browse/PIVOT-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Greg Brown resolved PIVOT-414.
------------------------------

    Resolution: Fixed

> Simplify binding to data-driven components
> ------------------------------------------
>
>                 Key: PIVOT-414
>                 URL: https://issues.apache.org/jira/browse/PIVOT-414
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>    Affects Versions: 1.4
>            Reporter: Greg Brown
>            Assignee: Greg Brown
>             Fix For: 1.4.1
>
>
> Currently, it is difficult to bind complex data types to data-driven 
> components such as ListView, ListButton, and Spinner. For example, a 
> ListButton may be used to present the user with a set of options, each of 
> which has a numeric ID and a text description. The list button displays the 
> text content, but the value is actually identified by the ID property. It 
> would be ideal to bind only the ID to the list button, but currently it is 
> only possible to bind an entire item.
> This could be solved by providing a mapping interface that translates between 
> bound values and list items:
>     public interface BindMapping {
>         public int indexOf(List<?> listData, Object item);
>         public Object get(List<?> listData, int index);
>     }
> Implementations of this interface would perform the translation between the 
> bound value and the contents of the list.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to