Blame view
src/main/kotlin/application/model/ObservableSelectedVessel.kt
434 Bytes
2bbe36a1b addd the possibil... |
1 2 3 4 5 6 |
package application.model import kotlin.properties.Delegates class ObservableSelectedVessel { val listeners: MutableList<SelectedVesselListener> = mutableListOf() |
dd1ce7fe8 add button to swi... |
7 |
var value: Vessel by Delegates.observable( |
2bbe36a1b addd the possibil... |
8 9 10 11 12 13 14 15 16 17 |
initialValue = Vessel(null), onChange = { _, _, new -> run { listeners.forEach { it.onValueChanged(new) } } } ) } |