-
Enhancement
-
Resolution: Fixed
-
P3
-
8
It would be great if there was an option for TableView to set style/id/styleclass for the alll the cells of the particular column. It is much easier and preferable to set column style via css rather than creating custom cell fabrics just for styling needs.
It seems to be reasonable to set these settings via TableColumn object to have the following usage:
TableColumn amountColumn = new TableColumn("Amount");
amountColumn.setStyle("-fx-alignment: right;");
or
amountColumn.setStyleclass("amount-column");
.amount-column {
-fx-alignment: right;
}
or
amountColumn.setId("amount-column");
#amount-column {
-fx-alignment: right;
}
It seems to be reasonable to set these settings via TableColumn object to have the following usage:
TableColumn amountColumn = new TableColumn("Amount");
amountColumn.setStyle("-fx-alignment: right;");
or
amountColumn.setStyleclass("amount-column");
.amount-column {
-fx-alignment: right;
}
or
amountColumn.setId("amount-column");
#amount-column {
-fx-alignment: right;
}