Class ScreenUtils
- java.lang.Object
-
- org.teichert.databaseexplorer.utils.ScreenUtils
-
public class ScreenUtils extends Object
Helper-class for handling the stylesheet.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initializeStyle(javafx.scene.layout.Pane pane)
Default method to initialize style to the panestatic void
initializeStyle(javafx.scene.layout.Pane pane, File tempStyle, File fileCss)
Initializes a stylesheet by the css-file and apply it to the pane.static void
initializeStyle(javafx.scene.layout.Region region)
Default method to initialize style to the regionstatic void
initializeStyle(javafx.scene.layout.Region region, File tempStyle, File fileCss)
Initializes a stylesheet by the css-file and apply it to the regionstatic void
initializeStyle(javafx.scene.Scene scene)
Default method to initialize style to the scenestatic void
initializeStyle(javafx.scene.Scene scene, File fileCss)
Initializes a stylesheet by the css-file and apply it to the scenestatic void
initializeStyle(javafx.scene.Scene scene, File tempStyle, File fileCss)
Initializes a stylesheet by the css-file or if exists from the tempStyle (testing) and apply it to the gui.
So more priority has the tempStyle parameter if set!
-
-
-
Method Detail
-
initializeStyle
public static void initializeStyle(javafx.scene.layout.Pane pane)
Default method to initialize style to the pane- Parameters:
pane
-
-
initializeStyle
public static void initializeStyle(javafx.scene.layout.Region region)
Default method to initialize style to the region- Parameters:
region
-
-
initializeStyle
public static void initializeStyle(javafx.scene.Scene scene)
Default method to initialize style to the scene- Parameters:
scene
-
-
initializeStyle
public static void initializeStyle(javafx.scene.Scene scene, File tempStyle, File fileCss)
Initializes a stylesheet by the css-file or if exists from the tempStyle (testing) and apply it to the gui.
So more priority has the tempStyle parameter if set!- Parameters:
fileCss
-
-
initializeStyle
public static void initializeStyle(javafx.scene.Scene scene, File fileCss)
Initializes a stylesheet by the css-file and apply it to the scene- Parameters:
fileCss
-
-
initializeStyle
public static void initializeStyle(javafx.scene.layout.Region region, File tempStyle, File fileCss)
Initializes a stylesheet by the css-file and apply it to the region- Parameters:
fileCss
-
-
-