Blame view
src/main/kotlin/application/model/ObservableVessel.kt
507 Bytes
b350f9dfe import vessels an... |
1 2 3 4 5 6 |
package application.model import kotlin.properties.Delegates class ObservableVessel { val listeners: MutableList<MessageListener> = mutableListOf() |
f39d90e60 Select/deselect MMSI |
7 |
var vessels: MutableMap<String?, Vessel> by Delegates.observable( |
b350f9dfe import vessels an... |
8 |
initialValue = mutableMapOf(), |
52321443a different color f... |
9 |
onChange = { _, _, new -> |
b350f9dfe import vessels an... |
10 |
run { |
dd1ce7fe8 add button to swi... |
11 |
observableSelectedVessel.value = Vessel(null) |
b350f9dfe import vessels an... |
12 13 14 15 16 17 18 19 |
listeners.forEach { it.onValueChanged(new) } } } ) } |