java.lang.Object
org.controlsfx.property.BeanPropertyUtils
Convenience utility class for creating
PropertySheet
instances based
on a JavaBean.-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.collections.ObservableList
<PropertySheet.Item> getProperties
(Object bean) Given a JavaBean, this method will return a list ofPropertySheet.Item
intances, which may be directly placed inside aPropertySheet
(via itsitems list
.static javafx.collections.ObservableList
<PropertySheet.Item> getProperties
(Object bean, Predicate<PropertyDescriptor> test) Given a JavaBean, this method will return a list ofPropertySheet.Item
intances, which may be directly placed inside aPropertySheet
(via itsitems list
.
-
Method Details
-
getProperties
Given a JavaBean, this method will return a list ofPropertySheet.Item
intances, which may be directly placed inside aPropertySheet
(via itsitems list
.This method will not return read-only properties.
- Parameters:
bean
- The JavaBean that should be introspected and be editable via aPropertySheet
.- Returns:
- A list of
PropertySheet.Item
instances representing the properties of the JavaBean.
-
getProperties
public static javafx.collections.ObservableList<PropertySheet.Item> getProperties(Object bean, Predicate<PropertyDescriptor> test) Given a JavaBean, this method will return a list ofPropertySheet.Item
intances, which may be directly placed inside aPropertySheet
(via itsitems list
.- Parameters:
bean
- The JavaBean that should be introspected and be editable via aPropertySheet
.test
- Predicate to test whether the property should be included in the list of results.- Returns:
- A list of
PropertySheet.Item
instances representing the properties of the JavaBean.
-