FXResourceLoader

class FXResourceLoader

Utility class for loading resources related to layout.

Functions

Link copied to clipboard
open fun getColoredIcon(iconCode: IconCode, color: Color): IconNode
Loads an icon from Google Material Design Icons.
Link copied to clipboard
open fun getInjectionErrorMessage(nodeName: String, layoutFileName: String): String
Returns the standard message for a problem in class injection from FXML.
Link copied to clipboard
open fun <T : Node?> getLayout(layoutName: String): T
open fun <T : Node?> getLayout(controller: Any, layoutName: String): T
Loads a layout FXML file returning the base pane defined by the layout.
Link copied to clipboard
open fun getStyle(cssFileName: String): String
Returns the java.net.URL to a CSS stylesheet of given name in string form.
Link copied to clipboard
open fun getWhiteIcon(iconCode: IconCode): IconNode
Loads an icon from Google Material Design Icons filled in white.