tornadofx / tornadofx / DataGridSkin

DataGridSkin

class DataGridSkin<T> : VirtualContainerBase<DataGrid<T>, BehaviorBase<DataGrid<T>>, DataGridRow<T>>

Constructors

<init> DataGridSkin(control: DataGrid<T>)

Functions

computeMaxCellsInRow fun computeMaxCellsInRow(): Int

Compute the maximum number of cells per row. If the calculated number of cells would result in more than the configured maxRow rows, the maxRow setting takes presedence and overrides the maxCellsInRow

computePrefHeight fun computePrefHeight(width: Double, topInset: Double, rightInset: Double, bottomInset: Double, leftInset: Double): Double
computePrefWidth fun computePrefWidth(height: Double, topInset: Double, rightInset: Double, bottomInset: Double, leftInset: Double): Double
computeRowWidth fun computeRowWidth(): Double
createCell fun createCell(): DataGridRow<T>
getItemCount fun getItemCount(): Int
getRow fun getRow(index: Int): DataGridRow<T>
handleControlPropertyChanged fun handleControlPropertyChanged(p: String?): Unit
layoutChildren fun layoutChildren(x: Double, y: Double, w: Double, h: Double): Unit
updateRowCount fun updateRowCount(): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>