Assuming that JavaFX CSS doesn't support the :enabled
based on JavaFX 8 Oracle CSS Reference how i can do the below?
Hover and Active only when not disabled
A TableView
exists where i am applying some kind of css :
.table-row-cell:hover {
-fx-background-color:orange;
}
.table-row-cell:focused {
-fx-background-color:purple;
}
I want the above to be done ( only ) when the TableRow
is enabled.
So i modified the code including :enabled
pseudo element but nothing works now:
.table-row-cell:hover:enabled {
-fx-background-color:orange;
}
.table-row-cell:focused:enabled {
-fx-background-color:purple;
}
Finally some small questions:
1)How i can combine :hover with :disabled or :enabled?
->[ apply **:hover** only if the `Table-Row|Cell` is enabled. ]
2)Does JavaFX css supports :enabled?
Last but not least:
After doing several tests on the code above i came to youtu.be/l7Pbz2l2wjE?t=138 this result.