You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Adam Perer <ad...@gmail.com> on 2011/03/16 23:29:52 UTC

Listener for cells rendered with TableViewBooleanCellRenderer?

Hello!

Is there any way to listen for an event when a cell is checked in a
TableView that has cells rendered with
TableViewBooleanCellRenderer<http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/content/TableViewBooleanCellRenderer.html>
?

E.g. something like the ListView's ListViewItemStateListener's
itemCheckedChanged()?

Thanks,
   Adam

Re: Listener for cells rendered with TableViewBooleanCellRenderer?

Posted by Noel Grandin <no...@gmail.com>.
Yes, you can set a listener on the model object.

tableView.getTableData().getListListeners.add(new ListListener.Adapter()
{
        @Override
        public void itemUpdated(List list, int index, Object previousItem) {
        }
});

Adam Perer wrote:
> Hello!
>
> Is there any way to listen for an event when a cell is checked in a TableView that has cells rendered with
> TableViewBooleanCellRenderer
> <http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/content/TableViewBooleanCellRenderer.html>?
>
> E.g. something like the ListView's ListViewItemStateListener's itemCheckedChanged()?
>
> Thanks,
>    Adam
>