java.lang.Object
qupath.fx.prefs.controlsfx.PropertySheetUtils
Static untility methods for working with
PropertySheet objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.controlsfx.control.PropertySheetCreate a property sheet with the default mode (CATEGORY) and editor factory.static <T> PropertyItemcreatePropertySheetItem(javafx.beans.property.Property<T> property, Class<? extends T> cls) Create a defaultPropertySheet.Itemfor a generic property.static List<org.controlsfx.control.PropertySheet.Item>Parse the annotated properties of an object into a list ofPropertySheet.Itemobjects.static List<org.controlsfx.control.PropertySheet.Item>parseAnnotatedItemsWithResources(LocalizedResourceManager manager, Object obj) Parse the annotated properties of an object into a list ofPropertySheet.Itemobjects, while setting the localized resource manager of the parser.static voidrefreshEditors(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.Itemfor 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.Itemobjects.- 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.Itemobjects, 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:
-