TableView enhancements for JavaFX 2.2
Tom Schindl
tom.schindl at bestsolution.at
Wed Mar 7 13:36:11 PST 2012
Am 07.03.12 22:34, schrieb Tom Schindl:
> I'm wondering if this index-value is a good idea - what happens when one
> reorders columns or remove columns - do the indices then adjust themselves?
>
> java:
> TableColumn c = new TableColumn("Name");
> c.setUserdata("namecol");
^^^^^^^^
c.setName("namecol");
>
> css:
>
> .table-cell:namecol {
> -fx-background-color: green;
> }
>
>
> I also think when it comes to highlighting cells it would be much we
> could use property testers
>
> /* assumeing TableCell has a userdata attribute */
> .table-cell[userdata~="error"] {
> -fx-background-color: red;
> }
>
>
> Tom
>
> Am 07.03.12 22:12, schrieb Jonathan Giles:
>> 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:
>>
>
>
--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1 A-6020 innsbruck fax ++43 512 935833
http://www.BestSolution.at phone ++43 512 935834
More information about the openjfx-dev
mailing list