Fix missing graphical nodes
@@ -71,12 +71,12 @@ public class DataTypeCellFactory implements
protected void updateItem(Object item, boolean empty) {
super.updateItem(item, empty);
// logger.log(Level.INFO, "updateItem in Cell (DataTypeCellFactory)");
- if (!empty && type instanceof LinkedGraphicalType lgType) {
+ if (type instanceof LinkedGraphicalType lgType) {
Node node = lgType.getCellNode(this, param, null, raw);
getTableColumn().setMinWidth(lgType.getColumnWidth());
setGraphic(node);
setText(null);
- }
+ } else {
if (item == null) {
item = type.getDefaultValue();
}
@@ -108,6 +108,7 @@ public class DataTypeCellFactory implements
setAlignment(Pos.CENTER);
}
}
+ }
};
}
