Module qupath.fx

Class DirectoryPropertyItem

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

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

  • Method Details

    • 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()