Top Description Constructors Methods
org.controlsfx.property

public final Class BeanPropertyUtils

extends Object
Class Inheritance
Imports
java.beans.BeanInfo, .IntrospectionException, .Introspector, .PropertyDescriptor, java.util.function.Predicate, javafx.collections.FXCollections, .ObservableList, javafx.event.EventHandler, org.controlsfx.control.PropertySheet, .PropertySheet.Item

Convenience utility class for creating PropertySheet instances based on a JavaBean.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ObservableList<PropertySheet.Item>

Returns:

A list of Item instances representing the properties of the JavaBean.
getProperties
(final Object
The JavaBean that should be introspected and be editable via a PropertySheet.
bean
)

Given a JavaBean, this method will return a list of Item intances, which may be directly placed inside a PropertySheet (via its items list.

public static ObservableList<PropertySheet.Item>

Returns:

A list of Item instances representing the properties of the JavaBean.
getProperties
(final Object
The JavaBean that should be introspected and be editable via a PropertySheet.
bean
,
Predicate<PropertyDescriptor>
Predicate to test whether the property should be included in the list of results.
test
)

Given a JavaBean, this method will return a list of Item intances, which may be directly placed inside a PropertySheet (via its items list.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BeanPropertyUtilsback to summary
private BeanPropertyUtils()

Method Detail

getPropertiesback to summary
public static ObservableList<PropertySheet.Item> getProperties(final Object bean)

Given a JavaBean, this method will return a list of Item intances, which may be directly placed inside a PropertySheet (via its items list.

This method will not return read-only properties.

Parameters
bean:Object

The JavaBean that should be introspected and be editable via a PropertySheet.

Returns:ObservableList<PropertySheet.Item>

A list of Item instances representing the properties of the JavaBean.

getPropertiesback to summary
public static ObservableList<PropertySheet.Item> getProperties(final Object bean, Predicate<PropertyDescriptor> test)

Given a JavaBean, this method will return a list of Item intances, which may be directly placed inside a PropertySheet (via its items list.

Parameters
bean:Object

The JavaBean that should be introspected and be editable via a PropertySheet.

test:Predicate<PropertyDescriptor>

Predicate to test whether the property should be included in the list of results.

Returns:ObservableList<PropertySheet.Item>

A list of Item instances representing the properties of the JavaBean.