public class StyleClassDecoration extends Decoration
Decorationdesigned to add a CSS style class to a node (for example, to show a warning style when the field is incorrectly set). StyleClassDecoration is applied as part of the ControlsFX
DecoratorAPI - refer to the
Decoratorjavadoc for more details.
|Constructor and Description|
Constructs a new StyleClassDecoration with the given var-args array of style classes set to be applied to any node that has this decoration applied to it.
|Modifier and Type||Method and Description|
This method decorates the given target node with the relevant decorations, returning any 'decoration node' that needs to be added to the scenegraph (although this can be null).
This method removes the decoration from the given target node.
public StyleClassDecoration(String... styleClass)
styleClass- A var-args array of style classes to apply to any node.
IllegalArgumentException- if the styleClass varargs array is null or empty.
When the boolean parameter is false, this method removes the decoration from the given target node, always returning null.