getLayout

open fun <T : Node?> getLayout(controller: Any, layoutName: String): T

Loads a layout FXML file returning the base pane defined by the layout.

Return

the pane defined by the layout

Parameters

<T>

the generic type of pane

controller

the controller to associate to that layout

layoutName

the name of the layout; it should be the file name without extension

Throws

if it cannot load the file for some reason


open fun <T : Node?> getLayout(layoutName: String): T

Loads a layout FXML file returning the base pane defined by the layout. It doesn't set any controller.

Return

the pane defined by the layout

Parameters

<T>

the generic type of pane

layoutName

the name of the layout; it should be the file name without extension

Throws

if it cannot load the file for some reason