Top Description Fields Constructors Methods
net.synedra.validatorfx

public Class StyleClassDecoration

extends Object
implements Decoration
Class Inheritance
All Implemented Interfaces
net.synedra.validatorfx.Decoration
Imports
java.util.Arrays, .HashSet, .List, .Set, javafx.scene.Node

StyleClassDecoration provides decoration of nodes by setting / removing style classes.
Author
[email protected]

Field Summary

Modifier and TypeField and Description
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
StyleClassDecoration(String...
The style classes to apply to the target node, if check fails
styleClasses
)

Create new StyleClassDecoration

Method Summary

Modifier and TypeMethod and Description
public void
add(Node
The node to decorate
targetNode
)

Implements net.synedra.validatorfx.Decoration.add.

Add a decoration to the given target node

public void
remove(Node
The node to remove decoration from
targetNode
)

Implements net.synedra.validatorfx.Decoration.remove.

Remove a decoration from the given target node

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

styleClassesback to summary
private final Set<String> styleClasses

Constructor Detail

StyleClassDecorationback to summary
public StyleClassDecoration(String... styleClasses)

Create new StyleClassDecoration

Parameters
styleClasses:String[]

The style classes to apply to the target node, if check fails

Exceptions
IllegalArgumentException:
if styleClasses is null or empty.

Method Detail

addback to summary
public void add(Node targetNode)

Implements net.synedra.validatorfx.Decoration.add.

Doc from net.synedra.validatorfx.Decoration.add.

Add a decoration to the given target node

Parameters
targetNode:Node

The node to decorate

Annotations
@Override
removeback to summary
public void remove(Node targetNode)

Implements net.synedra.validatorfx.Decoration.remove.

Doc from net.synedra.validatorfx.Decoration.remove.

Remove a decoration from the given target node

Parameters
targetNode:Node

The node to remove decoration from

Annotations
@Override