Class AbstractDownloadSourcePanel<T>

    • Method Detail

      • getData

        public abstract T getData()
        Gets the data.
        Returns:
        Returns the data.
      • rememberSettings

        public abstract void rememberSettings()
        Saves the current user preferences devoted to the data source.
      • restoreSettings

        public abstract void restoreSettings()
        Restores the latest user preferences devoted to the data source.
      • checkDownload

        public abstract boolean checkDownload​(DownloadSettings settings)
        Performs the logic needed in case if the user triggered the download action in DownloadDialog.
        Parameters:
        settings - The settings to check.
        Returns:
        Returns true if the required procedure of handling the download action succeeded and DownloadDialog can be closed, e.g. validation, otherwise false.
      • checkCancel

        public void checkCancel()
        Performs the logic needed in case if the user triggered the cancel action in DownloadDialog.
      • getIcon

        public Icon getIcon()
        Gets the icon of the download source panel.
        Returns:
        The icon. Can be null if there is no icon associated with this download source.
      • boundingBoxChanged

        public void boundingBoxChanged​(Bounds bbox)
        Updates GUI components of the panel according to the bbox changes.
        Parameters:
        bbox - The new value for the bounding box.
        Since:
        13498
      • getSimpleName

        public abstract String getSimpleName()
        Returns a simple name describing this panel. This string can be used from other GUI parts of JOSM to save the user preferences related to the GUI settings. For example, the panel for downloading the OSM data can be named 'downloadosmpanel'. Note, choose the name such that it is unique to avoid collisions with other names.
        Returns:
        A simple name describing this panel.