|
[ Kjell Fredrik Pettersen ]:
> First of all: Why is a symbol for the death used for the DeafObject's
icon?
> A friend of mine is deaf, but as far as I know very well alive. :-)
>
> To my real problem today: Is there a way I can redraw each line in a list
> (Enhanged view) and still keep the selection highlighted? If I send
> #refreshContents to the listpresenters view, it redraws the contents, but
> also looses the selection. The same problem aplies to my treeview.
>
> The background is a case where the presentation of some elements in the
list
> (icon, font etc) is changed. I need to update this immediately, but I also
> want to keep the selection (as well as the expanded state for the tree).
>
> Kjell Fredrik Pettersen
I partly solved it myself. The answer was to use ListModel>>#updateItem: for
each item that needs a redraw (I'm able to determine which ones). I have not
looked at the tree model yet, as this is more complex in my case.
About the DeafObject, however, I'm still wondering ... :-)
Kjell Fredik Pettersen
|