excuse me, but to close this point, to achieve my goal, what I have
to write ?
A custom renderer (and set it in the wtkx), ok.
Yes.
Renderers will definitely allow you to customize the background
color based on the node data. You just can't customize it based on
the node's index/path, because that information isn't passed to the
renderer. That's why the "zebra" style would need to be added to
the tree view skin, not the renderer.
So I'd need also a custom style because it has access to some row/node
attributes, but from here is it possible to send some data to the
renderer, or currently this is not possible (without some changes to
the code) ? In the case it's currently not possible, do you think we
can modify something to enable this ?
There's not really any such thing as a "custom style", unless you
create a custom TreeView subclass and associated skin. It is also not
currently possible to pass any additional information to the renderer
to support "zebra" styling without changing the node renderer
interface, which I don't think we should do.
The best thing would be to create two JIRA tickets: one to add an
"alternateRowColor" style to TerraTreeViewSkin, and another to create
a TreeTable component. The first one could be accomplished fairly
easily - TreeTable would be a bit more complex.