- java.lang.Object
-
- org.controlsfx.property.BeanPropertyUtils
-
public final class BeanPropertyUtils extends Object
Convenience utility class for creatingPropertySheet
instances based on a JavaBean.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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 Detail
-
getProperties
public static 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
.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 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.
-
-