java.lang.Object
qupath.fx.prefs.controlsfx.PropertySheetUtils
Static untility methods for working with
PropertySheet
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.controlsfx.control.PropertySheet
Create a property sheet with the default mode (CATEGORY) and editor factory.static <T> PropertyItem
createPropertySheetItem
(javafx.beans.property.Property<T> property, Class<? extends T> cls) Create a defaultPropertySheet.Item
for a generic property.static List<org.controlsfx.control.PropertySheet.Item>
Parse the annotated properties of an object into a list ofPropertySheet.Item
objects.static List<org.controlsfx.control.PropertySheet.Item>
parseAnnotatedItemsWithResources
(LocalizedResourceManager manager, Object obj) Parse the annotated properties of an object into a list ofPropertySheet.Item
objects, while setting the localized resource manager of the parser.static void
refreshEditors
(org.controlsfx.control.PropertySheet propSheet) Refresh the editors in aPropertySheet
.
-
Constructor Details
-
PropertySheetUtils
public PropertySheetUtils()
-
-
Method Details
-
createDefaultPropertySheet
public static org.controlsfx.control.PropertySheet createDefaultPropertySheet()Create a property sheet with the default mode (CATEGORY) and editor factory.- Returns:
-
createPropertySheetItem
public static <T> PropertyItem createPropertySheetItem(javafx.beans.property.Property<T> property, Class<? extends T> cls) Create a defaultPropertySheet.Item
for a generic property.- Type Parameters:
T
- type of the property- Parameters:
property
- the propertycls
- the property type- Returns:
- a new
PropertyItem
-
refreshEditors
public static void refreshEditors(org.controlsfx.control.PropertySheet propSheet) Refresh the editors in aPropertySheet
. This can be useful to respond to locale changes.- Parameters:
propSheet
-
-
parseAnnotatedItems
Parse the annotated properties of an object into a list ofPropertySheet.Item
objects.- Parameters:
obj
- the object that contains annotated JavaFX properties- Returns:
- the list of items from all found properties
- See Also:
-
parseAnnotatedItemsWithResources
public static List<org.controlsfx.control.PropertySheet.Item> parseAnnotatedItemsWithResources(LocalizedResourceManager manager, Object obj) Parse the annotated properties of an object into a list ofPropertySheet.Item
objects, while setting the localized resource manager of the parser.- Parameters:
obj
- the object that contains annotated JavaFX properties- Returns:
- the list of items from all found properties
- See Also:
-