java.lang.Object
org.controlsfx.property.BeanPropertyUtils
Convenience utility class for creating
PropertySheet instances based
on a JavaBean.-
Method Summary
Modifier and TypeMethodDescriptionstatic ObservableList<PropertySheet.Item>getProperties(Object bean) Given a JavaBean, this method will return a list ofPropertySheet.Itemintances, 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.Itemintances, which may be directly placed inside aPropertySheet(via itsitems list.
-
Method Details
-
getProperties
Given a JavaBean, this method will return a list ofPropertySheet.Itemintances, 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.Iteminstances 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.Itemintances, 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.Iteminstances representing the properties of the JavaBean.
-