public static class Styles.Rule
extends java.lang.Object
| Constructor and Description |
|---|
Rule(java.lang.String styleClass)
Create a rule for the style class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String key,
short type,
java.lang.Object value)
Add a property to the rule.
|
void |
apply(javafx.scene.Node node)
Apply the rule to a JavaFX node.
|
java.util.Map<java.lang.String,Styles.Property> |
getProperties()
Return the property map.
|
java.lang.String |
getStyleClass()
Return the style class name.
|
public Rule(java.lang.String styleClass)
styleClass - the style classpublic java.lang.String getStyleClass()
public void addProperty(java.lang.String key,
short type,
java.lang.Object value)
key - the property keytype - the property typevalue - the property valuepublic java.util.Map<java.lang.String,Styles.Property> getProperties()
public void apply(javafx.scene.Node node)
node - the node to updateCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence