>I have created a custom List that is used as the TableViews table data. 
>Sometimes the list will completely change and so the list issues listCleared() 
>to the list listeners. The TableView queries the list for the number of items 
>in the list but doesn't display any new items if the number of list items is 
>now larger.
>
>Am I using listCleared in the wrong context or is this a bug?

Possibly a little of both. The TableView skin was incorrectly calling 
repaintComponent() in response to a list cleared event, when it should have 
been calling invalidateComponent(). This is now fixed.

However, the implication of firing listCleared() is that the list is now empty 
(i.e. getLength() should return 0). If this is not the case, you should fire 
itemInserted() events for any items added when the list is repopulated. That 
will correctly invalidate the TableView and the new items should appear.

G

Reply via email to