org.adoptopenjdk.jitwatch.ui.report.cell.IntegerTableCell Maven / Gradle / Ivy
/*
* Copyright (c) 2013-2016 Chris Newland.
* Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
* Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
*/
package org.adoptopenjdk.jitwatch.ui.report.cell;
import org.adoptopenjdk.jitwatch.ui.report.IReportRowBean;
import javafx.geometry.Pos;
import javafx.scene.control.Label;
import javafx.scene.control.TableCell;
public class IntegerTableCell extends TableCell
{
private Label label;
public IntegerTableCell()
{
label = new Label();
setAlignment(Pos.TOP_LEFT);
setGraphic(label);
}
@Override
protected void updateItem(Integer value, boolean empty)
{
if (value != null)
{
label.setText(value.toString());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy