Blame view
src/main/kotlin/application/model/ObservableVessel.kt
505 Bytes
b350f9dfe import vessels an... |
1 2 3 4 5 6 7 8 9 |
package application.model import kotlin.properties.Delegates class ObservableVessel { val listeners: MutableList<MessageListener> = mutableListOf() var vessels: MutableMap<Int?, Vessel> by Delegates.observable( initialValue = mutableMapOf(), |
52321443a different color f... |
10 |
onChange = { _, _, new -> |
b350f9dfe import vessels an... |
11 |
run { |
79b001037 heat map |
12 |
observableSelectedVessel.vessel = Vessel(null) |
b350f9dfe import vessels an... |
13 14 15 16 17 18 19 20 |
listeners.forEach { it.onValueChanged(new) } } } ) } |