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

org.adoptopenjdk.jitwatch.ui.report.cell.TextTableCell 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 TextTableCell extends TableCell
{
	private Label label;

	public TextTableCell()
	{
		label = new Label();
		setAlignment(Pos.TOP_LEFT);

		setGraphic(label);
	}

	@Override
	protected void updateItem(String value, boolean empty)
	{		
		if (value != null)
		{
			label.setText(value);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy