Class BookmarkSelection
java.lang.Object
org.openstreetmap.josm.gui.download.BookmarkSelection
- All Implemented Interfaces:
DownloadSelection
DownloadAreaSelector which manages a list of "bookmarks", i.e. a list of
name download areas.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classThe action to add a new bookmark for the current download area.(package private) class(package private) class(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BookmarkSelection.AddActionthe add actionprivate final JosmTextAreaprivate BookmarkListthe list of bookmarksprivate Boundsthe currently selected download area.private final JMultilineLabeldisplays information about the current download areaprivate DownloadDialogthe parent download GUI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGui(DownloadDialog gui) Add the GUI elements to the dialog.protected JPanelCreates the panel with the action buttons on the leftprotected JPanelvoidsetDownloadArea(Bounds area) Sets the current download areaprotected void
-
Field Details
-
currentArea
the currently selected download area. One can add bookmarks for this area, if not null -
bookmarks
the list of bookmarks -
parent
the parent download GUI -
lblCurrentDownloadArea
displays information about the current download area -
bboxDisplay
-
actAdd
the add action
-
-
Constructor Details
-
BookmarkSelection
public BookmarkSelection()
-
-
Method Details
-
buildButtonPanel
Creates the panel with the action buttons on the left- Returns:
- the panel with the action buttons on the left
-
buildDownloadAreaAddPanel
-
addGui
Description copied from interface:DownloadSelectionAdd the GUI elements to the dialog.- Specified by:
addGuiin interfaceDownloadSelection- Parameters:
gui- download dialog
-
updateDownloadAreaLabel
-
setDownloadArea
Sets the current download area- Specified by:
setDownloadAreain interfaceDownloadSelection- Parameters:
area- the download area.
-