SelectableMutableList
open class SelectableMutableList<E>(elements: Collection<E> = emptyList(), selectedIndex: Int = -1) : ArrayList<E> , AutoCloseable(source)
A mutable list with selection capability. Similar to ObservableArrayList but with selectedIndex and selected properties. It triggers the changed event whenever the list is modified or selectedIndex changes.
Parameters
elements
the initial collection of elements
selectedIndex
the index of the currently selected element, or -1 if no element is selected
Type Parameters
E
the type of elements in this list