java.lang.Object
qupath.fx.prefs.controlsfx.items.PropertyItem
qupath.fx.prefs.controlsfx.items.DirectoryPropertyItem
- All Implemented Interfaces:
org.controlsfx.control.PropertySheet.Item
Create a property item that handles directories based on String paths.
-
Property Summary
Properties inherited from class qupath.fx.prefs.controlsfx.items.PropertyItem
description, name, prompt
-
Constructor Summary
ConstructorDescriptionDirectoryPropertyItem
(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.Property<String>
Get the string property that represents the file path.Optional<javafx.beans.value.ObservableValue<?>>
Class<?>
getType()
getValue()
protected File
pathToFile
(String path) Method to convert a string path to a file object.void
Methods inherited from class qupath.fx.prefs.controlsfx.items.PropertyItem
category, categoryKey, description, descriptionProperty, getCategory, getDescription, getName, key, name, nameProperty, promptProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.controlsfx.control.PropertySheet.Item
getPropertyEditorClass, isEditable
-
Constructor Details
-
DirectoryPropertyItem
public DirectoryPropertyItem(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop)
-
-
Method Details
-
pathToFile
Method to convert a string path to a file object. Default implementation does not check if the file exists.- Parameters:
path
-- Returns:
-
getType
-
getValue
-
setValue
-
getFilePathProperty
Get the string property that represents the file path. This may be more useful for editors that want to bind to the text property. No check is made to ensure that the path is valid.- Returns:
-
getObservableValue
-