All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.perfs.ui.fx.ContextTableCell Maven / Gradle / Ivy

There is a newer version: 0.52.0
Show newest version
package cdc.perfs.ui.fx;

import cdc.perfs.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