Class LastSelectedFolder

All Implemented Interfaces:
Serializable

public class LastSelectedFolder
extends ExperimentObject
Convenience class keeping class of the last selected folders.
Author:
Marc Vaudel
See Also:
Serialized Form
  • Constructor Details

    • LastSelectedFolder

      public LastSelectedFolder​(String defaultFolder)
      Constructs a new last selected folder class.
      Parameters:
      defaultFolder - the default folder
    • LastSelectedFolder

      public LastSelectedFolder()
      Constructs a new last selected folder class. Defaults to the user home by default.
  • Method Details

    • setLastSelectedFolder

      public void setLastSelectedFolder​(String useCase, String folderPath)
      Sets the last selected folder of the given use case. Default use case is used if null.
      Parameters:
      useCase - the use case, can be null
      folderPath - the path to the last selected folder
    • setLastSelectedFolder

      public void setLastSelectedFolder​(String folderPath)
      Sets the last selected folder.
      Parameters:
      folderPath - the path to the last selected folder
    • getLastSelectedFolder

      public String getLastSelectedFolder​(String useCase)
      Returns the last selected folder according to the given use case. The default use case is used if usecase is null.
      Parameters:
      useCase - the use case
      Returns:
      the last selected folder, null if not found
    • getLastSelectedFolder

      public String getLastSelectedFolder()
      Returns the last selected folder according to the given use case.
      Returns:
      the last selected folder, null if not found