Module qupath.fx

Class PropertySheetBuilder

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

public class PropertySheetBuilder extends Object
Helper class for building a ControlsFX PropertySheet.
  • Constructor Details

    • PropertySheetBuilder

      public PropertySheetBuilder()
      Create a builder for a default
  • Method Details

    • parser

      public PropertySheetBuilder parser(PropertyItemParser parser)
      Set the parser to use. This is required if you need to control the resource manager or locale manager.
      Parameters:
      parser -
      Returns:
      this builder
    • editorFactory

      public PropertySheetBuilder editorFactory(javafx.util.Callback<org.controlsfx.control.PropertySheet.Item,org.controlsfx.property.editor.PropertyEditor<?>> factory)
      Set the property editor factory to use.
      Parameters:
      factory -
      Returns:
      this builder
    • addItems

      public PropertySheetBuilder addItems(org.controlsfx.control.PropertySheet.Item... items)
      Add one or more pre-existing items to the property sheet.
      Parameters:
      items -
      Returns:
      this builder
    • addItems

      public PropertySheetBuilder addItems(Collection<? extends org.controlsfx.control.PropertySheet.Item> items)
      Add a colleciton of pre-existing items to the property sheet.
      Parameters:
      items -
      Returns:
      this builder
    • addAnnotatedProperties

      public PropertySheetBuilder addAnnotatedProperties(Object object)
      Install properties that are the public fields of an object, configured using annotations. The properties themselves are accessed using reflection.

      If the provided object has a PrefCategory annotation, this defines the category for all the identified properties. Each property should then have a Pref annotation, or an alternative such as DoublePref, ColorPref, DirectoryPref, IntegerPref.

      Parameters:
      object -
      Returns:
      this builder
    • build

      public org.controlsfx.control.PropertySheet build()
      Build the property sheet.
      Returns: