java.lang.Object
qupath.fx.prefs.controlsfx.PropertyItemParser
A parser for JavaFX properties annotated with
Pref
and related annotations.
This can be used to create a list of PropertySheet.Item
objects for use with a PropertySheet
,
while writing minimal code (i.e. just define the properties and annotate them appropriately).
For an alternative that does not use annotations, see PropertyItemBuilder
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.controlsfx.control.PropertySheet.Item>
Parse all the JavaFX properties with annotations (e.g.setLocaleManager
(LocaleManager manager) Set the locale manager.Set the resource manager.
-
Constructor Details
-
PropertyItemParser
public PropertyItemParser()
-
-
Method Details
-
setResourceManager
Set the resource manager. This is used to obtain localized strings for annotated preferences from a ResourceBundle.- Parameters:
manager
-- Returns:
-
setLocaleManager
Set the locale manager. This is used to control the available locales for any preference annotated withLocalePref
.- Parameters:
manager
-- Returns:
-
parseAnnotatedItems
Parse all the JavaFX properties with annotations (e.g.Pref
) that are accessible fields of the given object.- Parameters:
obj
-- Returns:
-