Blame view
src/main/kotlin/application/model/ObservableMapState.kt
437 Bytes
9e952e84e add message clust... |
1 2 3 |
package application.model import kotlin.properties.Delegates |
3b26be8f9 controle the time... |
4 |
class ObservableMapState { |
9e952e84e add message clust... |
5 |
val listeners: MutableList<StateListener> = mutableListOf() |
3b26be8f9 controle the time... |
6 7 |
var state: MapState by Delegates.observable( initialValue = MapState.CLUSTERED_MESSAGES, |
9e952e84e add message clust... |
8 9 10 11 12 13 14 15 16 |
onChange = { _, _, new -> run { listeners.forEach { it.onValueChanged(new) } } } ) } |