java.lang.Object
qupath.fx.prefs.controlsfx.items.PropertyItem
qupath.fx.prefs.controlsfx.items.FilePropertyItem
- All Implemented Interfaces:
org.controlsfx.control.PropertySheet.Item
Create a property item that handles files based on String paths.
-
Property Summary
Properties inherited from class qupath.fx.prefs.controlsfx.items.PropertyItem
description, name, prompt
-
Constructor Summary
ConstructorDescriptionFilePropertyItem
(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop) FilePropertyItem
(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop, Collection<? extends javafx.stage.FileChooser.ExtensionFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.collections.ObservableList<javafx.stage.FileChooser.ExtensionFilter>
Get extension filters to use.javafx.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
-
FilePropertyItem
public FilePropertyItem(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop) -
FilePropertyItem
public FilePropertyItem(LocalizedResourceManager manager, javafx.beans.property.Property<String> prop, Collection<? extends javafx.stage.FileChooser.ExtensionFilter> filters)
-
-
Method Details
-
getExtensionFilters
public javafx.collections.ObservableList<javafx.stage.FileChooser.ExtensionFilter> getExtensionFilters()Get extension filters to use.- Returns:
-
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
-