net.sf.jguiraffe.gui.platform.javafx.builder.window
Creates a new instance of StyleSheetProvider with the specified string list of style sheet URLs using the default name for the standard style sheet.
Creates a new instance of StyleSheetProvider with the specified string list of style sheet URLs using the default name for the standard style sheet.
a comma-separated string with the URLs of style sheets to be added on behalf of the application
a comma-separated string with the URLs of style sheets to be added on behalf of the application
the resource name of the standard style sheet shipped with this library
the resource name of the standard style sheet shipped with this library
A class for providing CSS style sheets to be applied to newly created Scene objects.
An instance of this class is expected by the constructor of net.sf.jguiraffe.gui.platform.javafx.builder.window.JavaFxWindowManager. The style sheet URLs managed by this instance are applied to each Scene object created by the window manager.
The JGUIraffe JavaFX integration comes with one standard style sheet. In addition, applications can add an arbitrary number of style sheet files. Style sheets provided by the application can be passed as a comma-separated list to the constructor. The standard style sheet is defined via a separate constructor argument containing the name of the corresponding class path resource. If the constructor is used that only takes the string list of application-defined style sheets, the name of the standard style sheet is set automatically. The purpose of this design is to allow an easy customization in JGUIraffe applications:
In order to add application-specific style sheets, applications typically override the standard declaration of this bean with their own one. They can then configure the additional style sheets directly in their own builder script by collecting invocations of the <di:resource> tag in a variable. This variable can be referenced in the declaration for the custom StyleSheetProvider bean. The single-argument constructor should be used to keep the standard style sheet.
If the standard style sheet is to be replaced, the constructor accepting two arguments is to be called. Typically, the second argument is set to null, meaning that this style sheet is to be ignored. The corresponding classes to be adapted can then be defined by one of the application-specific style sheets.