cdc.perfs.ui.fx.ContextTableCell Maven / Gradle / Ivy
package cdc.perfs.ui.fx;
import cdc.perfs.core.Context;
import javafx.scene.control.TableCell;
import javafx.scene.paint.Color;
public class ContextTableCell extends TableCell {
@Override
protected void updateItem(Context item,
boolean empty) {
super.updateItem(item, empty);
if (item == null || empty) {
setText(null);
} else {
setText(item.getName());
if (item.isAlive()) {
setTextFill(Color.BLACK);
} else {
setTextFill(Color.RED);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy