TableView enhancements for JavaFX 2.2
tbee at tbee.org
Wed Mar 7 22:33:07 PST 2012
Note that spreadsheat have content aware formatting, so it is an interesting topic.
To the cell based styling; your example gives one fixed cell a certain style in the CSS, but that is not a frequent scenario since it basically is hard coded. This technique can be used for alternating row or column colors, but not much else. What happens is that in the code a certain cell is assigned a CSS class, like Tadashi said: addStyleToCell(row, col) (or addStyleToRow). If all is as it should be, the TableView already should use this technique to visualize the selected row/column/cell.
Charts usually do not have much dynamic in the vizualisation, they are statically styled.
On 2012-03-07 22:12, Jonathan Giles wrote:
> I should quickly note that this is consistent with how the chart API does things, where it exposes series and data nodes via CSS with a counter value appended to the style class to represent each node separately.
> Also, my gut feeling is that we count from zero to be consistent with how columns and rows are represented in Java.
> -- Jonathan
> On Thursday, 8 March 2012 10:09:38 a.m., Jonathan Giles wrote:
More information about the openjfx-dev