TableLayers layers = new TableLayers();
// Style the grid, and then style all of its columns.
FormatStylingEngine formatStylingEngine =
context.getFormatStylingEngine();
Styles formatStyles = formatStylingEngine.startStyleable(
grid, grid.getStyleClass());
layers.setLayer(TableLayers.TABLE, formatStyles);
attributes.setStyles(formatStyles);
attributes.setLayers(layers);