tornadofx / tornadofx / UIComponent / replaceWith

replaceWith

inline fun <reified T : UIComponent> replaceWith(transition: ViewTransition? = null, sizeToScene: Boolean = false, centerOnScreen: Boolean = false): Boolean
fun <T : UIComponent> replaceWith(component: KClass<T>, transition: ViewTransition? = null, sizeToScene: Boolean = false, centerOnScreen: Boolean = false): Boolean

fun replaceWith(replacement: UIComponent, transition: ViewTransition? = null, sizeToScene: Boolean = false, centerOnScreen: Boolean = false): Boolean

Replace this component with another, optionally using a transition animation.

Parameters

replacement - The component that will replace this one

transition - The ViewTransition used to animate the transition

Return
Whether or not the transition will run