tornadofx / tornadofx / kotlin.collections.Iterable

Extensions for kotlin.collections.Iterable

addClass fun Iterable<Node>.addClass(vararg cssClass: CssRule): <ERROR CLASS>

Add the given type safe css classes to every Node in this Iterable. Pseudo classes are also supported.

fun Iterable<Node>.addClass(vararg cssClass: String): <ERROR CLASS>
contains fun <T : Node> Iterable<T>.contains(cmp: UIComponent): <ERROR CLASS>
mapEach fun <T, R> Iterable<T>.mapEach(action: T.() -> R): <ERROR CLASS>

map with the element as receiver.

mapEachTo fun <T, R, C : MutableCollection<in R>> Iterable<T>.mapEachTo(destination: C, action: T.() -> R): <ERROR CLASS>

mapTo with the element as receiver.

playParallel fun Iterable<Animation>.playParallel(play: Boolean = true, op: ParallelTransition.() -> Unit = {}): <ERROR CLASS>

A convenience function for playing multiple animations in parallel.

playSequential fun Iterable<Animation>.playSequential(play: Boolean = true, op: SequentialTransition.() -> Unit = {}): <ERROR CLASS>

A convenience function for playing multiple animations in sequence.

removeClass fun Iterable<Node>.removeClass(vararg cssClass: CssRule): <ERROR CLASS>

Remove the given type safe css classes from every node in this Iterable. Pseudo classes are also supported.

style fun Iterable<Node>.style(append: Boolean = false, op: InlineCss.() -> Unit): <ERROR CLASS>
toJSON fun <T : JsonModel> Iterable<T>.toJSON(): <ERROR CLASS>
toggleClass fun Iterable<Node>.toggleClass(cssClass: CssRule, predicate: Boolean): <ERROR CLASS>

Toggle the given type safe css class on every node in this iterable based on the given predicate. Pseudo classes are also supported.

withEach fun <T> Iterable<T>.withEach(action: T.() -> Unit): <ERROR CLASS>

forEach with the element as receiver.