Top Methods
com.dlsc.preferencesfx.util

public Interface VisibilityProperty

Annotations
@FunctionalInterface
Imports
java.util.function.Function, javafx.beans.property.BooleanProperty, .Property, .SimpleBooleanProperty, javafx.beans.value.ObservableValue

Method Summary

Modifier and TypeMethod and Description
public BooleanProperty
get()

public static <T> VisibilityProperty
of(ObservableValue<T> property, Function<T, Boolean> visibilityFunc)

Creates a VisibilityProperty that is based on the given Property.

public static <T> VisibilityProperty
of(ObservableValue<Boolean> property)

Simplified constructor for VisibilityProperty that is based on the given Boolean type Property The value of the VisibilityProperty will be set to the value of the given Property, i.e., whenever the referenced Property is true, the value of the @link VisibilityProperty} will be true as well.

Method Detail

getback to summary
public BooleanProperty get()
ofback to summary
public static <T> VisibilityProperty of(ObservableValue<T> property, Function<T, Boolean> visibilityFunc)

Creates a VisibilityProperty that is based on the given Property. The VisibilityProperty value will be set automatically when the given Property value changes. The new value of the VisibilityProperty will be the result of the given Function applied to the new value of the Property.

ofback to summary
public static <T> VisibilityProperty of(ObservableValue<Boolean> property)

Simplified constructor for VisibilityProperty that is based on the given Boolean type Property The value of the VisibilityProperty will be set to the value of the given Property, i.e., whenever the referenced Property is true, the value of the @link VisibilityProperty} will be true as well.