java.lang.Object
qupath.fx.prefs.controlsfx.PropertySheetBuilder
Helper class for building a ControlsFX
PropertySheet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotatedProperties(Object object) Install properties that are the public fields of an object, configured using annotations.addItems(Collection<? extends org.controlsfx.control.PropertySheet.Item> items) Add a colleciton of pre-existing items to the property sheet.addItems(org.controlsfx.control.PropertySheet.Item... items) Add one or more pre-existing items to the property sheet.org.controlsfx.control.PropertySheetbuild()Build the property sheet.editorFactory(javafx.util.Callback<org.controlsfx.control.PropertySheet.Item, org.controlsfx.property.editor.PropertyEditor<?>> factory) Set the property editor factory to use.parser(PropertyItemParser parser) Set the parser to use.
-
Constructor Details
-
PropertySheetBuilder
public PropertySheetBuilder()Create a builder for a default
-
-
Method Details
-
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
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
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
PrefCategoryannotation, this defines the category for all the identified properties. Each property should then have aPrefannotation, or an alternative such asDoublePref,ColorPref,DirectoryPref,IntegerPref.- Parameters:
object-- Returns:
- this builder
-
build
public org.controlsfx.control.PropertySheet build()Build the property sheet.- Returns:
-