tornadofx / tornadofx / TableViewEditModel

TableViewEditModel

class TableViewEditModel<S>

Constructors

<init> TableViewEditModel(tableView: TableView<S>)

Properties

items val items: ObservableMap<S, TableColumnDirtyState<S>>
selectedItemDirty val selectedItemDirty: BooleanBinding
selectedItemDirtyState val selectedItemDirtyState: ObjectBinding<TableColumnDirtyState<S>?>
tableView val tableView: TableView<S>

Functions

commit fun commit(item: S, column: TableColumn<*, *>? = null): Unit

Commit the current item, or just the given column for this item if a column is supplied

fun commit(): Unit
commitSelected fun commitSelected(): Unit
enableDirtyTracking fun enableDirtyTracking(dirtyDecorator: Boolean = true): Unit
getDirtyState fun getDirtyState(item: S): TableColumnDirtyState<S>
isDirty fun isDirty(item: S): Boolean
rollback fun rollback(): Unitfun rollback(item: S, column: TableColumn<*, *>? = null): Unit

Rollback the current item, or just the given column for this item if a column is supplied

rollbackSelected fun rollbackSelected(): Unit

Extension Functions

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