pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Dutrieux <olivier.dutri...@pasteur.fr>
Subject Re: event when the data update by Data-driven on ListView or TableView
Date Mon, 04 Apr 2011 13:31:38 GMT
Le 04/04/2011 15:20, Greg Brown a écrit :
> The event is never fired because you are not calling update() on userList. Try this instead:
>
> public void buttonPressed(Button button) {
>      User user = Constants.users.get(0);
>      user.setEmail("newEmail@gmail.com");
>
>      List<User>  userList = (List<User>)userTableView.getTableData();
>      userList.update(0, user);
> }
>
> You don't need to call repaint() yourself - the TableView will do that automatically
when the item is updated.
>
> On Apr 4, 2011, at 8:53 AM, Duto wrote:
>
>> http://apache-pivot-users.399431.n3.nabble.com/file/n2774946/dataDriven.zip
>> dataDriven.zip
>>
>> But I think it's normal that the event is not fire, I modify directly the
>> bean.
>>
>> --
>> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/event-when-the-data-update-by-Data-driven-on-ListView-or-TableView-tp2762353p2774946.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
oki thx G.

Mime
View raw message