You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Todd Volkert (JIRA)" <ji...@apache.org> on 2010/03/25 20:22:27 UTC

[jira] Resolved: (PIVOT-414) Simplify binding to data-driven components

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

Todd Volkert resolved PIVOT-414.
--------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.5)

Duplicate of PIVOT-425

> 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
>
> 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.