Module qupath.fx

Class FilePropertyItem

java.lang.Object
qupath.fx.prefs.controlsfx.items.PropertyItem
qupath.fx.prefs.controlsfx.items.FilePropertyItem
All Implemented Interfaces:
org.controlsfx.control.PropertySheet.Item

public class FilePropertyItem extends PropertyItem
Create a property item that handles files based on String paths.
  • Constructor Details

  • Method Details

    • getExtensionFilters

      public javafx.collections.ObservableList<javafx.stage.FileChooser.ExtensionFilter> getExtensionFilters()
      Get extension filters to use.
      Returns:
    • pathToFile

      protected File pathToFile(String path)
      Method to convert a string path to a file object. Default implementation does not check if the file exists.
      Parameters:
      path -
      Returns:
    • getType

      public Class<?> getType()
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • getFilePathProperty

      public javafx.beans.property.Property<String> 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

      public Optional<javafx.beans.value.ObservableValue<?>> getObservableValue()