/** * Updates the TableColumn associated with this TableCell. * * @expert This function is intended to be used by experts, primarily by those implementing new * Skins. It is not common for developers or designers to access this function directly. */ public final void updateTableColumn(TableColumn col) { // remove style class of existing table column, if it is non-null TableColumn<S, T> oldCol = getTableColumn(); if (oldCol != null) { oldCol.getStyleClass().removeListener(weakColumnStyleClassListener); getStyleClass().removeAll(oldCol.getStyleClass()); } setTableColumn(col); if (col != null) { getStyleClass().addAll(col.getStyleClass()); col.getStyleClass().addListener(weakColumnStyleClassListener); } }