Top Description Constructors Methods
com.dlsc.pickerfx.util

public final Class ControlsUtil

extends Object
Class Inheritance
Imports
javafx.beans.value.ObservableValue, javafx.css.PseudoClass, javafx.scene.Node

Utility methods for JavaFX controls.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
bindBooleanToPseudoclass(Node
The node which the pseudo class will be applied to.
node
,
ObservableValue<Boolean>
The flag to switch on/off.
booleanProperty
,
PseudoClass
The style class to be applied.
pseudoClass
)

Binds a boolean property to a pseudo class.

public static void
bindBooleanToStyleClass(Node
The node which the style class will be applied to.
node
,
ObservableValue<Boolean>
The flag to switch on/off.
booleanProperty
,
String
The style class to be applied.
styleClass
)

Binds a boolean property to a style class in the given node.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ControlsUtilback to summary
private ControlsUtil()

Method Detail

bindBooleanToPseudoclassback to summary
public static void bindBooleanToPseudoclass(Node node, ObservableValue<Boolean> booleanProperty, PseudoClass pseudoClass)

Binds a boolean property to a pseudo class. Doing this the pseudo class is switched on/off in the given node.

Parameters
node:Node

The node which the pseudo class will be applied to.

booleanProperty:ObservableValue<Boolean>

The flag to switch on/off.

pseudoClass:PseudoClass

The style class to be applied.

bindBooleanToStyleClassback to summary
public static void bindBooleanToStyleClass(Node node, ObservableValue<Boolean> booleanProperty, String styleClass)

Binds a boolean property to a style class in the given node. Doing this the style class is switched on/off depending on the boolean property.

Parameters
node:Node

The node which the style class will be applied to.

booleanProperty:ObservableValue<Boolean>

The flag to switch on/off.

styleClass:String

The style class to be applied.