TableColumn

open class TableColumn<T>(    title: String,     width: Number,     font: Font = Font(),     formatFunction: (T) -> String)

A TableColumn may be used to represent a column in a TableView.

See also

Parameters

T

TableView content type.

title

The title for this TableColumn. It gets displayed in the header row of the TableView.

width

The width for this TableColumn.

font

Font to be used for this TableColumn. Default: default Font constructor.

formatFunction

The format function for this TableColumn. It gets applied to each item in the TableView to get a String for its cell.

Constructors

Link copied to clipboard
fun <T> TableColumn(    title: String,     width: Number,     font: Font = Font(),     formatFunction: (T) -> String)

Creates a TableColumn.

Properties

Link copied to clipboard
var font: Font

Font of this TableColumn.

Link copied to clipboard
val fontProperty: Property<Font>

Property for the Font of this TableColumn.

Link copied to clipboard
var formatFunction: (T) -> String?

The formatFunction that gets used to obtain a String representation for each item.

Link copied to clipboard
val formatFunctionProperty: Property<(T) -> String?>

Property for the formatFunction that gets used to obtain a String representation for each item.

Link copied to clipboard
var title: String

Title of this TableColumn.

Link copied to clipboard
val titleProperty: StringProperty

Property for the title of this TableColumn.

Link copied to clipboard
var width: Double

The width of this TableColumn. Must not be negative.

Link copied to clipboard
val widthProperty: LimitedDoubleProperty

Property for the width of this TableColumn. Must not be negative.