org.apache.uima.pear.tools

## Class PackageSelectorGUI

- java.lang.Object
- - org.apache.uima.pear.tools.PackageSelectorGUI

- All Implemented Interfaces:
    InstallationController.PackageSelector

      public class PackageSelectorGUI
      extends Object
      implements InstallationController.PackageSelector

  The `PackageSelectorGUI` class provides simple Swing-based file dialog windows for selecting root directories of installed PEAR packages, as well as PEAR package files, which contain components that need to be installed.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `PackageSelectorGUI.PackageDirFilter` The `PackageDirFilter` class allows filtering directories.
    `static class` | `PackageSelectorGUI.PackageFileFilter` The `PackageFileFilter` class allows filtering PEAR package files.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PackageSelectorGUI()` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `File` | `selectPackageDirectory(String componentId)` Opens dialog window to select root directory of desired installed component package.
    `File` | `selectPackageFile(String componentId)` Opens dialog window to select desired PEAR package file for a given component.
    `URL` | `selectPackageUrl(String componentId)` This method is not implemented.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PackageSelectorGUI

          public PackageSelectorGUI()

      Default constructor.

  - ### Method Detail

    - #### selectPackageDirectory

          public File selectPackageDirectory(String componentId)

      Opens dialog window to select root directory of desired installed component package.
      Specified by:
        `selectPackageDirectory` in interface `InstallationController.PackageSelector`
      Parameters:
        `componentId` - The given component ID.
      Returns:
        Selected package root directory or `null`, if the selection cancelled.

    - #### selectPackageFile

          public File selectPackageFile(String componentId)

      Opens dialog window to select desired PEAR package file for a given component.
      Specified by:
        `selectPackageFile` in interface `InstallationController.PackageSelector`
      Parameters:
        `componentId` - The given component ID.
      Returns:
        Selected PEAR package file for the given component, or `null`, if the selection cancelled.

    - #### selectPackageUrl

          public URL selectPackageUrl(String componentId)

      This method is not implemented. It always returns `null`.
      Specified by:
        `selectPackageUrl` in interface `InstallationController.PackageSelector`
      Parameters:
        `componentId` - The given component ID.
      Returns:
        The PEAR package URL for the given component or `null`, if no URL is entered.

Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.