Class StyleUtils
java.lang.Object
io.github.itech_framework.java_fx.utils.node.StyleUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidApplies styles while preserving existing propertiesgetStyleValue(javafx.scene.Node node, String property) Gets the value of a specific style propertystatic booleanhasStyleProperty(javafx.scene.Node node, String property) Checks if a node has a specific style propertystatic StringmergeStyles(String... styles) Merges multiple style stringsstatic voidremoveStyles(javafx.scene.Node node, String... properties) Removes specific style properties from a nodestatic voidsetFontFamily(javafx.scene.Node node, List<String> fontFamilies) Sets font family while preserving other styles
-
Method Details
-
addStyles
Applies styles while preserving existing properties- Parameters:
node- Target node to modifystyles- CSS properties in format "-fx-property: value;"
-
removeStyles
Removes specific style properties from a node- Parameters:
node- Target nodeproperties- List of properties to remove (e.g., "-fx-font-family")
-
setFontFamily
Sets font family while preserving other styles- Parameters:
node- Target nodefontFamilies- Ordered list of font families
-
mergeStyles
Merges multiple style strings -
hasStyleProperty
Checks if a node has a specific style property -
getStyleValue
Gets the value of a specific style property
-