Package PamUtils

Class SelectFolder

java.lang.Object
PamUtils.SelectFolder

public class SelectFolder extends Object
Makes a dialog panel for selecting a folder typically for file output.
Author:
Doug Gillespie
  • Constructor Details Link icon

    • SelectFolder Link icon

      public SelectFolder(String borderLabel, int textLength, boolean showSubFolderOption)
    • SelectFolder Link icon

      public SelectFolder(String borderLabel, int textLength)
    • SelectFolder Link icon

      public SelectFolder(int textLength)
  • Method Details Link icon

    • createPanel Link icon

      public void createPanel(String borderLabel, int textLength)
    • setEnabled Link icon

      public void setEnabled(boolean enable)
    • setIncludeSubFolders Link icon

      public void setIncludeSubFolders(boolean includeSubfolders)
      Set the state of the sub folder check box.
      Parameters:
      includeSubfolders - true to check the box.
    • isIncludeSubFolders Link icon

      public boolean isIncludeSubFolders()
      Get the state of the sub folder check box.
      Returns:
      true if selected
    • addFolderChangeListener Link icon

      public void addFolderChangeListener(FolderChangeListener folderChangeListener)
      Add a folder change listener to receive notification if the browse button was used to select a new folder.
      Parameters:
      folderChangeListener - change listener
    • removeFolderChangeListener Link icon

      public void removeFolderChangeListener(FolderChangeListener folderChangeListener)
      Remove a folder change listener
      Parameters:
      folderChangeListener -
    • getFolderName Link icon

      public String getFolderName(boolean checkPath)
      Get the folder name and optionally check and create the path for data storage.
      Parameters:
      checkPath - set true to check / create the storage path.
      Returns:
      Path string, or null if path check fails.
    • setFolderName Link icon

      public void setFolderName(String folderName)
    • getFolderPanel Link icon

      public PamUtils.SelectFolder.FolderPanel getFolderPanel()
    • setSubFolderButtonName Link icon

      public void setSubFolderButtonName(String buttonName)
      Set the name for the "Include Sub folders" checkbox
      Parameters:
      buttonName - new name for the checkbox.
    • setSubFolderButtonToolTip Link icon

      public void setSubFolderButtonToolTip(String tipText)
      Set the name for the "Include Sub folders" checkbox
      Parameters:
      buttonName - new name for the checkbox.
    • setTextLength Link icon

      public void setTextLength(int textLength)
    • isShowSubFolderOption Link icon

      public boolean isShowSubFolderOption()
    • setShowSubFolderOption Link icon

      public void setShowSubFolderOption(boolean showSubFolderOption)
    • isMustExist Link icon

      public boolean isMustExist()
      Returns:
      the mustExist
    • setMustExist Link icon

      public void setMustExist(boolean mustExist)
      Parameters:
      mustExist - the mustExist to set
    • isCreateIfNeeded Link icon

      public boolean isCreateIfNeeded()
      Returns:
      the createIfNeeded
    • setCreateIfNeeded Link icon

      public void setCreateIfNeeded(boolean createIfNeeded)
      Parameters:
      createIfNeeded - the createIfNeeded to set