tornadofx / tornadofx / javafx.scene.control.TableColumn

Extensions for javafx.scene.control.TableColumn

cellCache fun <S, T> TableColumn<S, T>.cellCache(scope: Scope = FX.defaultScope, cachedGraphicProvider: (T) -> Node): Unit

Calculate a unique Node per item and set this Node as the graphic of the TableCell.

cellDecorator fun <S, T> TableColumn<S, T>.cellDecorator(decorator: TableCell<S, T>.(T) -> Unit): Unit
cellFormat fun <S, T> TableColumn<S, T>.cellFormat(scope: Scope = FX.defaultScope, formatter: TableCell<S, T>.(T) -> Unit): Unit
cellFragment fun <S, T, F : TableCellFragment<S, T>> TableColumn<S, T>.cellFragment(scope: Scope = FX.defaultScope, fragment: KClass<F>): Unit
contentWidth fun <S, T> TableColumn<S, T>.contentWidth(padding: Double = 0.0, useAsMin: Boolean = false, useAsMax: Boolean = false): <ERROR CLASS>

Make the column fit the content plus an optional padding width. Optionally constrain the min or max width to be this width.

converter fun <T, S> TableColumn<T, S?>.converter(converter: StringConverter<in S>): TableColumn<T, S?>
enableTextWrap fun <S, T> TableColumn<S, T>.enableTextWrap(): <ERROR CLASS>
fixedWidth fun <S, T> TableColumn<S, T>.fixedWidth(width: Number): <ERROR CLASS>
getTableColumnProperty fun <S, T> TableColumn<S, T>.getTableColumnProperty(item: S): ObservableValue<T?>

Get the property representing this TableColumn for the given item.

getValue fun <S, T> TableColumn<S, T>.getValue(item: S): T?

Get the value from the property representing this TableColumn.

makeEditable fun <T, S : Any> TableColumn<T, S>.makeEditable(): <ERROR CLASS>
fun <T, S : Any> TableColumn<T, S>.makeEditable(converter: StringConverter<S>): TableColumn<T, S>
maxWidth fun <S, T> TableColumn<S, T>.maxWidth(width: Number): <ERROR CLASS>
minWidth fun <S, T> TableColumn<S, T>.minWidth(width: Number): <ERROR CLASS>
pctWidth fun <S, T> TableColumn<S, T>.pctWidth(pct: Number): <ERROR CLASS>
prefWidth fun <S, T> TableColumn<S, T>.prefWidth(width: Number): <ERROR CLASS>
remainingWidth fun <S, T> TableColumn<S, T>.remainingWidth(): <ERROR CLASS>
setValue fun <S, T> TableColumn<S, T>.setValue(item: S, value: T?): Unit

Write a value into the property representing this TableColumn, provided the property is writable.

useCheckbox fun <S> TableColumn<S, Boolean?>.useCheckbox(editable: Boolean = true): <ERROR CLASS>
useChoiceBox fun <S, T> TableColumn<S, T?>.useChoiceBox(items: ObservableList<T>, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
useComboBox fun <S, T> TableColumn<S, T?>.useComboBox(items: ObservableList<T>, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
useProgressBar fun <S> TableColumn<S, out Number?>.useProgressBar(scope: Scope, afterCommit: (CellEditEvent<S, Number?>) -> Unit = {}): <ERROR CLASS>
useTextField fun <S, T> TableColumn<S, T?>.useTextField(converter: StringConverter<T>? = null, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
value infix fun <S> TableColumn<S, *>.value(cellValueFactory: (CellDataFeatures<S, Any>) -> Any?): <ERROR CLASS>

Configure a cellValueFactory for the column. If the returned value is not observable, it is automatically wrapped in a SimpleObjectProperty for convenience.

weightedWidth fun <S, T> TableColumn<S, T>.weightedWidth(weight: Number, padding: Double = 0.0, minContentWidth: Boolean = false): <ERROR CLASS>