Hi Jason,

                In a short word, yes, the row editors rely on data
binding.  For instance, the TableViewRowEditor.beginEdit method has this
code:

        // Get the data being edited

        List<?> tableData = tableViewArgument.getTableData();

        Object tableRow = tableData.get(rowIndexArgument);

 

        // Load the row data into the editor components

        tablePane.load(tableRow);

 

                And likewise the endEdit method does this:

            // Update the row data

            List<Object> tableData =
(List<Object>)tableView.getTableData();

            Object tableRow = tableData.get(rowIndex);

            tablePane.store(tableRow);

 

                The standard Pivot Data Binding tutorial is quite
helpful:  http://pivot.apache.org/tutorials/data-binding.html

                Basically your data can be a POJO using bean methods to
get and set the data, and your column names must match the bean property
names.

 

                If you need more help, just ask - we've been through
this before.

 

Thanks,

~Roger Whitcomb

Reply via email to