Module qupath.fx

Class PropertySheetUtils

java.lang.Object
qupath.fx.prefs.controlsfx.PropertySheetUtils

public class PropertySheetUtils extends Object
Static untility methods for working with PropertySheet objects.
  • 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 default PropertySheet.Item for a generic property.
      Type Parameters:
      T - type of the property
      Parameters:
      property - the property
      cls - the property type
      Returns:
      a new PropertyItem
    • refreshEditors

      public static void refreshEditors(org.controlsfx.control.PropertySheet propSheet)
      Refresh the editors in a PropertySheet. This can be useful to respond to locale changes.
      Parameters:
      propSheet -
    • parseAnnotatedItems

      public static List<org.controlsfx.control.PropertySheet.Item> parseAnnotatedItems(Object obj)
      Parse the annotated properties of an object into a list of PropertySheet.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 of PropertySheet.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: